Skip to content

Commit

Permalink
Reduce length of runs in prove benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Nov 30, 2024
1 parent dddb43b commit a02cf55
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions crypto/fcmps/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ fn prove_benchmark() {

let (G, T, U, V, params) = random_params(8);

for paths in 1 ..= 8 {
for paths in 1 ..= 4 {
let (paths, _root) = random_paths(&params, TARGET_LAYERS, paths);

let mut set_size = 1u64;
Expand All @@ -678,12 +678,16 @@ fn prove_benchmark() {

core::hint::black_box(proof);
}
println!(
"Proving for {RUNS} {}-input FCMPs with a set size of {} took an average of {}ms each",
paths.len(),
set_size,
(std::time::Instant::now() - prove_start).as_millis() / u128::try_from(RUNS).unwrap()
);
#[allow(clippy::print_literal)]
{
println!(
"{} for {RUNS} {}-input FCMPs with a set size of {} took an average of {}ms each",
"Sequentially proving",
paths.len(),
set_size,
(std::time::Instant::now() - prove_start).as_millis() / u128::try_from(RUNS).unwrap()
);
}
}
}

Expand Down

0 comments on commit a02cf55

Please sign in to comment.