Skip to content

Commit

Permalink
Fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
kantp committed Nov 29, 2023
1 parent 5e9ecdc commit e87baa8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions kimchi/benches/proof_criterion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ pub fn bench_proof_creation(c: &mut Criterion) {
let ctx = BenchmarkCtx::new(size);

group.bench_function(
format!("proof creation (SRS size 2^{{{}}}, {} gates)", ctx.srs_size(), ctx.num_gates),
format!(
"proof creation (SRS size 2^{{{}}}, {} gates)",
ctx.srs_size(),
ctx.num_gates
),
|b| b.iter(|| black_box(ctx.create_proof())),
);
}
Expand All @@ -24,7 +28,11 @@ pub fn bench_proof_verification(c: &mut Criterion) {
let proof_and_public = ctx.create_proof();

group.bench_function(
format!("proof verification (SRS size 2^{{{}}}, {} gates)", ctx.srs_size(), ctx.num_gates),
format!(
"proof verification (SRS size 2^{{{}}}, {} gates)",
ctx.srs_size(),
ctx.num_gates
),
|b| b.iter(|| ctx.batch_verification(black_box(&vec![proof_and_public.clone()]))),
);
}
Expand Down

0 comments on commit e87baa8

Please sign in to comment.