You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia>using BenchmarkTools
# this should work, but doesn't
julia>@benchmark (a + b + c) setup=(a,b,c=1,2,3)
ERROR: syntax: assignment not allowed inside tuple
ingenerate_benchmark_definition(::Module, ::Array{Symbol,1}, ::Array{Symbol,1}, ::Expr, ::Expr, ::Void, ::BenchmarkTools.Parameters) at /Users/jarrettrevels/.julia/v0.5/BenchmarkTools/src/execution.jl:282
julia>@benchmark (a + b + c) setup=begin a,b,c=1,2,3end
BenchmarkTools.Trial:
memory estimate:0 bytes
allocs estimate:0--------------
minimum time:1.645 ns (0.00% GC)
median time:1.962 ns (0.00% GC)
mean time:1.967 ns (0.00% GC)
maximum time:4.511 ns (0.00% GC)
--------------
samples:10000
evals/sample:1000
time tolerance:5.00%
memory tolerance:1.00%