Skip to content

Commit

Permalink
fix: use flat sampling mode for computational commitments, reduce cir…
Browse files Browse the repository at this point in the history
…cuit sizes
  • Loading branch information
huitseeker committed Jul 12, 2023
1 parent 1fc9683 commit 53bdff8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions benches/compressed-snark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,16 @@ fn bench_compressed_snark_with_computational_commitments(c: &mut Criterion) {
let num_samples = 10;
let num_cons_verifier_circuit_primary = 9819;
// we vary the number of constraints in the step circuit
for &num_cons_in_augmented_circuit in
[9819, 16384, 32768, 65536, 131072, 262144, 524288, 1048576].iter()
{
for &num_cons_in_augmented_circuit in [9819, 16384, 32768, 65536, 131072, 262144].iter() {
// number of constraints in the step circuit
let num_cons = num_cons_in_augmented_circuit - num_cons_verifier_circuit_primary;

let mut group = c.benchmark_group(format!("CompressedSNARK-Commitments-StepCircuitSize-{num_cons}"));
group.sample_size(num_samples);
let mut group = c.benchmark_group(format!(
"CompressedSNARK-Commitments-StepCircuitSize-{num_cons}"
));
group
.sampling_mode(SamplingMode::Flat)
.sample_size(num_samples);

let c_primary = NonTrivialTestCircuit::new(num_cons);
let c_secondary = TrivialTestCircuit::default();
Expand Down

0 comments on commit 53bdff8

Please sign in to comment.