1use criterion::{black_box, criterion_group, criterion_main, Criterion};
2
3mod shared;
4
5fn bench(c: &mut Criterion) {
6 shared::for_all_dispatches(&mut c.benchmark_group("Dispatch::get_ref"), |b| {
7 b.iter(|| {
8 tracing::dispatcher::get_default(|current| {
9 black_box(&current);
10 })
11 })
12 });
13}
14
15criterion_group!(benches, bench);
16criterion_main!(benches);
17