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

@@ -22,6 +22,7 @@ ark-r1cs-std = { version = "^0.3.0", default-features = false, optional = true }
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]
@@ -31,4 +32,9 @@ std = [ "ark-std/std", "ark-ff/std", "ark-ec/std" ]
curve = [ "scalar_field", "base_field" ]
scalar_field = []
base_field = []
r1cs = [ "base_field", "ark-r1cs-std" ]
r1cs = [ "base_field", "ark-r1cs-std" ]
[[bench]]
name = "mnt4_298"
path = "benches/mnt4_298.rs"
harness = false

View File

@@ -0,0 +1,15 @@
use ark_algebra_bench_templates::*;
use ark_mnt4_298::{
fq::Fq, fq2::Fq2, fr::Fr, Fq4, G1Projective as G1, G2Projective as G2, MNT4_298,
};
bench!(
Name = "MNT4_298",
Pairing = MNT4_298,
G1 = G1,
G2 = G2,
ScalarField = Fr,
G1BaseField = Fq,
G2BaseField = Fq2,
TargetField = Fq4,
);