Don't use experimentalVmThreads for vitest when using isolate=false #313
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: Run Benchmarks | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
benchmark: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: 'yarn' | |
- name: Install | |
run: | | |
# Install dependencies | |
yarn install | |
# Install hyperfine | |
wget https://github.com/sharkdp/hyperfine/releases/download/v1.16.1/hyperfine_1.16.1_amd64.deb | |
sudo dpkg -i hyperfine_1.16.1_amd64.deb | |
- name: Install bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: canary | |
- name: Run | |
run: | | |
hyperfine --warmup 1 \ | |
'yarn workspace jasmine test' \ | |
'yarn workspace jest test' \ | |
'yarn workspace vitest test --experimentalVmThreads' \ | |
'yarn workspace vitest test --isolate=false' \ | |
'yarn workspace bun test' |