Completed 14. Code isn't quite done, but I got close enough to finish by hand
This commit is contained in:
11
day_13/benches/part1.rs
Normal file
11
day_13/benches/part1.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
use criterion::{black_box, criterion_group, criterion_main, Criterion};
|
||||
|
||||
use day_13::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_13/benches/part2.rs
Normal file
11
day_13/benches/part2.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
use criterion::{black_box, criterion_group, criterion_main, Criterion};
|
||||
|
||||
use day_13::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);
|
||||
Reference in New Issue
Block a user