1 | use criterion::{criterion_group, criterion_main, Criterion}; |
---|---|
2 | use tracing::{span, Level}; |
3 | |
4 | mod shared; |
5 | |
6 | fn 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 | |
12 | criterion_group!(benches, bench); |
13 | criterion_main!(benches); |
14 |