From 1031c5c24242c0d32b0701cbf94ad24c8140930a Mon Sep 17 00:00:00 2001 From: Aria Shrimpton Date: Thu, 7 Mar 2024 20:52:12 +0000 Subject: fix batch size for aoc_2021_09 to prevent more issues --- src/tests/aoc_2021_09/benches/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/aoc_2021_09/benches/main.rs b/src/tests/aoc_2021_09/benches/main.rs index cc9b460..90d22f1 100644 --- a/src/tests/aoc_2021_09/benches/main.rs +++ b/src/tests/aoc_2021_09/benches/main.rs @@ -12,7 +12,7 @@ fn run_benches(c: &mut Criterion) { b.iter_batched_ref( || HeightMap::gen(&mut rng, n), |map| map.part1(), - BatchSize::SmallInput, + BatchSize::NumIterations(1), ) }, ); @@ -24,7 +24,7 @@ fn run_benches(c: &mut Criterion) { b.iter_batched_ref( || HeightMap::gen(&mut rng, n), |map| map.part2(), - BatchSize::SmallInput, + BatchSize::NumIterations(1), ) }, ); -- cgit v1.2.3