Skip to content

Benchmark

Benchmark #30

Workflow file for this run

name: Benchmark
on:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
benchmark-x86:
name: Benchmark X86
runs-on: buildjet-2vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: Benchmark
run: cargo bench --bench throughput --features 'bench-plot'
- name: Switch to nightly rust
run: rustup default nightly
- name: Benchmark AVX2 (nightly)
run: cargo bench --bench throughput --features 'bench-plot avx2'
- uses: buildjet/cache@v3
with:
key: benches-${{ github.sha }}
path: benches/throughput/*.svg
benchmark-arm:
name: Benchmark ARM
runs-on: buildjet-2vcpu-ubuntu-2204-arm
steps:
- uses: actions/checkout@v4
- name: Benchmark
run: cargo bench --bench throughput --features 'bench-plot'
- uses: buildjet/cache@v3
with:
key: benches-${{ github.sha }}
path: benches/throughput/*.svg
commit:
name: Commit & Push
runs-on: buildjet-2vcpu-ubuntu-2204
needs: [benchmark-x86, benchmark-arm]
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Delete Previous Benchmark Results
run: rm -v benches/throughput/*.svg
- name: Download Benchmark Results
uses: buildjet/cache@v3
with:
key: benches-${{ github.sha }}
path: benches/throughput
- name: Commit & Push Benchmark Results
uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: '*.svg'
commit_message: Update Benchmark Results
commit_user_name: Benchmark Bot
commit_user_email: [email protected]
commit_author: Benchmark Bot <[email protected]>