Skip to content

perf: setup codspeed to track performance regression #8

perf: setup codspeed to track performance regression

perf: setup codspeed to track performance regression #8

Workflow file for this run

name: CodSpeed
on:
push:
branches:
- "feature/codespeed" # or "master"
pull_request: # required to have reports on PRs
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:
jobs:
benchmarks:
name: Run benchmarks
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y tar bzip2
- name: Setup rust toolchain, cache and cargo-codspeed binary
uses: moonrepo/setup-rust@e013866c4215f77c925f42f60257dec7dd18836e
with:
channel: stable
cache-target: release
bins: cargo-codspeed
- name: Build the benchmark target(s)
run: cargo codspeed build -p pixi_bench
- name: Run the benchmarks
uses: CodSpeedHQ/action@1b1c30d00b603c1e5f8e8b5b8e0c42e1f3c4d5e6
with:
run: |
export PATH="~/.cargo/bin:$PATH"
cargo codspeed run -p pixi_bench
mode: "instrumentation"
token: ${{ secrets.CODSPEED_TOKEN }}