fix: usage of node12 which is deprecated
(#90)
#128
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
name: Benchmarks | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
FORCE_COLOR: 3 | |
jobs: | |
benchmarks: | |
name: Benchmarks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- run: npm install | |
- name: Ensure color support detection | |
run: node tests/environments.js | |
- name: Install esbuild | |
run: npm install esbuild | |
- name: Install missing libs | |
run: npm install chalk5@"npm:chalk@v5.x" | |
- name: Simple API calls | |
run: node benchmarks/simple.mjs --expose-gc | |
- name: Complex formatting expression | |
run: node benchmarks/complex.mjs --expose-gc | |
- name: Library module's init time | |
run: node benchmarks/loading.mjs --expose-gc | |
- name: Total loaded code size | |
run: node benchmarks/size.mjs |