FYI, remember that you often want to set evals=1
when using setup
with mutating functions in BenchmarkTools. See the discussion in BenchmarkTools setup isn't run between each iteration? - #6 by rdeits and the manual section in https://github.com/JuliaCI/BenchmarkTools.jl/blob/master/doc/manual.md#setup-and-teardown-phases
3 Likes