aboutsummaryrefslogtreecommitdiff
path: root/src/tests/aoc-2022-08/benches/main.rs
diff options
context:
space:
mode:
authorAria Shrimpton <me@aria.rip>2024-02-24 17:12:20 +0000
committerAria Shrimpton <me@aria.rip>2024-02-24 17:12:20 +0000
commit825a73185848650d1877e9c3b899ade84f0bbbb5 (patch)
tree7348b8dae2679762805c8d76e6d994e0ed3d1048 /src/tests/aoc-2022-08/benches/main.rs
parent830f7f45a4e6ff0788ca44d48a25c327ddd6c617 (diff)
give each benchmark its own name
Diffstat (limited to 'src/tests/aoc-2022-08/benches/main.rs')
-rw-r--r--src/tests/aoc-2022-08/benches/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/aoc-2022-08/benches/main.rs b/src/tests/aoc-2022-08/benches/main.rs
index ceab4a8..438f926 100644
--- a/src/tests/aoc-2022-08/benches/main.rs
+++ b/src/tests/aoc-2022-08/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, 500, 1000, 2000].iter() {
- c.bench_with_input(BenchmarkId::new("part1", size), size, |b, &n| {
+ c.bench_with_input(BenchmarkId::new("aoc-202208-part1", size), size, |b, &n| {
b.iter_batched_ref(
|| HeightMap::gen(&mut rng, n),
|map| map.part1(),
@@ -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-202208-part2", size), size, |b, &n| {
b.iter_batched_ref(
|| HeightMap::gen(&mut rng, n),
|map| map.part2(),