From 2ef7371f7a4eefe7478cad43cb4922efaa12876a Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 25 Jun 2025 10:40:24 +0200 Subject: Use `rayon` for parallelization --- benches/bigfile.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'benches') diff --git a/benches/bigfile.rs b/benches/bigfile.rs index 3d2088d..f9752a1 100644 --- a/benches/bigfile.rs +++ b/benches/bigfile.rs @@ -46,7 +46,10 @@ fn cleanup_files(filenames: &Vec) -> std::io::Result<()> { Ok(()) } -fn test_merkle_tree(hasher: H, files: &Vec>) { +fn test_merkle_tree( + hasher: H, + files: &Vec>, +) { let tree = MerkleTree::new(hasher.clone(), files); let proofer = DefaultProofer::new(hasher, tree.leaves().clone()); let root = tree.root(); @@ -118,7 +121,7 @@ fn bench_large_merkle_tree_blake3(c: &mut Criterion) { group.sample_size(10); for size in [5, 10, 15] { group.bench_function( - format!("MerkleTree creation and validation with 10 nodes and Keccak256 algorithm. {size} MB per each file."), + format!("MerkleTree creation and validation with 10 nodes and Blake3 algorithm. {size} MB per each file."), |b| { let files = setup_files(&filenames, size).expect("failed to allocate new files"); -- cgit v1.2.3-71-g8e6c