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:
@@ -20,6 +20,7 @@ ark-std = { version="^0.3.0", default-features = false }
|
||||
[dev-dependencies]
|
||||
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 }
|
||||
|
||||
[features]
|
||||
default = [ "curve" ]
|
||||
@@ -27,3 +28,8 @@ std = [ "ark-std/std", "ark-ff/std", "ark-ec/std" ]
|
||||
|
||||
curve = [ "scalar_field" ]
|
||||
scalar_field = []
|
||||
|
||||
[[bench]]
|
||||
name = "bls12_381"
|
||||
path = "benches/bls12_381.rs"
|
||||
harness = false
|
||||
|
||||
16
bls12_381/benches/bls12_381.rs
Normal file
16
bls12_381/benches/bls12_381.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
use ark_algebra_bench_templates::*;
|
||||
|
||||
use ark_bls12_381::{
|
||||
fq::Fq, fq2::Fq2, fr::Fr, Bls12_381, Fq12, G1Projective as G1, G2Projective as G2,
|
||||
};
|
||||
|
||||
bench!(
|
||||
Name = "Bls12_381",
|
||||
Pairing = Bls12_381,
|
||||
G1 = G1,
|
||||
G2 = G2,
|
||||
ScalarField = Fr,
|
||||
G1BaseField = Fq,
|
||||
G2BaseField = Fq2,
|
||||
TargetField = Fq12,
|
||||
);
|
||||
Reference in New Issue
Block a user