From 5b37c3fafd1d85b15190c218375b31fede9ab1ab Mon Sep 17 00:00:00 2001 From: rebenkoy Date: Wed, 22 Nov 2023 02:01:07 +0300 Subject: [PATCH] fix benches --- benches/bench_ecmul.rs | 6 +++--- benches/bench_poseidons.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/benches/bench_ecmul.rs b/benches/bench_ecmul.rs index 0500a01..96dd71c 100644 --- a/benches/bench_ecmul.rs +++ b/benches/bench_ecmul.rs @@ -27,7 +27,7 @@ pub fn homogenize<'a>(gate: Gatebb<'a, F>, mu: F) -> Gatebb<'a, F> { ibuf.push(input[i] * mu_inv); } - let mut obuf = gate.exec(&ibuf, &[]); + let mut obuf = gate.exec(&ibuf); for i in 0..obuf.len() { obuf[i] *= mu_d; } @@ -35,7 +35,7 @@ pub fn homogenize<'a>(gate: Gatebb<'a, F>, mu: F) -> Gatebb<'a, F> { obuf }; - Gatebb::new(gate_d, gate_i, gate_o, Rc::new(f)) + Gatebb::new(gate_d, gate_i, gate_o, Rc::new(f), vec![]) } pub fn evaluate_on_random_linear_combinations<'c>(gate: &impl Gate<'c, F>, a: &Vec, b: &Vec, randomness: &Vec) { @@ -44,7 +44,7 @@ pub fn evaluate_on_random_linear_combinations<'c>(gate: &impl Gate<'c, F>, a: &V for i in 0..gate.d() { let fold: Vec<_> = a.iter().zip(b.iter()).map(|(&x, &y)| x + randomness[i] * y).collect(); - let obuf = gate.exec(&fold, &[]); + let obuf = gate.exec(&fold); interpolation_values.push(obuf); } diff --git a/benches/bench_poseidons.rs b/benches/bench_poseidons.rs index 98ee383..922dc4c 100644 --- a/benches/bench_poseidons.rs +++ b/benches/bench_poseidons.rs @@ -25,7 +25,7 @@ pub fn homogenize<'a>(gate: Gatebb<'a, F>, mu: F) -> Gatebb<'a, F> { ibuf.push(input[i] * mu_inv); } - let mut obuf = gate.exec(&ibuf, &[]); + let mut obuf = gate.exec(&ibuf); for i in 0..obuf.len() { obuf[i] *= mu_d; } @@ -33,7 +33,7 @@ pub fn homogenize<'a>(gate: Gatebb<'a, F>, mu: F) -> Gatebb<'a, F> { obuf }; - Gatebb::new(gate_d, gate_i, gate_o, Rc::new(f)) + Gatebb::new(gate_d, gate_i, gate_o, Rc::new(f), vec![]) } pub fn evaluate_on_random_linear_combinations<'c>(gate: &impl Gate<'c, F>, a: &Vec, b: &Vec, randomness: &Vec) { @@ -42,7 +42,7 @@ pub fn evaluate_on_random_linear_combinations<'c>(gate: &impl Gate<'c, F>, a: &V for i in 0..gate.d() { let fold: Vec<_> = a.iter().zip(b.iter()).map(|(&x, &y)| x + randomness[i] * y).collect(); - let obuf = gate.exec(&fold, &[]); + let obuf = gate.exec(&fold); interpolation_values.push(obuf); }