Function tiny_bench::bench_labeled
source · [−]Expand description
Will run the closure with a label, running with a label enables comparisons for subsequent runs.
use tiny_bench::bench_labeled;
bench_labeled("my_benchmark", || {
// Some code that should be benched
})