2019-03-11 08:46:22 +00:00
|
|
|
use criterion::Criterion;
|
2019-03-08 23:45:28 +00:00
|
|
|
use criterion::{criterion_group, criterion_main};
|
2019-02-26 03:27:42 +00:00
|
|
|
|
2019-03-09 03:11:49 +00:00
|
|
|
mod block_processing_benches;
|
2019-03-08 23:45:28 +00:00
|
|
|
mod epoch_processing_benches;
|
2019-02-26 03:27:42 +00:00
|
|
|
|
2019-03-11 08:46:22 +00:00
|
|
|
pub const VALIDATOR_COUNT: usize = 300_032;
|
|
|
|
|
|
|
|
pub fn state_processing(c: &mut Criterion) {
|
|
|
|
block_processing_benches::bench_block_processing_n_validators(c, VALIDATOR_COUNT);
|
|
|
|
epoch_processing_benches::bench_epoch_processing_n_validators(c, VALIDATOR_COUNT);
|
|
|
|
}
|
|
|
|
|
|
|
|
criterion_group!(benches, state_processing,);
|
2019-02-26 03:27:42 +00:00
|
|
|
criterion_main!(benches);
|