mirror of
https://github.com/arnaucube/ark-curves-cherry-picked.git
synced 2026-01-08 15:01:29 +01:00
Add benchmarks for curve25519.
This commit is contained in:
committed by
Pratyush Mishra
parent
d5447dec42
commit
ab9be6d8f4
@@ -22,9 +22,15 @@ ark-r1cs-std = { version = "0.4.0", default-features = false, optional = true }
|
||||
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" ]
|
||||
r1cs = [ "ark-r1cs-std" ]
|
||||
|
||||
[[bench]]
|
||||
name = "curve25519"
|
||||
path = "benches/curve25519.rs"
|
||||
harness = false
|
||||
|
||||
9
curve25519/benches/curve25519.rs
Normal file
9
curve25519/benches/curve25519.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
use ark_algebra_bench_templates::*;
|
||||
use ark_curve25519::{EdwardsProjective as G, Fq, Fr};
|
||||
|
||||
bench!(
|
||||
Name = "Curve25519",
|
||||
Group = G,
|
||||
ScalarField = Fr,
|
||||
PrimeBaseField = Fq,
|
||||
);
|
||||
@@ -6,4 +6,4 @@ bench!(
|
||||
Group = G,
|
||||
ScalarField = Fr,
|
||||
PrimeBaseField = Fq,
|
||||
);
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user