Unverified Commit 5cc46cc8 authored by Michael Müller's avatar Michael Müller
Browse files

[core] Fix empty_cache::one_put bench

parent 328061cc
Pipeline #100113 failed with stages
in 6 minutes and 9 seconds
......@@ -120,13 +120,13 @@ fn bench_empty_cache(c: &mut Criterion) {
group
.bench_function("fill_bitstash", |b| b.iter(|| empty_cache::fill_bitstash()));
group.bench_function("one_put", |b| {
b.iter_batched(
b.iter_batched_ref(
|| {
let stash = create_large_stash();
push_stash_by_ref(&stash);
pull_stash()
},
|mut stash| one_put(&mut stash),
|stash| one_put(stash),
BatchSize::SmallInput,
)
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment