aboutsummaryrefslogtreecommitdiff
path: root/src/tests/example_stack/benches
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/example_stack/benches')
-rw-r--r--src/tests/example_stack/benches/main.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tests/example_stack/benches/main.rs b/src/tests/example_stack/benches/main.rs
index 575d045..5b6076b 100644
--- a/src/tests/example_stack/benches/main.rs
+++ b/src/tests/example_stack/benches/main.rs
@@ -1,7 +1,7 @@
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};
fn run_benches(c: &mut Criterion) {
- for size in [500, 10_000, 50_000].iter() {
+ for size in [1_000_000, 10_000_000, 50_000_000].iter() {
c.bench_with_input(
BenchmarkId::new("example_stack-push_pop", size),
size,
@@ -12,5 +12,9 @@ fn run_benches(c: &mut Criterion) {
}
}
-criterion_group!(benches, run_benches);
+criterion_group!(
+ name = benches;
+ config = Criterion::default().sample_size(20);
+ targets = run_benches
+);
criterion_main!(benches);