Skip to content

Commit

Permalink
馃懛 Define a benchmark workflow (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
dubzzz committed Jan 12, 2023
1 parent 0281cfd commit 36c965f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Benchmark
on:
workflow_dispatch:
inputs:
numIterations:
description: 'Number of iterations'
default: '1000'
required: true
numPerRun:
description: 'Number per run'
default: '100'
required: true
jobs:
benchmark:
name: 'Benchmark'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- name: Using Node v16.x
uses: actions/setup-node@v2.1.5
with:
node-version: '16.x'
- name: Install dependencies
run: yarn install --immutable
- name: Build benchmark package
run: yarn build:bench:new
- name: Benchmark
run: yarn bench self ${{github.event.inputs.numIterations}} ${{github.event.inputs.numPerRun}}

0 comments on commit 36c965f

Please sign in to comment.