From 9e7cecc6fdef0a161addae9567c6822bb8197988 Mon Sep 17 00:00:00 2001 From: sifnoc Date: Fri, 15 Mar 2024 11:30:36 +0000 Subject: [PATCH] fix: proper variable name in benchmark --- kzg_prover/benches/kzg.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kzg_prover/benches/kzg.rs b/kzg_prover/benches/kzg.rs index 17cddaf8..471bca8c 100644 --- a/kzg_prover/benches/kzg.rs +++ b/kzg_prover/benches/kzg.rs @@ -56,11 +56,11 @@ fn bench_kzg< let entries = generate_dummy_entries::().unwrap(); // Calculate total for all entry columns - let mut csv_total: Vec = vec![BigUint::from(0u32); N_CURRENCIES]; + let mut total_balances: Vec = vec![BigUint::from(0u32); N_CURRENCIES]; for entry in &entries { for (i, balance) in entry.balances().iter().enumerate() { - csv_total[i] += balance; + total_balances[i] += balance; } } @@ -90,7 +90,7 @@ fn bench_kzg< &advice_polys.advice_blinds, ¶ms, balance_column_range, - csv_total + total_balances .iter() .map(|x| big_uint_to_fp(&(x)) * Fp::from(poly_length).invert().unwrap()) .collect::>() @@ -110,7 +110,7 @@ fn bench_kzg< &advice_polys.advice_blinds, ¶ms, balance_column_range, - csv_total + total_balances .iter() .map(|x| big_uint_to_fp(&(x)) * Fp::from(poly_length).invert().unwrap()) .collect::>() @@ -187,7 +187,7 @@ fn bench_kzg< &advice_polys.advice_blinds, ¶ms, balance_column_range.clone(), - csv_total + total_balances .iter() .map(|x| big_uint_to_fp(&(x)) * Fp::from(poly_length).invert().unwrap()) .collect::>()