Skip to content
Snippets Groups Projects

dont' hardcode curves in the benchmarks

Merged STEVAN Antoine requested to merge fix-hardcoded-curve-benchmarks into main
2 files
+ 2
20
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 1
10
use std::collections::HashSet;
// see `examples/benches/README.md`
use ark_ff::PrimeField;
@@ -106,15 +104,8 @@ fn main() {
let b = plnk::Bencher::new(cli.nb_measurements);
let curves: Vec<Curve> = cli
.curves
.into_iter()
.collect::<HashSet<_>>()
.into_iter()
.collect();
for n in cli.sizes {
for curve in &curves {
for curve in &cli.curves {
match curve {
Curve::BLS12381 => template::<ark_bls12_381::Fr>(
&b.with_name("BLS12-381"),
Loading