1 2 3 4 5 6 7 8
use criterion::{criterion_group, criterion_main, Criterion}; fn run_benches(c: &mut Criterion) { c.bench_function("do_something", |b| b.iter(|| example_stack::do_something())); } criterion_group!(benches, run_benches); criterion_main!(benches);