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,7 +22,13 @@ ark-serialize = { version = "^0.3.0", default-features = false }
[dev-dependencies]
ark-algebra-test-templates = { version = "^0.3.0", default-features = false }
ark-algebra-bench-templates = { version="^0.3.0", default-features = false }
[features]
default = []
std = [ "ark-std/std", "ark-ff/std", "ark-ec/std", "ark-bls12-377/std" ]
[[bench]]
name = "cp6_782"
path = "benches/cp6_782.rs"
harness = false

View File

@@ -0,0 +1,15 @@
use ark_algebra_bench_templates::*;
use ark_cp6_782::{
fq::Fq, fq3::Fq3, fq6::Fq6, fr::Fr, g1::G1Projective as G1, g2::G2Projective as G2, CP6_782,
};
bench!(
Name = "CP6_782",
Pairing = CP6_782,
G1 = G1,
G2 = G2,
ScalarField = Fr,
G1BaseField = Fq,
G2BaseField = Fq3,
TargetField = Fq6,
);