Macro tango_bench::tango_main

source ยท
macro_rules! tango_main {
    ($settings:expr) => { ... };
    () => { ... };
}
Expand description

Main entrypoint for benchmarks

This macro generate main() function for the benchmark harness. Can be used in a form with providing measurement settings:

use tango_bench::{tango_main, tango_benchmarks, MeasurementSettings};

// Register benchmarks
tango_benchmarks!([]);

tango_main!(MeasurementSettings {
    samples_per_haystack: 1000,
    min_iterations_per_sample: 10,
    max_iterations_per_sample: 10_000,
    ..Default::default()
});