Hello,
what’s wrong with the @btime macro when measuring the println function?
Runs zig passes until it stops. Is this normal or is there a parameter that it will stop after a run.
With @time there is no problem.
best regards
Michael wolff
Hello,
what’s wrong with the @btime macro when measuring the println function?
Runs zig passes until it stops. Is this normal or is there a parameter that it will stop after a run.
With @time there is no problem.
best regards
Michael wolff
@benchmark println("Test") evals = 10 samples = 1
will limit the length it runs for example. BenchmarkTools runs multiple times to give a statistical result.
Ok, thank you!