Skip to content

Commit

Permalink
ci: do benchmark for solana-runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
yihau committed Jul 9, 2024
1 parent 0a05418 commit e337f29
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Rust Example
on:
push:
branches:
- master

permissions:
contents: write
deployments: write

jobs:
benchmark:
name: Run Rust benchmark example
runs-on: ubuntu-latest
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
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: bench-solana-runtime
tool: "cargo"
output-file-path: output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ inherits = "release"
debug = true
split-debuginfo = "packed"

[profile.bench]
lto = true

[workspace]
members = [
"account-decoder",
Expand Down

0 comments on commit e337f29

Please sign in to comment.