Completed day 3. Found that one hard

This commit is contained in:
Connor Johnstone
2023-12-03 00:03:47 -07:00
parent 78b17e5f82
commit d4056397c8
7 changed files with 1109 additions and 0 deletions

11
day_03/benches/part1.rs Normal file
View File

@@ -0,0 +1,11 @@
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use day_02::prelude::*;
fn criterion_benchmark(c: &mut Criterion) {
let input = include_str!("../input.txt");
c.bench_function("part 1", |b| b.iter(|| part1(black_box(input))));
}
criterion_group!(benches, criterion_benchmark);
criterion_main!(benches);