aboutsummaryrefslogtreecommitdiff
path: root/src/crates/benchmarker/benches/vec.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/crates/benchmarker/benches/vec.rs')
-rw-r--r--src/crates/benchmarker/benches/vec.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/crates/benchmarker/benches/vec.rs b/src/crates/benchmarker/benches/vec.rs
index 0dd4637..f0f4d39 100644
--- a/src/crates/benchmarker/benches/vec.rs
+++ b/src/crates/benchmarker/benches/vec.rs
@@ -1,9 +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_container::<Vec<usize>, _>(&ns);
- candelabra_benchmarker::benchmark_indexable::<Vec<usize>, _>(&ns);
- candelabra_benchmarker::benchmark_stack::<Vec<usize>, _>(&ns);
+ let mut rng = StdRng::seed_from_u64(42);
+ candelabra_benchmarker::benchmark_container::<Vec<usize>, _>(&mut rng, &ns);
+ candelabra_benchmarker::benchmark_indexable::<Vec<usize>, _>(&mut rng, &ns);
+ candelabra_benchmarker::benchmark_stack::<Vec<usize>, _>(&mut rng, &ns);
}