From 5a41d7f27a703a7ea9c48512a4148443ec6c747e Mon Sep 17 00:00:00 2001 From: swasilyev Date: Wed, 1 Mar 2023 19:42:20 +0100 Subject: [PATCH] Ed on bls12 377 bench (#152) Co-authored-by: mmagician --- ed_on_bls12_377/Cargo.toml | 6 ++++++ ed_on_bls12_377/benches/ed_on_bls12_377.rs | 9 +++++++++ ed_on_bls12_381/Cargo.toml | 5 +++++ 3 files changed, 20 insertions(+) create mode 100644 ed_on_bls12_377/benches/ed_on_bls12_377.rs diff --git a/ed_on_bls12_377/Cargo.toml b/ed_on_bls12_377/Cargo.toml index f8134c3..ca5a53c 100644 --- a/ed_on_bls12_377/Cargo.toml +++ b/ed_on_bls12_377/Cargo.toml @@ -23,9 +23,15 @@ ark-bls12-377 = { version = "0.4.0", path = "../bls12_377", default-features = f ark-relations = { version = "0.4.0", default-features = false } ark-serialize = { version = "0.4.0", default-features = false } ark-algebra-test-templates = { version = "0.4.0", default-features = false } +ark-algebra-bench-templates = { version = "0.4.0", default-features = false } ark-curve-constraint-tests = { path = "../curve-constraint-tests", default-features = false } [features] default = [] std = [ "ark-std/std", "ark-ff/std", "ark-ec/std", "ark-bls12-377/std" ] r1cs = [ "ark-r1cs-std" ] + +[[bench]] +name = "ed_on_bls12_377" +path = "benches/ed_on_bls12_377.rs" +harness = false diff --git a/ed_on_bls12_377/benches/ed_on_bls12_377.rs b/ed_on_bls12_377/benches/ed_on_bls12_377.rs new file mode 100644 index 0000000..d9d0ca2 --- /dev/null +++ b/ed_on_bls12_377/benches/ed_on_bls12_377.rs @@ -0,0 +1,9 @@ +use ark_algebra_bench_templates::*; +use ark_ed_on_bls12_377::{fq::Fq, fr::Fr, EdwardsProjective as G}; + +bench!( + Name = "EdOnBls12_377", + Group = G, + ScalarField = Fr, + PrimeBaseField = Fq, +); diff --git a/ed_on_bls12_381/Cargo.toml b/ed_on_bls12_381/Cargo.toml index 9dce72b..abe1bba 100644 --- a/ed_on_bls12_381/Cargo.toml +++ b/ed_on_bls12_381/Cargo.toml @@ -30,3 +30,8 @@ ark-curve-constraint-tests = { path = "../curve-constraint-tests", default-featu default = [] std = [ "ark-std/std", "ark-ff/std", "ark-ec/std", "ark-bls12-381/std" ] r1cs = ["ark-r1cs-std"] + +[[bench]] +name = "ed_on_bls12_381" +path = "benches/ed_on_bls12_381.rs" +harness = false