From 825a73185848650d1877e9c3b899ade84f0bbbb5 Mon Sep 17 00:00:00 2001 From: Aria Shrimpton Date: Sat, 24 Feb 2024 17:12:20 +0000 Subject: give each benchmark its own name --- src/tests/aoc-2022-09/benches/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tests/aoc-2022-09/benches') diff --git a/src/tests/aoc-2022-09/benches/main.rs b/src/tests/aoc-2022-09/benches/main.rs index bd5f92c..3b4046c 100644 --- a/src/tests/aoc-2022-09/benches/main.rs +++ b/src/tests/aoc-2022-09/benches/main.rs @@ -5,7 +5,7 @@ use rand::{rngs::StdRng, SeedableRng}; fn run_benches(c: &mut Criterion) { let mut rng = StdRng::seed_from_u64(42); for size in [100, 1000, 2000, 10_000, 50_000].iter() { - c.bench_with_input(BenchmarkId::new("part1", size), size, |b, &n| { + c.bench_with_input(BenchmarkId::new("aoc-202209-part1", size), size, |b, &n| { b.iter_batched_ref( || gen_moves(&mut rng, n).collect::>(), |moves| part1(moves.iter()), @@ -13,7 +13,7 @@ fn run_benches(c: &mut Criterion) { ) }); - c.bench_with_input(BenchmarkId::new("part2", size), size, |b, &n| { + c.bench_with_input(BenchmarkId::new("aoc-202209-part2", size), size, |b, &n| { b.iter_batched_ref( || gen_moves(&mut rng, n).collect::>(), |moves| part2(moves.iter()), -- cgit v1.2.3