Skip to content

Commit

Permalink
feat: extended criterion measurement time to 20s for consistent results
Browse files Browse the repository at this point in the history
  • Loading branch information
Eagle941 committed Sep 17, 2024
1 parent 6f30f1a commit 57df89b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/blockifier/bench/blockifier_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
//!
//! Run the benchmarks using `cargo bench --bench blockifier_bench`.
use std::time::Duration;

use blockifier::context::BlockContext;
use blockifier::invoke_tx_args;
use blockifier::state::cached_state::{CachedState, TransactionalState};
Expand Down Expand Up @@ -240,5 +242,9 @@ pub fn execution_benchmark(c: &mut Criterion) {
});
}

criterion_group!(benches, transfers_benchmark, execution_benchmark, cached_state_benchmark);
criterion_group! {
name = benches;
config = Criterion::default().measurement_time(Duration::from_secs(20));
targets = transfers_benchmark, execution_benchmark, cached_state_benchmark
}
criterion_main!(benches);

0 comments on commit 57df89b

Please sign in to comment.