Merge pull request #101 from 0xPolygonMiden/hacka-fix-benchmark-code

Fix benchmark code
This commit is contained in:
Augusto Hack 2023-03-22 13:46:22 +01:00 committed by GitHub
commit 482dab94c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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