aboutsummaryrefslogtreecommitdiff
path: root/src/crates/benchmarker/benches/hashmap.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/crates/benchmarker/benches/hashmap.rs')
-rw-r--r--src/crates/benchmarker/benches/hashmap.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/crates/benchmarker/benches/hashmap.rs b/src/crates/benchmarker/benches/hashmap.rs
index dbd498a..908a5e6 100644
--- a/src/crates/benchmarker/benches/hashmap.rs
+++ b/src/crates/benchmarker/benches/hashmap.rs
@@ -1,7 +1,12 @@
+use rand::{rngs::StdRng, SeedableRng};
+
fn main() {
let ns = [
64, 128, 256, 512, 1024, 2048, 3072, 4096, 5120, 6144, 7168, 8192, 16384, 24576, 32768,
40960, 49152, 57344, 65536,
];
- candelabra_benchmarker::benchmark_mapping::<std::collections::HashMap<usize, usize>, _, _>(&ns);
+ let mut rng = StdRng::seed_from_u64(42);
+ candelabra_benchmarker::benchmark_mapping::<std::collections::HashMap<usize, usize>, _, _>(
+ &mut rng, &ns,
+ );
}