bugfix: fix store benchmark
This commit is contained in:
parent
7305a72295
commit
ef342cec23
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue