Browse Source

Fix benchmark imports (#99)

update-to-latest-arkworks
Pratyush Mishra 2 years ago
committed by GitHub
parent
commit
5a1e16e2b7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 16 deletions
  1. +3
    -4
      curve-benches/benches/bn254.rs
  2. +3
    -4
      curve-benches/benches/ed_on_bls12_381.rs
  3. +3
    -4
      curve-benches/benches/pallas.rs
  4. +3
    -4
      curve-benches/benches/vesta.rs

+ 3
- 4
curve-benches/benches/bn254.rs

@ -7,8 +7,7 @@ use ark_bn254::{
}; };
use ark_ec::{PairingEngine, ProjectiveCurve}; use ark_ec::{PairingEngine, ProjectiveCurve};
use ark_ff::{ use ark_ff::{
biginteger::BigInteger256 as FrRepr, BigInteger, Field, PrimeField, SquareRootField,
UniformRand,
biginteger::BigInteger256 as Repr, BigInteger, Field, PrimeField, SquareRootField, UniformRand,
}; };
mod g1 { mod g1 {
@ -20,8 +19,8 @@ mod g2 {
ec_bench!(G2, G2Affine); ec_bench!(G2, G2Affine);
} }
f_bench!(Fq, Fq, FqRepr, FqRepr, fq);
f_bench!(Fr, Fr, FrRepr, FrRepr, fr);
f_bench!(Fq, Fq, Repr, Repr, fq);
f_bench!(Fr, Fr, Repr, Repr, fr);
f_bench!(extension, Fq2, Fq2, fq2); f_bench!(extension, Fq2, Fq2, fq2);
f_bench!(target, Fq12, Fq12, fq12); f_bench!(target, Fq12, Fq12, fq12);

+ 3
- 4
curve-benches/benches/ed_on_bls12_381.rs

@ -4,8 +4,7 @@ use ark_std::ops::{AddAssign, MulAssign, SubAssign};
use ark_ec::ProjectiveCurve; use ark_ec::ProjectiveCurve;
use ark_ed_on_bls12_381::{fq::Fq, fr::Fr, EdwardsAffine as GAffine, EdwardsProjective as G}; use ark_ed_on_bls12_381::{fq::Fq, fr::Fr, EdwardsAffine as GAffine, EdwardsProjective as G};
use ark_ff::{ use ark_ff::{
biginteger::BigInteger256 as FrRepr, BigInteger, Field, PrimeField, SquareRootField,
UniformRand,
biginteger::BigInteger256 as Repr, BigInteger, Field, PrimeField, SquareRootField, UniformRand,
}; };
mod g { mod g {
@ -13,7 +12,7 @@ mod g {
ec_bench!(G, GAffine); ec_bench!(G, GAffine);
} }
f_bench!(Fq, Fq, FqRepr, FqRepr, fq);
f_bench!(Fr, Fr, FrRepr, FrRepr, fr);
f_bench!(Fq, Fq, Repr, Repr, fq);
f_bench!(Fr, Fr, Repr, Repr, fr);
bencher::benchmark_main!(fq, fr, g::group_ops); bencher::benchmark_main!(fq, fr, g::group_ops);

+ 3
- 4
curve-benches/benches/pallas.rs

@ -3,8 +3,7 @@ use ark_std::ops::{AddAssign, MulAssign, SubAssign};
use ark_ec::ProjectiveCurve; use ark_ec::ProjectiveCurve;
use ark_ff::{ use ark_ff::{
biginteger::BigInteger256 as FrRepr, BigInteger, Field, PrimeField, SquareRootField,
UniformRand,
biginteger::BigInteger256 as Repr, BigInteger, Field, PrimeField, SquareRootField, UniformRand,
}; };
use ark_pallas::{fq::Fq, fr::Fr, Affine as GAffine, Projective as G}; use ark_pallas::{fq::Fq, fr::Fr, Affine as GAffine, Projective as G};
@ -13,7 +12,7 @@ mod g {
ec_bench!(G, GAffine); ec_bench!(G, GAffine);
} }
f_bench!(Fq, Fq, FqRepr, FqRepr, fq);
f_bench!(Fr, Fr, FrRepr, FrRepr, fr);
f_bench!(Fq, Fq, Repr, Repr, fq);
f_bench!(Fr, Fr, Repr, Repr, fr);
bencher::benchmark_main!(fq, fr, g::group_ops); bencher::benchmark_main!(fq, fr, g::group_ops);

+ 3
- 4
curve-benches/benches/vesta.rs

@ -3,8 +3,7 @@ use ark_std::ops::{AddAssign, MulAssign, SubAssign};
use ark_ec::ProjectiveCurve; use ark_ec::ProjectiveCurve;
use ark_ff::{ use ark_ff::{
biginteger::BigInteger256 as FrRepr, BigInteger, Field, PrimeField, SquareRootField,
UniformRand,
biginteger::BigInteger256 as Repr, BigInteger, Field, PrimeField, SquareRootField, UniformRand,
}; };
use ark_vesta::{fq::Fq, fr::Fr, Affine as GAffine, Projective as G}; use ark_vesta::{fq::Fq, fr::Fr, Affine as GAffine, Projective as G};
@ -13,7 +12,7 @@ mod g {
ec_bench!(G, GAffine); ec_bench!(G, GAffine);
} }
f_bench!(Fq, Fq, FqRepr, FqRepr, fq);
f_bench!(Fr, Fr, FrRepr, FrRepr, fr);
f_bench!(Fq, Fq, Repr, Repr, fq);
f_bench!(Fr, Fr, Repr, Repr, fr);
bencher::benchmark_main!(fq, fr, g::group_ops); bencher::benchmark_main!(fq, fr, g::group_ops);

Loading…
Cancel
Save