Skip to content

Commit

Permalink
Upgrade to Vitest 1
Browse files Browse the repository at this point in the history
  • Loading branch information
EvHaus committed Dec 5, 2023
1 parent 0d17a51 commit 601a7e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
hyperfine --warmup 1 \
'yarn workspace jasmine test' \
'yarn workspace jest test' \
'yarn workspace vitest test --experimentalVmThreads' \
'yarn workspace vitest test --isolate=false' \
'yarn workspace vitest test' \
'yarn workspace vitest test --pool=vmThreads' \
'yarn workspace vitest test --poolOptions.threads.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 @@ -18,7 +18,7 @@ yarn
Then you can run benchmarks via:

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

> [!NOTE]
Expand All @@ -28,7 +28,7 @@ hyperfine --warmup 1 'yarn workspace jasmine test' 'yarn workspace jest test' 'y

- `jasmine`: This is our baseline, using Jasmine and happy-dom.
- `jest`: Same test suite, but running using Jest.
- `vitest`: Same test suite, but running using Vitest. NOTE: That benchmarks include vitest with the `isolate` setting both enabled and disabled due to [this issue](https://github.com/vitest-dev/vitest/issues/229#issuecomment-1003235680)
- `vitest`: Same test suite, but running using Vitest. NOTE: That benchmarks include vitest with the `--poolOptions.threads.isolate` setting both enabled and disabled due to [this issue](https://github.com/vitest-dev/vitest/issues/229#issuecomment-1003235680)
- `bun`: Same test suite, but running using Bun.

## Results
Expand Down

0 comments on commit 601a7e4

Please sign in to comment.