Skip to content

Commit

Permalink
All benches
Browse files Browse the repository at this point in the history
  • Loading branch information
claucece committed Aug 25, 2024
1 parent b854fe7 commit c571f6a
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 2 deletions.
8 changes: 8 additions & 0 deletions tsecp256k1/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ sha2 = "0.10.8"
name = "bench_tcurve"
harness = false

[[bench]]
name = "bench_tacl"
harness = false

[[bench]]
name = "bench_tboomerang"
harness = false

[lib]
bench = false

Expand Down
3 changes: 3 additions & 0 deletions tsecp256k1/benches/bench_tacl.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
use boomerang_macros::bench_tacl_make_all;
use tsecp256k1::Config;
bench_tacl_make_all!(Config, "tsecp256k1");
3 changes: 3 additions & 0 deletions tsecp256k1/benches/bench_tboomerang.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
use boomerang_macros::bench_tboomerang_make_all;
use tsecp256k1::Config;
bench_tboomerang_make_all!(Config, "tsecp256k1");
17 changes: 17 additions & 0 deletions tsecq256k1/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,23 @@ ark-serialize = { version = "0.4.0", default-features = false }
ark-algebra-test-templates = { version = "0.4.0", default-features = false }
ark-algebra-bench-templates = { version = "0.4.0", default-features = false }
ark-secq256k1 = {default-features = false, git = "https://github.com/arkworks-rs/curves", tag = "v0.4.0-alpha.2"}
criterion = "0.5.1"
sha2 = "0.10.8"

[[bench]]
name = "bench_tcurve"
harness = false

[[bench]]
name = "bench_tacl"
harness = false

[[bench]]
name = "bench_tboomerang"
harness = false

[lib]
bench = false

[features]
default = []
Expand Down
3 changes: 3 additions & 0 deletions tsecq256k1/benches/bench_tacl.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
use boomerang_macros::bench_tacl_make_all;
use tsecq256k1::Config;
bench_tacl_make_all!(Config, "tsecq256k1");
3 changes: 3 additions & 0 deletions tsecq256k1/benches/bench_tboomerang.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
use boomerang_macros::bench_tboomerang_make_all;
use tsecq256k1::Config;
bench_tboomerang_make_all!(Config, "tsecq256k1");
5 changes: 5 additions & 0 deletions tsecq256k1/benches/bench_tcurve.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
use ark_secq256k1::Config as secq256k1conf;
use boomerang_macros::bench_tcurve_make_all;
use tsecq256k1::Config;
type OtherProjectiveType = sw::Projective<secq256k1conf>;
bench_tcurve_make_all!(Config, "tsecq256k1", OtherProjectiveType);
4 changes: 2 additions & 2 deletions tsecq256k1/src/curves/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ use ark_ec::short_weierstrass::{self as sw};
use ark_secq256k1::Config as secq256k1conf;
use boomerang_macros::test_acl;
use boomerang_macros::test_boomerang;
//use boomerang_macros::test_pedersen;
use boomerang_macros::test_pedersen;

type OtherProject = sw::Projective<secq256k1conf>;

test_group!(g1; Projective; sw);
//test_pedersen!(tp; Config, OtherProject); // we ignore this test here due to this not being a tom curve
test_pedersen!(tp; Config, OtherProject);
test_acl!(acl; Config, Config, OtherProject);
test_boomerang!(boomerang; Config, Config, Config, OtherProject);

0 comments on commit c571f6a

Please sign in to comment.