Skip to content

chore: use codspeed for benchmark (#67) #256

chore: use codspeed for benchmark (#67)

chore: use codspeed for benchmark (#67) #256

Workflow file for this run

name: Benchmark
env:
DEBUG: 'napi:*'
APP_NAME: 'rspack-sources'
MACOSX_DEPLOYMENT_TARGET: '10.13'
# https://github.com/SchrodingerZhu/snmalloc-rs
CACHE_FRIENDLY_OFFSET: 64
'on':
push:
branches:
- main
tags-ignore:
- '**'
paths-ignore:
- '**/*.md'
- LICENSE
- '**/*.gitignore'
- .editorconfig
- docs/**
pull_request: null
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: moonrepo/setup-rust@v1
- name: Install codspeed
uses: taiki-e/install-action@v2
with:
tool: cargo-codspeed
- name: Build Benchmark
run: cargo codspeed build --features codspeed
- name: Run benchmark
uses: CodSpeedHQ/action@v1
timeout-minutes: 30
with:
run: cargo codspeed run
token: ${{ secrets.CODSPEED_TOKEN }}