Skip to main content

run_bench

Macro run_bench 

Source
macro_rules! run_bench {
    ($desc:expr, $body:block) => { ... };
}
Expand description

Runs a single named benchmark, gated by the BENCH_LIST_ONLY and BENCH_FILTER environment variables. No caller-scope variables are needed — the macro reads the env vars itself on every invocation (negligible cost compared to actual benchmark execution).