Merge pull request #101 from 0xPolygonMiden/hacka-fix-benchmark-code
Fix benchmark code
This commit is contained in:
commit
482dab94c5
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