pub fn bench_with_setup_labeled<T, R, F: FnMut(R) -> T, S: FnMut() -> R>(
    label: &'static str,
    setup: S,
    closure: F
)
Expand description

Run bench with setup and a label

use std::time::Duration;
use tiny_bench::{bench_with_setup_labeled, BenchmarkConfig};
bench_with_setup_labeled("my_benchmark", || std::thread::sleep(Duration::from_micros(5)), |_| {
    // Some code that should be benched
})