From 31a10b776f037bb9560971dc26939f3561609c7c Mon Sep 17 00:00:00 2001 From: Daniel Lubarov Date: Sun, 28 Feb 2021 23:34:07 -0800 Subject: [PATCH] Minor --- src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8ab93cb1..a93db9f5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -57,18 +57,19 @@ fn bench_gmimc() { const THREADS: usize = 12; const LDE_BITS: i32 = 4; + const W: usize = 13; let hashes_per_poly = 1 << (13 + LDE_BITS); let threads = (0..THREADS).map(|_i| { thread::spawn(move || { - let mut x = [F::ZERO; 12]; - for i in 0..12 { + let mut x = [F::ZERO; W]; + for i in 0..W { x[i] = F::from_canonical_u64((i as u64) * 123456 + 789); } let hashes_per_thread = hashes_per_poly * PROVER_POLYS / THREADS; let start = Instant::now(); for _ in 0..hashes_per_thread { - x = gmimc::gmimc_permute_array::<_, 12, GMIMC_ROUNDS>(x, GMIMC_CONSTANTS); + x = gmimc::gmimc_permute_array::<_, W, GMIMC_ROUNDS>(x, GMIMC_CONSTANTS); } let duration = start.elapsed(); println!("took {:?}", duration);