mirror of
https://github.com/vacp2p/zk-explorations.git
synced 2026-01-09 20:17:59 -05:00
move unbenchmarked code
This commit is contained in:
@@ -35,21 +35,23 @@ fn bench_recursive_snark(c: &mut Criterion) {
|
||||
));
|
||||
group.sample_size(10);
|
||||
|
||||
let snarks: Vec<_> = vec![0; k].into_iter().map(|_| halo2_gwc::gen_application_snark(¶ms_app)).collect();
|
||||
|
||||
let agg_circuit = AggregationCircuit::<GWC>::new(¶ms, snarks);
|
||||
let pk = gen_pk(
|
||||
¶ms,
|
||||
&agg_circuit.without_witnesses(),
|
||||
None,
|
||||
);
|
||||
|
||||
let circuit = agg_circuit.clone();
|
||||
let instances = agg_circuit.instances();
|
||||
|
||||
group.bench_function("Prove", |b| {
|
||||
b.iter(|| {
|
||||
let snarks: Vec<_> = vec![0; k].into_iter().map(|_| halo2_gwc::gen_application_snark(¶ms_app)).collect();
|
||||
|
||||
let agg_circuit = AggregationCircuit::<GWC>::new(¶ms, snarks);
|
||||
let pk = gen_pk(
|
||||
¶ms,
|
||||
&agg_circuit.without_witnesses(),
|
||||
None,
|
||||
);
|
||||
|
||||
let circuit = agg_circuit.clone();
|
||||
let instances = agg_circuit.instances();
|
||||
|
||||
gen_proof::<AggregationCircuit<KzgAs<Bn256, Gwc19>>, ProverGWC<_>, VerifierGWC<_>>(¶ms, &pk, circuit, instances, None::<(PathBuf, PathBuf)>)
|
||||
gen_proof::<AggregationCircuit<KzgAs<Bn256, Gwc19>>, ProverGWC<_>, VerifierGWC<_>>(¶ms, &pk, circuit.clone(), instances.clone(), None::<(PathBuf, PathBuf)>)
|
||||
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user