pub fn bench_labeled<T, F: FnMut() -> T>(label: &'static str, closure: F)
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
})