Skip to content

ci: add more benchmark #5

ci: add more benchmark

ci: add more benchmark #5

Workflow file for this run

name: Benchmark
on:
push:
branches:
- master
permissions:
contents: write
deployments: write
jobs:
benchmark:
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 ${{matrix.pkg}} | tee output.txt
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: ${{matrix.pkg}}
tool: "cargo"
output-file-path: output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true