Skip to content

Update color.d.ts (#19) #79

Update color.d.ts (#19)

Update color.d.ts (#19) #79

Workflow file for this run

name: Benchmark
on:
push:
branches:
- main
jobs:
benchmark:
name: Performance comparison
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
- name: Build
run: |
npm ci
npm run lint
npm run build
- name: Test
run: node test/index.js
- name: Reset
run: git reset --hard
- name: Benchmark hex parsing
run: node test/hexbench.js | tee output.txt
- name: Store hex parsing results
uses: rhysd/github-action-benchmark@v1
with:
name: HEX parsing
# What benchmark tool the output.txt came from
tool: 'benchmarkjs'
# Where the output from the benchmark tool is stored
output-file-path: output.txt
# Personal access token to deploy GitHub Pages branch
github-token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
# Push and deploy GitHub pages branch automatically
auto-push: true
- name: Benchmark against other libraries
run: node test/compare.js | tee output.txt
- name: Store compare results
uses: rhysd/github-action-benchmark@v1
with:
name: Comparison
# What benchmark tool the output.txt came from
tool: 'benchmarkjs'
# Where the output from the benchmark tool is stored
output-file-path: output.txt
# Personal access token to deploy GitHub Pages branch
github-token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
# Push and deploy GitHub pages branch automatically
auto-push: true