Skip to content

Commit

Permalink
fix: proper variable name in benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
sifnoc committed Mar 15, 2024
1 parent c831f5d commit 9e7cecc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kzg_prover/benches/kzg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ fn bench_kzg<
let entries = generate_dummy_entries::<N_USERS, N_CURRENCIES>().unwrap();

// Calculate total for all entry columns
let mut csv_total: Vec<BigUint> = vec![BigUint::from(0u32); N_CURRENCIES];
let mut total_balances: Vec<BigUint> = 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;
}
}

Expand Down Expand Up @@ -90,7 +90,7 @@ fn bench_kzg<
&advice_polys.advice_blinds,
&params,
balance_column_range,
csv_total
total_balances
.iter()
.map(|x| big_uint_to_fp(&(x)) * Fp::from(poly_length).invert().unwrap())
.collect::<Vec<Fp>>()
Expand All @@ -110,7 +110,7 @@ fn bench_kzg<
&advice_polys.advice_blinds,
&params,
balance_column_range,
csv_total
total_balances
.iter()
.map(|x| big_uint_to_fp(&(x)) * Fp::from(poly_length).invert().unwrap())
.collect::<Vec<Fp>>()
Expand Down Expand Up @@ -187,7 +187,7 @@ fn bench_kzg<
&advice_polys.advice_blinds,
&params,
balance_column_range.clone(),
csv_total
total_balances
.iter()
.map(|x| big_uint_to_fp(&(x)) * Fp::from(poly_length).invert().unwrap())
.collect::<Vec<Fp>>()
Expand Down

0 comments on commit 9e7cecc

Please sign in to comment.