3 ms·
If you're using Cygwin or Msys.... theres your problem. They're notoriously slow emulations of posix syscalls that don't translate well to Windows. Fork & fs o
by TickleSteve 7y ago
If you're using Cygwin or Msys.... theres your problem. They're notoriously slow emulations of posix syscalls that don't translate well to Windows.
Fork & fs operations, certainly.... nothing to do with Windows itself.
- masklinn 7y ago> Fork & fs operations, certainly.... nothing to do with Windows itself. Both of these operations are known to be very slow specifically in windows. The former's the reason why windows has always strongly favored thread-based concurrency (whereas unices tend to favor process-based concurrency)[0], the latter is well know of NTFS, it deals especially badly with lots of small files. [0] even excluding making the entire thing blowing its gasket as Bruce Dawson triggers with appalling regularity, in fact in one of his posts he specifically notes in the introduction that windows is notorious for its slow file and process operations: https://randomascii.wordpress.com/2018/10/15/making-windows-slower-part-2-process-creation/ https://randomascii.wordpress.com/2018/10/15/making-windows-...
- mceachen 7y agoFWIW these are mocha suites running under nodeJS, so if v8 had a really bad windows subsystem, that'd explain it, but as others have stated, the performance difference correlates with other cross platform runtime environments as well.