npm is very slow on Windows 10
<p>This question is basically a duplicate of <a href="https://stackoverflow.com/questions/29661019/npm-run-cmd-works-slow">this one</a>, except that the accepted answer on that question was, "it's not actually slower, you just weren't running the timing command correctly."</p>

<p>In my case, it actually is slower! :)</p>

<p>I'm on Windows 10. Here's the output from PowerShell's Measure-Command (the TotalMilliseconds line represents wall-clock time):</p>

<pre><code>PS&gt; 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
</code></pre>

<p>A few other numbers, for comparison:</p>

<ul>
<li>'{.\node_modules.bin\mocha}': 1300ms</li>
<li>'npm run test' (just runs mocha): 3300ms</li>
<li><code>npm help</code>: 1900ms.</li>
<li>the node interpreter itself is ok: <code>node -e 0</code>: 180ms</li>
</ul>

<p>It's not just npm that's slow... mocha reports that my tests only take 42ms, but as you can see above, it takes 1300ms for mocha to run those 42ms of tests!</p>