From 2c25afcdbd3981def8453b24d1db1101f2e811ed Mon Sep 17 00:00:00 2001 From: "a.stevan" <antoine.stevan@isae-supaero.fr> Date: Fri, 5 Jul 2024 14:25:01 +0200 Subject: [PATCH 1/2] add more curves to setup and commit --- benchmarks/Cargo.toml | 3 +++ benchmarks/src/bin/commit.rs | 30 ++++++++++++++++++++++++++++++ benchmarks/src/bin/setup.rs | 24 ++++++++++++++++++++++++ 3 files changed, 57 insertions(+) diff --git a/benchmarks/Cargo.toml b/benchmarks/Cargo.toml index c79cf1f5..c5308a8e 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 8cda5e46..667fcebf 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 39b2ab77..6bf31735 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", + ); + } } } -- GitLab From 9921758e57fb33e230f370bb74d36695183e2e4d Mon Sep 17 00:00:00 2001 From: "a.stevan" <antoine.stevan@isae-supaero.fr> Date: Fri, 5 Jul 2024 15:17:42 +0200 Subject: [PATCH 2/2] format the code --- benchmarks/src/bin/commit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/src/bin/commit.rs b/benchmarks/src/bin/commit.rs index 667fcebf..34c65137 100644 --- a/benchmarks/src/bin/commit.rs +++ b/benchmarks/src/bin/commit.rs @@ -222,7 +222,7 @@ fn main() { degrees, cli.nb_measurements, G1 = EdwardsProjective, - name="ED-MNT4-298" + name = "ED-MNT4-298" ) } Curve::CP6782 => { -- GitLab