Skip to content

Format codes.

Format codes. #58

Workflow file for this run

name: Criterion.rs with Benchmark Action
on:
push:
branches:
- main
permissions:
contents: write
deployments: write
jobs:
benchmark:
name: Run Criterion.rs benchmarks
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
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: Compile benchmark
run: cargo bench --no-run
- 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"