Skip to main content

bench

Attribute Macro bench 

Source
#[bench]
Expand description

Inter-mod communication proc-macros. Marks a function in a mod’s benches/*.rs as a benchmark yog bench runs: fn name(b: &mut criterion::Bencher) for one benchmark, or fn name(c: &mut criterion::Criterion) to set up groups. yog generates the file’s main; this only makes the function reachable from it.