Skip to content

Instantly share code, notes, and snippets.

@deleteme
Last active August 12, 2019 09:01
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deleteme/25fcca7cd16aceb30cc5f50e022aa706 to your computer and use it in GitHub Desktop.
Save deleteme/25fcca7cd16aceb30cc5f50e022aa706 to your computer and use it in GitHub Desktop.
Jest Version Benchmarks: 22, 23, 24

Benchmark Jest 22.1.4, 23.5.0, 23.6.0

node version jest version median duration run 1 run 2 run 3 run 4 run 5
8.x? 23.6.0 19.1 31.9 19.1 19.1 18.6 19.5
8.x? 23.5.0 18.7 18.7 17.7 18.1 20.6 20.1
8.x? 22.1.4 12.2 12.2 12.1 11.8 14.3 12.5

Benchmark Jest 22.4.4, 24.1.0, 23.6.0

node version jest version median duration run 1 run 2 run 3 run 4 run 5
10.15.0 23.6.0 11.74 12.1 11.42 11.53 11.74 12.63
10.15.0 24.1.0 20.75 30.64 18.83 20.75 20.93 20.06
10.15.0 22.4.4 8.91 8.63 8.64 8.88 9.03 8.86

Benchmark Jest 22.4.4, 24.7.1

node version jest version median duration run 1 run 2 run 3 run 4 run 5
10.15.0 24.7.1 20.83 32.44 20.3 20.83 20.15 21.44
10.15.0 22.4.4 9.1 13.21 9.1 9.17 8.75 9.06

Benchmark Jest 22.4.4, 24.8.0

node version jest version median duration run 1 run 2 run 3 run 4 run 5
10.15.0 24.8.0 20.07 32.14 18.67 19.6 20.07 21.6
10.15.0 22.4.4 12.65 14.39 11.86 12.86 12.25 12.65

Benchmark Jest 22.4.4, 24.8.0 with micromatch yarn resolution, 24.8.0 without micromatch yarn resolution

Using yarn resolution to pin micromatch @^4.0.2 https://gist.github.com/deleteme/82a6d4f1beb040af401db0250b364383

node version jest version median duration run 1 run 2 run 3 run 4 run 5 note
10.15.0 24.8.0 19.89 18.99 18.98 19.89 20.41 20.56 w/ micromatch yarn resolution
10.15.0 24.8.0 21.96 23.14 21.43 21.28 21.96 22.89 w/o micromatch yarn resolution
10.15.0 22.4.4 9.25 11.05 8.83 9.31 9.25 9.07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment