Skip to content

Commit 2de6032

Browse files
committed
Add measurement_time_s arg to config
1 parent 878c1ae commit 2de6032

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/vm/benches/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,22 +353,22 @@ fn bench_instance_threads(c: &mut Criterion) {
353353
});
354354
}
355355

356-
fn make_config() -> Criterion {
356+
fn make_config(measurement_time_s: u64) -> Criterion {
357357
Criterion::default()
358358
.without_plots()
359-
.measurement_time(Duration::new(10, 0))
359+
.measurement_time(Duration::new(measurement_time_s, 0))
360360
.sample_size(12)
361361
.configure_from_args()
362362
}
363363

364364
criterion_group!(
365365
name = instance;
366-
config = make_config();
366+
config = make_config(8);
367367
targets = bench_instance
368368
);
369369
criterion_group!(
370370
name = cache;
371-
config = make_config();
371+
config = make_config(8);
372372
targets = bench_cache
373373
);
374374
criterion_group!(

0 commit comments

Comments
 (0)