EvHaus / test-runner-benchmarks

A repository to measure performance of various JavaScript test runners
72 stars 13 forks source link

test-runner-benchmarks

This repo is setup to test the performance of various test runners. Specially to:

Results

Single-thread (on GitHub Actions CI)

Multi-thread (12 core PC)

Setup

  1. Install hyperfine via these instructions:
  2. Install dependencies:
    yarn

Then you can run benchmarks via:

hyperfine --warmup 1 \
    'yarn workspace bun test' \
    'yarn workspace jasmine test' \
    'yarn workspace jest test' \
    'yarn workspace tape test' \
    'yarn workspace vitest test --poolOptions.threads.isolate=false'

[!NOTE] These benchmarks are supported on MacOS and Linux. Windows is not supported at this time.

Suites

Results

Benchmarks are run via GitHub Actions. You can check the latest run results here.

Philosophy

Other Suites