LilithHafner/Chairmarks.jl

`@b @b hash(rand()) seconds=.0000001` throws

LilithHafner opened this issue · 0 comments

julia> @b @b hash(rand()) seconds=.0000001
ERROR: InexactError: trunc(Int64, NaN)
Stacktrace:
  [1] trunc
    @ ./float.jl:905 [inlined]
  [2] floor(::Type{Int64}, x::Float64)
    @ Base ./float.jl:383
  [3] benchmark(init::Any, setup::Any, f::Any, teardown::Any; evals::Union{…}, samples::Union{…}, seconds::Union{…}, map::Any, reduction::Any)
    @ Chairmarks ~/.julia/packages/Chairmarks/bdfFn/src/benchmarking.jl:67
  [4] benchmark
    @ ~/.julia/packages/Chairmarks/bdfFn/src/benchmarking.jl:15 [inlined]
  [5] benchmark (repeats 2 times)
    @ ~/.julia/packages/Chairmarks/bdfFn/src/benchmarking.jl:9 [inlined]
  [6] benchmark
    @ ~/.julia/packages/Chairmarks/bdfFn/src/benchmarking.jl:8 [inlined]
  [7] #41
    @ ~/.julia/packages/Chairmarks/bdfFn/src/macro_tools.jl:20 [inlined]
  [8] _benchmark(f::var"#41#43", map::typeof(Chairmarks.default_map), reduction::typeof(Chairmarks.default_reduction), args::Tuple{}, evals::Int64, warmup::Bool)
    @ Chairmarks ~/.julia/packages/Chairmarks/bdfFn/src/benchmarking.jl:100
  [9] bench
    @ ~/.julia/packages/Chairmarks/bdfFn/src/benchmarking.jl:27 [inlined]
 [10] (::Chairmarks.var"#bench#6"{typeof(Chairmarks.default_map), typeof(Chairmarks.default_reduction), Nothing, var"#41#43", Nothing, Tuple{}})(evals::Int64)
    @ Chairmarks ~/.julia/packages/Chairmarks/bdfFn/src/benchmarking.jl:26
 [11] benchmark(init::Any, setup::Any, f::Any, teardown::Any; evals::Union{…}, samples::Union{…}, seconds::Union{…}, map::Any, reduction::Any)
    @ Chairmarks ~/.julia/packages/Chairmarks/bdfFn/src/benchmarking.jl:87
 [12] benchmark
    @ ~/.julia/packages/Chairmarks/bdfFn/src/benchmarking.jl:15 [inlined]
 [13] benchmark (repeats 2 times)
    @ ~/.julia/packages/Chairmarks/bdfFn/src/benchmarking.jl:9 [inlined]
 [14] benchmark(f::Function)
    @ Chairmarks ~/.julia/packages/Chairmarks/bdfFn/src/benchmarking.jl:8
 [15] top-level scope
    @ REPL[9]:1
Some type information was truncated. Use `show(err)` to see complete types.