JuliaCI / JuliaCI/BenchmarkTools.jl
ERROR: DomainError with -43.0: log will only return a complex result if called with a complex argument. Try log(Complex(x)).
Open
@tecosaur is already working on this.
Since Aug 13, 2021.
bug
- Dominant language
- Julia
- Stars
- 684
- Forks
- 107
- PR merge metrics
- No merged PRs in 30d
Description
in BenchmarkTools v1.1.1 and v1.1.2 the following benchmark produces an error.
julia> @benchmark for i in 1:100 sin(x[i]) end setup = (x = rand(100)) evals = 1 samples = 100
BenchmarkTools.Trial: 100 samples with 1 evaluation.
Range (min … max): 836.000 ns … 10.789 μs ┊ GC (min … max): 0.00% … 0.00%
Time (median): 1.006 μs ┊ GC (median): 0.00%
Time (mean ± σ): 1.109 μs ± 981.010 ns ┊ GC (mean ± σ): 0.00% ± 0.00%Error showing value of type BenchmarkTools.Trial:
ERROR: DomainError with -8.0:
log will only return a complex result if called with a complex argument. Try log(Complex(x)).
Stacktrace:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.