1 | use criterion::{criterion_group, criterion_main, Criterion}; |
---|---|
2 | |
3 | mod shared; |
4 | |
5 | fn bench(c: &mut Criterion) { |
6 | shared::for_all_recording(&mut c.benchmark_group("event"), |b| { |
7 | b.iter(|| tracing::info!("hello world!")) |
8 | }); |
9 | } |
10 | |
11 | criterion_group!(benches, bench); |
12 | criterion_main!(benches); |
13 |