This question is basically a duplicate of this , except that the accepted answer to this question was “it's not really slower, you just didn't run the time command correctly.
In my case, this is actually slower! :)
I am on Windows 10. Here's the output of the PowerShell Measure-Command (the TotalMilliseconds line corresponds to the wall clock time):
PS> Measure-Command {npm --version}
Days : 0
Hours : 0
Minutes : 0
Seconds : 1
Milliseconds : 481
Ticks : 14815261
TotalDays : 1.71472928240741E-05
TotalHours : 0.000411535027777778
TotalMinutes : 0.0246921016666667
TotalSeconds : 1.4815261
TotalMilliseconds : 1481.5261
A few other numbers to compare:
- '{. \ node_modules.bin \ mocha}': 1300ms
- 'npm run test' (only starts mocha): 3300ms
npm help: 1900 ms.- the node interpreter itself is fine
node -e 0:: 180ms
npm, ... mocha , 42 , , , 1300 42 !