From cf49741b7eecdb68211e92c68fe882eb00a86206 Mon Sep 17 00:00:00 2001 From: Charles Chen Date: Sat, 12 Nov 2022 21:04:15 -0500 Subject: [PATCH] fix bench code --- hyperplonk/benches/bench.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hyperplonk/benches/bench.rs b/hyperplonk/benches/bench.rs index d98981d..bd7bb4b 100644 --- a/hyperplonk/benches/bench.rs +++ b/hyperplonk/benches/bench.rs @@ -16,20 +16,21 @@ use subroutines::{ poly_iop::PolyIOP, }; -const SUPPORTED_SIZE: usize = 20; +const SUPPORTED_SIZE: usize = 15; const MIN_NUM_VARS: usize = 8; const MAX_NUM_VARS: usize = 15; const MIN_CUSTOM_DEGREE: usize = 1; const MAX_CUSTOM_DEGREE: usize = 32; +const MAX_NUM_THREADS: usize = 24; fn main() -> Result<(), HyperPlonkErrors> { let args: Vec = env::args().collect(); - let thread = args[1].parse().unwrap_or(24); + let thread = args[1].parse().unwrap_or(MAX_NUM_THREADS); let mut rng = test_rng(); let pcs_srs = MultilinearKzgPCS::::gen_srs_for_testing(&mut rng, SUPPORTED_SIZE)?; ThreadPoolBuilder::new() .num_threads(thread) - .build_global() + .build() .unwrap(); bench_vanilla_plonk(&pcs_srs, thread)?; for degree in MIN_CUSTOM_DEGREE..MAX_CUSTOM_DEGREE {