Skip to content

add benchmark action #8

add benchmark action

add benchmark action #8

Workflow file for this run

name: Run Benchmarks
on: pull_request
jobs:
benchmark:
name: Benchmark
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo install cargo-criterion
- run: cargo criterion --output-format bencher 2>&1 | tee output.txt
- uses: benchmark-action/github-action-benchmark@v1
with:
name: Rust Benchmark
tool: "cargo"
output-file-path: output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
alert-threshold: "120%"
comment-always: true
fail-on-alert: true
gh-pages-branch: main
skip-fetch-gh-pages: true
save-data-file: false