Skip to content

Commit

Permalink
ci: add more benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
yihau committed Jul 9, 2024
1 parent 9f2661b commit cc2aaa1
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,28 @@ permissions:

jobs:
benchmark:
name: Run Rust benchmark example
name: rust benchmark
runs-on: ubuntu-latest
strategy:
matrix:
pkg:
- solana-runtime
- solana-gossip
- solana-poh
- solana-sdk
- solana-core
steps:
- uses: actions/checkout@v4

- name: Run benchmark
run: |
source ci/rust-version.sh all
cargo +$rust_nightly bench -p solana-runtime | tee output.txt
cargo +$rust_nightly bench -p ${{matrix.pkg}} | tee output.txt
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: bench-solana-runtime
name: ${{matrix.pkg}}
tool: "cargo"
output-file-path: output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit cc2aaa1

Please sign in to comment.