Update benchmarks, add to CI (#988)

This commit is contained in:
Michael Sproul
2020-04-06 20:16:08 +10:00
committed by GitHub
parent 4cba745df6
commit 869b0621d6
6 changed files with 48 additions and 40 deletions

View File

@@ -90,19 +90,6 @@ fn all_benches(c: &mut Criterion) {
.sample_size(10),
);
let inner_state = state.clone();
c.bench(
&format!("{}_validators", validator_count),
Benchmark::new("clone_without_caches/beacon_state", move |b| {
b.iter_batched_ref(
|| inner_state.clone(),
|state| black_box(state.clone_without_caches()),
criterion::BatchSize::SmallInput,
)
})
.sample_size(10),
);
let inner_state = state.clone();
c.bench(
&format!("{}_validators", validator_count),