-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
馃懛 Define a benchmark workflow (#519)
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |