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:
@@ -10,7 +10,7 @@ keywords = ["cryptography", "finite-fields", "elliptic-curves" ]
|
||||
categories = ["cryptography"]
|
||||
include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
|
||||
license = "MIT/Apache-2.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
ark-ff = { version = "^0.3.0", default-features = false }
|
||||
@@ -23,9 +23,15 @@ ark-mnt4-753 = { version = "^0.3.0", path = "../mnt4_753", default-features = fa
|
||||
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]
|
||||
default = []
|
||||
std = [ "ark-std/std", "ark-ff/std", "ark-ec/std" ]
|
||||
r1cs = ["ark-r1cs-std"]
|
||||
|
||||
[[bench]]
|
||||
name = "mnt6_753"
|
||||
path = "benches/mnt6_753.rs"
|
||||
harness = false
|
||||
|
||||
15
mnt6_753/benches/mnt6_753.rs
Normal file
15
mnt6_753/benches/mnt6_753.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use ark_algebra_bench_templates::*;
|
||||
use ark_mnt6_753::{
|
||||
fq::Fq, fq3::Fq3, fr::Fr, Fq6, G1Projective as G1, G2Projective as G2, MNT6_753,
|
||||
};
|
||||
|
||||
bench!(
|
||||
Name = "MNT6_753",
|
||||
Pairing = MNT6_753,
|
||||
G1 = G1,
|
||||
G2 = G2,
|
||||
ScalarField = Fr,
|
||||
G1BaseField = Fq,
|
||||
G2BaseField = Fq3,
|
||||
TargetField = Fq6,
|
||||
);
|
||||
Reference in New Issue
Block a user