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 2c21115
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 @@ -161,7 +161,8 @@ fn bench_insert_data_blob_small(bench: &mut Bencher) {

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

bench.iter(move || {
for blob in blobs.iter_mut() {
db_ledger.insert_data_blobs(vec![blob]).unwrap();
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 2c21115

Please sign in to comment.