You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
493 B

4 years ago
  1. use ark_curve_benches::*;
  2. use ark_std::ops::{AddAssign, MulAssign, SubAssign};
  3. use ark_ec::ProjectiveCurve;
  4. use ark_ed_on_bls12_381::{fq::Fq, fr::Fr, EdwardsAffine as GAffine, EdwardsProjective as G};
  5. use ark_ff::{
  6. biginteger::BigInteger256 as Repr, BigInteger, Field, PrimeField, SquareRootField, UniformRand,
  7. };
  8. mod g {
  9. use super::*;
  10. ec_bench!(G, GAffine);
  11. }
  12. f_bench!(Fq, Fq, Repr, Repr, fq);
  13. f_bench!(Fr, Fr, Repr, Repr, fr);
  14. bencher::benchmark_main!(fq, fr, g::group_ops);