1 | use criterion::{criterion_group, Criterion}; |
---|---|
2 | |
3 | fn some_benchmark(c: &mut Criterion) { |
4 | let mut group = c.benchmark_group("\" *group/\" "); |
5 | group.bench_function("\" *benchmark/\" '", |b| b.iter(|| 1 + 1)); |
6 | group.finish(); |
7 | } |
8 | |
9 | criterion_group!(benches, some_benchmark); |
10 |