summaryrefslogtreecommitdiffstats
path: root/vendor/tracing/benches/event.rs
blob: 1649325482192c710763725c3f46852c047d6b73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use criterion::{criterion_group, criterion_main, Criterion};

mod shared;

fn bench(c: &mut Criterion) {
    shared::for_all_recording(&mut c.benchmark_group("event"), |b| {
        b.iter(|| tracing::info!("hello world!"))
    });
}

criterion_group!(benches, bench);
criterion_main!(benches);