Skip to content

CI: quote 0.99 to debug. #68

CI: quote 0.99 to debug.

CI: quote 0.99 to debug. #68

Workflow file for this run

name: Criterion.rs with Benchmark Action
on:
push:
branches:
- main
schedule:
- cron: "0 0 * * 6" # Run benchmarks every Saturday at midnight.
permissions:
checks: write
contents: write
deployments: write
jobs:
benchmark:
name: Run Criterion.rs benchmarks
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rust Toolchain
id: toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: "nightly"
- uses: bencherdev/bencher@main
- name: Prepare for benchmark
run: cargo run --example benchmark_integers --release
- name: View benchmark list
run: cargo bench -- --list
- name: Run benchmarks with Criterion.rs
run: cargo bench
if: matrix.os == 'windows-latest'
- name: Track base branch benchmarks with Bencher
run: bencher run --project iof --token '${{ secrets.BENCHER_API_TOKEN }}' --branch main --testbed '${{ matrix.os }}' --threshold-measure latency --threshold-test t_test --threshold-max-sample-size 64 --threshold-upper-boundary "0.99" --thresholds-reset --err --adapter rust_criterion --github-actions '${{ secrets.GITHUB_TOKEN }}' "cargo bench"