diff --git a/benchmarks/Cargo.toml b/benchmarks/Cargo.toml index c79cf1f5d1a50c28b52f58d634a0b619c915a351..c5308a8e5c891cffd06b45fea1f4d25e5e0f642d 100644 --- a/benchmarks/Cargo.toml +++ b/benchmarks/Cargo.toml @@ -6,8 +6,11 @@ edition = "2021" [dependencies] ark-bls12-381 = "0.4.0" ark-bn254 = "0.4.0" +ark-cp6-782 = "0.4.0" ark-ec = "0.4.2" +ark-ed-on-mnt4-298 = "0.4.0" ark-ff = "0.4.2" +ark-mnt4-753 = "0.4.0" ark-pallas = "0.4.0" ark-poly = "0.4.0" ark-poly-commit = "0.4.0" diff --git a/benchmarks/src/bin/commit.rs b/benchmarks/src/bin/commit.rs index 8cda5e4616ce89b136244cc4013e98f67f597815..34c65137069ffd24cf96ba760d907d9b9bec8290 100644 --- a/benchmarks/src/bin/commit.rs +++ b/benchmarks/src/bin/commit.rs @@ -115,6 +115,9 @@ enum Curve { SECP256K1, SECP256R1, Vesta, + EDOnMnt4298, + CP6782, + MNT4753, } #[derive(Parser)] @@ -213,6 +216,33 @@ fn main() { name = "VESTA" ) } + Curve::EDOnMnt4298 => { + measure!( + ark_ed_on_mnt4_298, + degrees, + cli.nb_measurements, + G1 = EdwardsProjective, + name = "ED-MNT4-298" + ) + } + Curve::CP6782 => { + measure!( + ark_cp6_782, + degrees, + cli.nb_measurements, + G1 = G1Projective, + name = "CP6-782" + ) + } + Curve::MNT4753 => { + measure!( + ark_mnt4_753, + degrees, + cli.nb_measurements, + G1 = G1Projective, + name = "MNT4-753" + ) + } } } } diff --git a/benchmarks/src/bin/setup.rs b/benchmarks/src/bin/setup.rs index 39b2ab770345460d0a59d371d922ddc3ab54ee64..6bf31735e705cb2ed067ea348df5fcd2be82a902 100644 --- a/benchmarks/src/bin/setup.rs +++ b/benchmarks/src/bin/setup.rs @@ -160,6 +160,9 @@ enum Curve { BLS12381, BN254, Pallas, + EDOnMnt4298, + CP6782, + MNT4753, ARKBLS12381, ARKBN254, } @@ -216,6 +219,27 @@ fn main() { "BLS12-381", ); } + Curve::EDOnMnt4298 => { + setup::<ark_ed_on_mnt4_298::Fr, ark_ed_on_mnt4_298::EdwardsProjective>( + &cli.degrees, + cli.nb_measurements, + "ED-MNT4-298", + ); + } + Curve::CP6782 => { + setup::<ark_cp6_782::Fr, ark_cp6_782::G1Projective>( + &cli.degrees, + cli.nb_measurements, + "CP6-782", + ); + } + Curve::MNT4753 => { + setup::<ark_mnt4_753::Fr, ark_mnt4_753::G1Projective>( + &cli.degrees, + cli.nb_measurements, + "MNT4-753", + ); + } } }