Browse Source

bugfix: fix store benchmark

al-gkr-basic-workflow
Augusto F. Hack 2 years ago
parent
commit
ef342cec23
No known key found for this signature in database GPG Key ID: 3F3584B7FB1DFB76
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      benches/store.rs

+ 4
- 2
benches/store.rs

@ -425,7 +425,8 @@ fn update_leaf_merkletree(c: &mut Criterion) {
// comparison // comparison
store_root = store store_root = store
.set_node(root, NodeIndex::new(depth, index), value) .set_node(root, NodeIndex::new(depth, index), value)
.unwrap();
.unwrap()
.root;
black_box(store_root) black_box(store_root)
}, },
BatchSize::SmallInput, BatchSize::SmallInput,
@ -478,7 +479,8 @@ fn update_leaf_simplesmt(c: &mut Criterion) {
// comparison // comparison
store_root = store store_root = store
.set_node(root, NodeIndex::new(depth, index), value) .set_node(root, NodeIndex::new(depth, index), value)
.unwrap();
.unwrap()
.root;
black_box(store_root) black_box(store_root)
}, },
BatchSize::SmallInput, BatchSize::SmallInput,

Loading…
Cancel
Save