Skip to content

Commit

Permalink
Don't use experimentalVmThreads for vitest when using isolate=false
Browse files Browse the repository at this point in the history
  • Loading branch information
EvHaus committed Aug 2, 2023
1 parent b0634ed commit 9998785
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ jobs:
hyperfine --warmup 1 \
'yarn workspace jasmine test' \
'yarn workspace jest test' \
'yarn workspace vitest test' \
'yarn workspace vitest test --experimentalVmThreads' \
'yarn workspace vitest test --isolate=false' \
'yarn workspace bun test'
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This repo is setup to test the performance of various test runners. Specially to:

- Help the **Jest** team with https://github.com/facebook/jest/issues/6694.
- Help the **Vitest** team with https://github.com/vitest-dev/vitest/issues/229
- Help the **Vitest** team with https://github.com/vitest-dev/vitest/issues/229 & https://github.com/vitest-dev/vitest/issues/579

## Setup

Expand All @@ -16,7 +16,7 @@ yarn
Then you can run benchmarks via:

```sh
hyperfine --warmup 1 'yarn workspace jasmine test' 'yarn workspace jest test' 'yarn workspace vitest test' 'yarn workspace vitest test --isolate=false' 'yarn workspace bun test'
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'
```

## Suites
Expand Down
1 change: 0 additions & 1 deletion benchmarks/vitest/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default defineConfig({
}
},
environment: 'happy-dom',
experimentalVmThreads: true,
setupFiles: ['setupFile.ts'],
watch: false
},
Expand Down

0 comments on commit 9998785

Please sign in to comment.