Skip to content

Clarify what these benchmarks are for (#370) #359

Clarify what these benchmarks are for (#370)

Clarify what these benchmarks are for (#370) #359

Workflow file for this run

name: Node benchmarks
on:
workflow_dispatch:
push:
branches:
- master
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 0 * * 1'
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: "${{ github.workflow }}"
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm i
- name: Run benchmarks
run: npm start y 100 10 40
- name: Compare results
run: |
node ./benchmark compare -t
node ./benchmark compare -u
- name: Commit and push updated results
uses: github-actions-x/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: 'master'
commit-message: 'chore: update benchmark results'
force-add: 'true'
rebase: 'true'
files: benchmark-results.json README.md
name: Github Actions
email: <>