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