Browse Source

Add benchmarks for curve25519.

use-algebra-ci-no-std
Michele Orrù 1 year ago
committed by Pratyush Mishra
parent
commit
ab9be6d8f4
3 changed files with 16 additions and 1 deletions
  1. +6
    -0
      curve25519/Cargo.toml
  2. +9
    -0
      curve25519/benches/curve25519.rs
  3. +1
    -1
      secp256k1/benches/secp256k1.rs

+ 6
- 0
curve25519/Cargo.toml

@ -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
- 0
curve25519/benches/curve25519.rs

@ -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,
);

+ 1
- 1
secp256k1/benches/secp256k1.rs

@ -6,4 +6,4 @@ bench!(
Group = G,
ScalarField = Fr,
PrimeBaseField = Fq,
);
);

Loading…
Cancel
Save