mirror of
https://github.com/arnaucube/ark-curves-cherry-picked.git
synced 2026-01-09 07:21:30 +01:00
Ed on bls12 377 bench (#152)
Co-authored-by: mmagician <marcin.gorny.94@protonmail.com>
This commit is contained in:
@@ -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-relations = { version = "0.4.0", default-features = false }
|
||||||
ark-serialize = { 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-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 }
|
ark-curve-constraint-tests = { path = "../curve-constraint-tests", default-features = false }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
std = [ "ark-std/std", "ark-ff/std", "ark-ec/std", "ark-bls12-377/std" ]
|
std = [ "ark-std/std", "ark-ff/std", "ark-ec/std", "ark-bls12-377/std" ]
|
||||||
r1cs = [ "ark-r1cs-std" ]
|
r1cs = [ "ark-r1cs-std" ]
|
||||||
|
|
||||||
|
[[bench]]
|
||||||
|
name = "ed_on_bls12_377"
|
||||||
|
path = "benches/ed_on_bls12_377.rs"
|
||||||
|
harness = false
|
||||||
|
|||||||
9
ed_on_bls12_377/benches/ed_on_bls12_377.rs
Normal file
9
ed_on_bls12_377/benches/ed_on_bls12_377.rs
Normal file
@@ -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,
|
||||||
|
);
|
||||||
@@ -30,3 +30,8 @@ ark-curve-constraint-tests = { path = "../curve-constraint-tests", default-featu
|
|||||||
default = []
|
default = []
|
||||||
std = [ "ark-std/std", "ark-ff/std", "ark-ec/std", "ark-bls12-381/std" ]
|
std = [ "ark-std/std", "ark-ff/std", "ark-ec/std", "ark-bls12-381/std" ]
|
||||||
r1cs = ["ark-r1cs-std"]
|
r1cs = ["ark-r1cs-std"]
|
||||||
|
|
||||||
|
[[bench]]
|
||||||
|
name = "ed_on_bls12_381"
|
||||||
|
path = "benches/ed_on_bls12_381.rs"
|
||||||
|
harness = false
|
||||||
|
|||||||
Reference in New Issue
Block a user