2022: bench: criterion 0.4

This commit is contained in:
Antoine Martin 2022-12-06 00:01:28 +01:00
parent 2ca6bce781
commit ed66012752
4 changed files with 136 additions and 33 deletions

View file

@ -0,0 +1,14 @@
use criterion::{criterion_group, criterion_main, Criterion};
use aoc2022::day01;
fn aoc2022_all(c: &mut Criterion) {
c.bench_function("day01", |b| b.iter(|| day01::run().unwrap()));
}
criterion_group! {
name = all_days;
config = Criterion::default().sample_size(200);
targets = aoc2022_all
}
criterion_main!(all_days);