mirror of
https://github.com/arnaucube/ark-curves-cherry-picked.git
synced 2026-01-08 23:11:29 +01:00
Update to new benchmarking framework (#126)
This commit is contained in:
@@ -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
|
||||
|
||||
15
mnt4_298/benches/mnt4_298.rs
Normal file
15
mnt4_298/benches/mnt4_298.rs
Normal 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,
|
||||
);
|
||||
Reference in New Issue
Block a user