Browse Source

Add benchmarks for secp256k1

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

+ 1
- 1
Cargo.toml

@ -34,7 +34,7 @@ members = [
"secp256r1",
"secp384r1",
"secq256k1",
"curve25519",
"ed25519",
]

+ 6
- 0
secp256k1/Cargo.toml

@ -22,9 +22,15 @@ ark-std = { 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-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 = "secp256k1"
path = "benches/secp256k1.rs"
harness = false

+ 9
- 0
secp256k1/benches/secp256k1.rs

@ -0,0 +1,9 @@
use ark_algebra_bench_templates::*;
use ark_secp256k1::{fq::Fq, fr::Fr, Projective as G};
bench!(
Name = "Secp256k1",
Group = G,
ScalarField = Fr,
PrimeBaseField = Fq,
);

Loading…
Cancel
Save