diff options
author | Aria Shrimpton <me@aria.rip> | 2024-01-19 22:26:09 +0000 |
---|---|---|
committer | Aria Shrimpton <me@aria.rip> | 2024-01-19 22:26:09 +0000 |
commit | 0490d79107fd2b732054c2c59d534a8cf5026011 (patch) | |
tree | cca32219b149dfb7bba4e8d254a36f89b2c3cb47 /src/crates | |
parent | 9c68abb682d3543aad0a89a9807300b2220d2db5 (diff) |
cleanup benchmarker
Diffstat (limited to 'src/crates')
-rw-r--r-- | src/crates/benchmarker/benches/vec.rs | 8 | ||||
-rw-r--r-- | src/crates/benchmarker/src/container.rs | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/crates/benchmarker/benches/vec.rs b/src/crates/benchmarker/benches/vec.rs index c8a3afc..ec572ca 100644 --- a/src/crates/benchmarker/benches/vec.rs +++ b/src/crates/benchmarker/benches/vec.rs @@ -1,7 +1,13 @@ use criterion::{criterion_group, criterion_main, Criterion}; fn run_benches(c: &mut Criterion) { - candelabra_benchmarker::benchmark_container::<Vec<usize>, _>(c, &[10_000, 100_000, 1_000_000]); + candelabra_benchmarker::benchmark_container::<Vec<usize>, _>( + c, + &[ + 64, 128, 256, 512, 1024, 2048, 3072, 4096, 5120, 6144, 7168, 8192, 16384, 24576, 32768, + 40960, 49152, 57344, 65536, + ], + ); } criterion_group!(benches, run_benches); diff --git a/src/crates/benchmarker/src/container.rs b/src/crates/benchmarker/src/container.rs index 783d46d..116620b 100644 --- a/src/crates/benchmarker/src/container.rs +++ b/src/crates/benchmarker/src/container.rs @@ -1,4 +1,4 @@ -use criterion::{black_box, BatchSize, Criterion}; +use criterion::{BatchSize, Criterion}; use primrose_library::traits::{Container, Indexable}; use rand::{distributions::Standard, prelude::Distribution, random, thread_rng, Rng}; |