Update loglevel, comments in benches
This commit is contained in:
parent
2535f47f13
commit
4fd8551e8b
@ -11,7 +11,7 @@ mod block_benching_builder;
|
|||||||
|
|
||||||
pub const VALIDATOR_COUNT: usize = 16_384;
|
pub const VALIDATOR_COUNT: usize = 16_384;
|
||||||
|
|
||||||
// `LOG_LEVEL == "debug"` gives logs, but they're very noisy and slow down benching.
|
// `LOG_LEVEL == "info"` gives handy messages.
|
||||||
pub const LOG_LEVEL: &str = "info";
|
pub const LOG_LEVEL: &str = "info";
|
||||||
|
|
||||||
/// Build a worst-case block and benchmark processing it.
|
/// Build a worst-case block and benchmark processing it.
|
||||||
@ -40,10 +40,8 @@ pub fn block_processing_worst_case(c: &mut Criterion) {
|
|||||||
// Build all the state caches so the build times aren't included in the benches.
|
// Build all the state caches so the build times aren't included in the benches.
|
||||||
bench_builder.build_caches(&spec);
|
bench_builder.build_caches(&spec);
|
||||||
|
|
||||||
// Generate the block and state.
|
// Generate the block and state then run benches.
|
||||||
let (block, state) = bench_builder.build(&spec);
|
let (block, state) = bench_builder.build(&spec);
|
||||||
|
|
||||||
// Run the benches.
|
|
||||||
bench_block_processing::bench_block_processing(
|
bench_block_processing::bench_block_processing(
|
||||||
c,
|
c,
|
||||||
&block,
|
&block,
|
||||||
@ -81,10 +79,8 @@ pub fn block_processing_reasonable_case(c: &mut Criterion) {
|
|||||||
// Build all the state caches so the build times aren't included in the benches.
|
// Build all the state caches so the build times aren't included in the benches.
|
||||||
bench_builder.build_caches(&spec);
|
bench_builder.build_caches(&spec);
|
||||||
|
|
||||||
// Generate the block and state.
|
// Generate the block and state then run benches.
|
||||||
let (block, state) = bench_builder.build(&spec);
|
let (block, state) = bench_builder.build(&spec);
|
||||||
|
|
||||||
// Run the benches.
|
|
||||||
bench_block_processing::bench_block_processing(
|
bench_block_processing::bench_block_processing(
|
||||||
c,
|
c,
|
||||||
&block,
|
&block,
|
||||||
|
Loading…
Reference in New Issue
Block a user