Closed
Description
Occurs on both OSX and Linux (Travis CI).
- Version: 8.0.0
- Platform:
- Darwin Miless-MBP 16.5.0 Darwin Kernel Version 16.5.0: Fri Mar 3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64
- "linux", version: "3.13.0-29-generic", arch: "amd64", family: "unix"
- Subsystem:
I've noticed that one of my projects unit tests are running 4-5x slower on Node v8 than previous versions. I have yet to determine the cause, but an example can be found in the Travis builds: https://travis-ci.org/milesj/emoji-database
This is 100% reproducible and consistent, even on OSX. Here's an output of the tests being run on OSX (notice the times).
$ NODE_ENV=test run-tests
PASS tests/extractGender.test.js
PASS tests/cleanName.test.js
PASS tests/extractSkinTone.test.js
PASS tests/createShortnames.test.js
PASS tests/createTags.test.js
PASS tests/extractSet.test.js
PASS tests/fromUnicodeToHex.test.js
PASS tests/fromHexToCodepoint.test.js
PASS tests/regex.test.js (57.436s)
PASS tests/packageData.test.js (121.958s)
Test Suites: 10 passed, 10 total
Tests: 51415 passed, 51415 total
Snapshots: 0 total
Time: 123.471s, estimated 129s
Ran all test suites.
Compared to Node v7.
$ NODE_ENV=test run-tests
PASS tests/extractSet.test.js
PASS tests/extractGender.test.js
PASS tests/createTags.test.js
PASS tests/extractSkinTone.test.js
PASS tests/cleanName.test.js
PASS tests/createShortnames.test.js
PASS tests/fromUnicodeToHex.test.js
PASS tests/fromHexToCodepoint.test.js
PASS tests/regex.test.js (8.174s)
PASS tests/packageData.test.js (11.178s)
Test Suites: 10 passed, 10 total
Tests: 51415 passed, 51415 total
Snapshots: 0 total
Time: 13.606s
Ran all test suites.