johnmyleswhite / Benchmarks.jl

A new benchmarking library for Julia
Other
45 stars 15 forks source link

@benchmark does not work with spliced tuple argument #44

Open jebej opened 8 years ago

jebej commented 8 years ago

@benchmark mod(2,3) works, but not

@benchmark mod((2,3)...)
MethodError: `#511###bench#10976` has no method matching #511###bench#10976(::Benchmarks.Samples, ::Int64, ::Int64, ::Int64, ::Int64)
Closest candidates are:
  #511###bench#10976(::Benchmarks.Samples, ::Integer, ::Integer, ::Any)
 in ##10974 at C:\Users\Jeremy\.julia\v0.4\Benchmarks\src\benchmarkable.jl:93
 in execute at C:\Users\Jeremy\.julia\v0.4\Benchmarks\src\execute.jl:47
 in execute at C:\Users\Jeremy\.julia\v0.4\Benchmarks\src\execute.jl:42
 in include_string at loading.jl:288
 in eval at C:\Users\Jeremy\.julia\v0.4\Atom\src\Atom.jl:3
 [inlined code] from C:\Users\Jeremy\.julia\v0.4\Atom\src\eval.jl:39
 in anonymous at C:\Users\Jeremy\.julia\v0.4\Atom\src\eval.jl:108
 in withpath at C:\Users\Jeremy\.julia\v0.4\Requires\src\require.jl:37
 in withpath at C:\Users\Jeremy\.julia\v0.4\Atom\src\eval.jl:53
 [inlined code] from C:\Users\Jeremy\.julia\v0.4\Atom\src\eval.jl:107
 in anonymous at task.jl:58