Day 12 done. Had to look up some other people's solutions as hints though...

This commit is contained in:
Connor Johnstone
2023-12-12 21:33:27 -07:00
parent 7f7d745284
commit 84879e4f8b
13 changed files with 2622 additions and 0 deletions

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

@@ -0,0 +1,11 @@
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use day_12::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);

11
day_12/benches/part2.rs Normal file
View File

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