Closed
Description
It appears that at least some calls to Math (only tested abs
and acos
) are several orders of magnitude slower than when run outside of the Jest environment.
See this repo and follow the first list of instructions to reproduce the issue. Running Math.abs
ten million times takes about 10ms
outside of Jest, but increases to about 2000ms
within a Jest environment.
OS: macOS High Sierra 10.13.2
Jest: 21.2.1
Node: 8.9.1
NPM: 5.5.1