Skip to content

Adds benchmarking tools #2

Adds benchmarking tools

Adds benchmarking tools #2

Workflow file for this run

name: CodSpeed
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
CARGO_TERM_COLOR: always
jobs:
codspeed:
name: Run CodSpeed benchmarks
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Rust Cache
uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
with:
shared-key: codspeed
- name: Install cargo-codspeed
run: cargo install cargo-codspeed
- name: Build benchmarks
run: cargo codspeed build -p zpm
- name: Run benchmarks
uses: CodSpeedHQ/action@v4
with:
mode: simulation
run: cargo codspeed run -p zpm
token: ${{ secrets.CODSPEED_TOKEN }}