Skip to content

Commit

Permalink
test: introduce some basic benchmarks (#3877)
Browse files Browse the repository at this point in the history
* test(ironfish-rust): introduce some basic benchmarks

* chore: move benchmarks to a separate project

* test: add additional rust benchmarks: asset, note decryption, sapling key
  • Loading branch information
mat-if authored May 8, 2023
1 parent fac6593 commit 328248a
Show file tree
Hide file tree
Showing 16 changed files with 575 additions and 22 deletions.
5 changes: 4 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[alias]
benchmark = "bench --package benchmarks"

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"

[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-musl-gcc"
rustflags = ["-C", "target-feature=-crt-static"]
rustflags = ["-C", "target-feature=-crt-static"]
4 changes: 3 additions & 1 deletion .github/workflows/rust_ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
on:
pull_request:
paths:
- "benchmarks/**"
- "ironfish-mpc/**"
- "ironfish-phase2/**"
- "ironfish-rust/**"
Expand All @@ -14,6 +15,7 @@ on:
branches:
- master
paths:
- "benchmarks/**"
- "ironfish-mpc/**"
- "ironfish-phase2/**"
- "ironfish-rust/**"
Expand Down Expand Up @@ -45,7 +47,7 @@ jobs:
- name: Check that cargo lockfile is up to date
run: |
cargo check --locked
cargo check --locked --all-targets
# Note: ironfish-zkp is does not need this due to different licensing
- name: Check for license headers for ironfish-rust
Expand Down
Loading

0 comments on commit 328248a

Please sign in to comment.