Skip to content

chore: Improve binary performance and codspeed ci #11

chore: Improve binary performance and codspeed ci

chore: Improve binary performance and codspeed ci #11

Workflow file for this run

name: codspeed-benchmarks
on:
push:
branches:
- "main"
pull_request:
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:
jobs:
call-rust-build:
uses: ./.github/workflows/rust-build.yaml
benchmarks:
needs: [call-rust-build]
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v3"
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Dependencies
run: npm install -g [email protected] && pnpm i --frozen-lockfile
- name: Run benchmarks
uses: CodSpeedHQ/action@v2
with:
run: npm exec vitest bench
token: ${{ secrets.CODSPEED_TOKEN }}