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
Unlike @time, @btime throws an error that fun is undefined when I run
using BenchmarkTools
f(x) = x^2; g(x) = x^3; h(x) = x^4
@btime f(2.0) # This works
for fun in (f, g, h)
@time fun(1.0)
@btime fun(1.0) # This throws UndefVarError: fun not defined
end
I am running BenchmarkTools v1.3.1 and Julia 1.6.0
The text was updated successfully, but these errors were encountered:
Unlike
@time
,@btime
throws an error that fun is undefined when I runI am running BenchmarkTools v1.3.1 and Julia 1.6.0
The text was updated successfully, but these errors were encountered: