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
#245 5 comments 1 reaction 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.