aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAria Shrimpton <me@aria.rip>2024-03-08 17:28:01 +0000
committerAria Shrimpton <me@aria.rip>2024-03-08 17:28:01 +0000
commitbe38ec4a6a85d9526ecedac36566f78522134edc (patch)
treefb24020013d700740afca405aab66aad7509d621
parent16f3516751a02ec44a4b5055fa1dc90f3d9a1fa3 (diff)
more benchmark fixes(?)
-rw-r--r--src/crates/benchmarker/src/indexable.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/crates/benchmarker/src/indexable.rs b/src/crates/benchmarker/src/indexable.rs
index 6fff998..2be28c6 100644
--- a/src/crates/benchmarker/src/indexable.rs
+++ b/src/crates/benchmarker/src/indexable.rs
@@ -34,8 +34,7 @@ where
c
},
|c| {
- let v = black_box(c.first());
- black_box(v);
+ black_box(c.first());
},
);
@@ -58,8 +57,7 @@ where
c
},
|c| {
- let v = black_box(c.last());
- black_box(v);
+ black_box(c.last());
},
);
@@ -82,8 +80,7 @@ where
(c, rng.gen_range(0..n))
},
|(c, idx)| {
- let v = black_box(c.nth(*idx));
- black_box(v);
+ black_box(c.nth(*idx));
},
);