Function tiny_bench::bench_with_configuration_labeled

source ยท
pub fn bench_with_configuration_labeled<T, F: FnMut() -> T>(
    label: &'static str,
    cfg: &BenchmarkConfig,
    closure: F,
)
Expand description

Will run the benchmark with the supplied configuration and a label

use tiny_bench::{bench_with_configuration_labeled, BenchmarkConfig};
bench_with_configuration_labeled("my_benchmark", &BenchmarkConfig::default(), || {
    // Some code that should be benched
})