Skip to content

perf(replaceOrAppend): avoid creating 2 intermediate arrays #10

perf(replaceOrAppend): avoid creating 2 intermediate arrays

perf(replaceOrAppend): avoid creating 2 intermediate arrays #10

Workflow file for this run

name: codspeed-benchmarks
on:
pull_request:
branches:
- "main"
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:
jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
node-version: '22.x'
cache: pnpm
- run: pnpm install
- name: Run benchmarks
uses: CodSpeedHQ/action@v2
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: pnpm bench