diff options
Diffstat (limited to 'src/crates/benchmarker/benches/vec.rs')
-rw-r--r-- | src/crates/benchmarker/benches/vec.rs | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/crates/benchmarker/benches/vec.rs b/src/crates/benchmarker/benches/vec.rs index ec572ca..0dd4637 100644 --- a/src/crates/benchmarker/benches/vec.rs +++ b/src/crates/benchmarker/benches/vec.rs @@ -1,14 +1,9 @@ -use criterion::{criterion_group, criterion_main, Criterion}; - -fn run_benches(c: &mut Criterion) { - 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, - ], - ); +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); } - -criterion_group!(benches, run_benches); -criterion_main!(benches); |