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