Skip to content

Commit

Permalink
refactor: remove criterion benches
Browse files Browse the repository at this point in the history
  • Loading branch information
polydez committed Dec 26, 2024
1 parent 6737fc0 commit 533c459
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 151 deletions.
4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ harness = false
name = "smt"
harness = false

[[bench]]
name = "smt-mutations"
harness = false

[[bench]]
name = "store"
harness = false
Expand Down
145 changes: 0 additions & 145 deletions benches/smt-mutations.rs

This file was deleted.

2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ pub fn proof_generation(tree: &mut Smt) -> Result<(), MerkleError> {

println!(
"An average proving time measured by {NUM_PROOFS} value proofs in an SMT with {size} \
key-value pairs in {:.3} microseconds",
leaves in {:.3} microseconds",
// calculate the average
insertion_times.iter().sum::<u128>() as f64 / (NUM_PROOFS as f64),
);
Expand Down
2 changes: 1 addition & 1 deletion src/merkle/smt/full/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ fn test_mutations_revert() {
assert_eq!(revert.old_root, smt.root(), "reverse mutations old root did not match");
assert_eq!(revert.root(), original.root(), "reverse mutations new root did not match");

let _ = smt.apply_mutations(revert).unwrap();
smt.apply_mutations(revert).unwrap();

assert_eq!(smt, original, "SMT with applied revert mutations did not match original SMT");
}
Expand Down

0 comments on commit 533c459

Please sign in to comment.