arnaucube
arnaucube/miden-cryptoPublic Self-hosted repository
Merge pull request #101 from 0xPolygonMiden/hacka-fix-benchmark-code

Fix benchmark code
Augusto Hack hack.augusto@gmail.com
Wed, 22 Mar 2023 13:46:22 +0100
commit

482dab94c535c9b7558b74cb4c6ee7990b1ba3a9

parent

7305a72295367c4fbc0a02b0c6a82b8c0702f4e4

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M benches/store.rs → benches/store.rs

@@ -425,7 +425,8 @@ // the old root and adds the new one. Here we update the root to have a fair

// 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 @@ // the old root and adds the new one. Here we update the root to have a fair

// comparison store_root = store .set_node(root, NodeIndex::new(depth, index), value) - .unwrap(); + .unwrap() + .root; black_box(store_root) }, BatchSize::SmallInput,