Skip to content

Commit

Permalink
Benchmark NAPI WIP 1
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Mar 14, 2024
1 parent 53a8e7f commit 32f30ce
Show file tree
Hide file tree
Showing 5 changed files with 1,799 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/benchmark-js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Benchmark JS

on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
paths:
- '**/*.rs'
- 'Cargo.lock'
- '.github/workflows/benchmark-js.yml'
push:
branches:
- main
- bench-*
paths:
- '**/*.rs'
- 'Cargo.lock'
- '.github/workflows/benchmark-js.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

jobs:
benchmark-js:
name: Benchmark JS
runs-on: ubuntu-latest
steps:
- name: Checkout Branch
uses: actions/checkout@v4
with:
progress: false
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm install

- name: Run benchmarks
uses: CodSpeedHQ/action@v2
timeout-minutes: 30
with:
run: npm exec vitest bench
token: ${{ secrets.CODSPEED_TOKEN }}
Loading

0 comments on commit 32f30ce

Please sign in to comment.