Skip to content

Adds performance benchmarks with tinybench, benchmark CI via CodSpeed #1

Adds performance benchmarks with tinybench, benchmark CI via CodSpeed

Adds performance benchmarks with tinybench, benchmark CI via CodSpeed #1

Workflow file for this run

name: Benchmark
on:
push:
branches: [main]
pull_request:
branches: [main]
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
benchmarks:
name: Run benchmarks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Build WASM
run: make
- name: Install dependencies
run: deno install
- name: Run benchmarks
uses: CodSpeedHQ/action@v4
with:
mode: simulation
run: deno task bench