aoc7 part 2

This commit is contained in:
2025-12-07 22:56:56 +01:00
parent fad32426b9
commit fd853da84e
4 changed files with 74 additions and 23 deletions

View File

@@ -7,11 +7,16 @@ fn bench_aoc_7_part1(c: &mut Criterion) {
c.bench_function("bench_aoc7 part 1", |b| b.iter(|| aoc_7::solve_p1(input)));
}
fn bench_aoc_7_part2(c: &mut Criterion) {
let input = black_box(include_str!("../src/aoc/input/full_input_aoc7.txt"));
c.bench_function("bench_aoc7 part 2", |b| b.iter(|| aoc_7::solve_p2(input)));
}
criterion_group!(
benches_p7,
bench_aoc_7_part1
bench_aoc_7_part1,
bench_aoc_7_part2,
);
criterion_main!(benches_p7);