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
A lot of times, I just want the minimum time, especially if I'm collecting or comparing a lot of timing measurements. It would be nice to have an analogue of @elapsed that just returns the minimum time, but with all of the @benchmark niceties.
I've been using:
"""Like `@benchmark`, but returns only the minimum time in ns."""macrobenchtime(args...)
b =Expr(:macrocall, Symbol("@benchmark"), map(esc, args)...)
:(time(minimum($b)))
end
Could something like this be included?
The text was updated successfully, but these errors were encountered:
A lot of times, I just want the minimum time, especially if I'm collecting or comparing a lot of timing measurements. It would be nice to have an analogue of
@elapsed
that just returns the minimum time, but with all of the@benchmark
niceties.I've been using:
Could something like this be included?
The text was updated successfully, but these errors were encountered: