Skip to content

Commit

Permalink
fix benches
Browse files Browse the repository at this point in the history
  • Loading branch information
carllin committed Dec 19, 2018
1 parent b3b23f0 commit 30f288a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions benches/db_ledger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ fn bench_insert_data_blob_small(bench: &mut Bencher) {
blobs.shuffle(&mut thread_rng());

bench.iter(move || {
for blob in blobs.iter_mut() {
for blob in blobs.into_iter() {
let index = blob.index().unwrap();
db_ledger.insert_data_blobs(vec![blob]).unwrap();
blob.set_index(index + num_entries as u64).unwrap();
}
Expand All @@ -184,7 +185,8 @@ fn bench_insert_data_blob_big(bench: &mut Bencher) {
blobs.shuffle(&mut thread_rng());

bench.iter(move || {
for blob in blobs.iter_mut() {
for blob in blobs.into_iter() {
let index = blob.index().unwrap();
db_ledger.insert_data_blobs(vec![blob]).unwrap();
blob.set_index(index + num_entries as u64).unwrap();
}
Expand Down

0 comments on commit 30f288a

Please sign in to comment.