Update to new benchmarking framework (#126)

This commit is contained in:
Pratyush Mishra
2022-09-09 19:24:33 -07:00
committed by GitHub
parent 55a092a6c7
commit 363426c1d4
42 changed files with 244 additions and 448 deletions

View File

@@ -10,7 +10,7 @@ keywords = ["cryptography", "finite-fields", "elliptic-curves" ]
categories = ["cryptography"]
include = ["Cargo.toml", "src"]
license = "MIT/Apache-2.0"
edition = "2018"
edition = "2021"
[dependencies]
ark-ff = { version = "^0.3.0", default-features = false }
@@ -22,6 +22,7 @@ ark-std = { version = "^0.3.0", default-features = false }
ark-relations = { version = "^0.3.0", default-features = false }
ark-serialize = { version = "^0.3.0", default-features = false }
ark-algebra-test-templates = { version = "^0.3.0", default-features = false }
ark-algebra-bench-templates = { version = "^0.3.0", default-features = false }
ark-curve-constraint-tests = { path = "../curve-constraint-tests", default-features = false }
[features]
@@ -32,3 +33,8 @@ curve = [ "scalar_field", "base_field" ]
scalar_field = []
base_field = []
r1cs = [ "base_field", "ark-r1cs-std" ]
[[bench]]
name = "pallas"
path = "benches/pallas.rs"
harness = false

9
pallas/benches/pallas.rs Normal file
View File

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