You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was a time (not so long a go, maybe ~1 year) when make -s jstest took 2-3 minutes on my previous computer.
Now I have a decent Mac with M2 Pro and the same command takes 8 minutes! I don't know what changed, but I doubt we more than doubled the number of tests since then.
Are there some relatively new tests which are specifically slow?
The test runner unfortunately doesn't have an option to print the running time of individual tests but lowering the timeout (default is 120 seconds) will identify the slow ones:
$ time ./node test/parallel/test-http-server-headers-timeout-keepalive.js
./node test/parallel/test-http-server-headers-timeout-keepalive.js 0.11s user 0.02s system 0% cpu 15.088 total
$ time ./node test/parallel/test-http-server-request-timeout-keepalive.js
./node test/parallel/test-http-server-request-timeout-keepalive.js 0.11s user 0.02s system 0% cpu 15.090 total
$ time ./node test/parallel/test-single-executable-application.js
./node test/parallel/test-single-executable-application.js 18.78s user 0.53s system 98% cpu 19.641 total
$ make -s jstest
...
[05:27|% 100|+ 3878|- 0]: Done
All tests passed.
Full run took 5m30s this time. Quite far from the 8 minutes I got last time 🤔
This issue has been marked as stale due to 210 days of inactivity.
It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.
Activity
RaisinTen commentedon Mar 20, 2023
test/parallel/test-single-executable-application.jshas been added recently and it's a slow test. On my Intel Mac, it runs for ~38 seconds but I would expect it to be a bit faster on M2 Pro.bnoordhuis commentedon Mar 20, 2023
The test runner unfortunately doesn't have an option to print the running time of individual tests but lowering the timeout (default is 120 seconds) will identify the slow ones:
richardlau commentedon Mar 20, 2023
test-webcrypto takes over a minute to run on my system.
targos commentedon Mar 20, 2023
Full run took 5m30s this time. Quite far from the 8 minutes I got last time 🤔
joyeecheung commentedon Mar 27, 2023
I think #44342 should help this a bit (which should enable us to move these sequential tests to parallel, but I haven't checked locally yet)
joyeecheung commentedon Mar 27, 2023
I opened #47274 (superseding #44342), which locally cut the time by 19s
test: run WPT files in parallel again
test: run doctool tests in parallel
test: use --port=0 in debugger tests that do not have to work on 9229
test: move debugger tests with --port=0 to parallel
test: run WPT files in parallel again
28 remaining items
test: move debugger tests with --port=0 to parallel
test: use random port in NodeInstance.startViaSignal()
test: use random port in test-inspector-debug-brk-flag
test: use random port in test-inspector-enabled
test: move more inspector sequential tests to parallel
test: run doctool tests in parallel
test: use --port=0 in debugger tests that do not have to work on 9229
test: move debugger tests with --port=0 to parallel
test: use random port in NodeInstance.startViaSignal()
test: use random port in test-inspector-debug-brk-flag
test: use random port in test-inspector-enabled
test: move more inspector sequential tests to parallel
github-actions commentedon Jun 15, 2026
This issue has been marked as stale due to 210 days of inactivity.
It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.