2020: day01: part 1
This commit is contained in:
parent
fa32903fdc
commit
b44c6bacbc
8 changed files with 318 additions and 1 deletions
14
aoc2020/benches/bench.rs
Normal file
14
aoc2020/benches/bench.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
use criterion::{criterion_group, criterion_main, Criterion};
|
||||
|
||||
use aoc2020::day01;
|
||||
|
||||
fn aoc2020_all(c: &mut Criterion) {
|
||||
c.bench_function("day01", |b| b.iter(|| day01::run().unwrap()));
|
||||
}
|
||||
|
||||
criterion_group! {
|
||||
name = all_days;
|
||||
config = Criterion::default().sample_size(30);
|
||||
targets = aoc2020_all
|
||||
}
|
||||
criterion_main!(all_days);
|
||||
Loading…
Add table
Add a link
Reference in a new issue