-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
require is 3.54x times slower on Windows compared to Linux on same machine #28946
Comments
This comment has been minimized.
This comment has been minimized.
@nodejs/platform-windows |
I don't know if this is causing this issue but I noticed when profiling (via Example `--prof-process` Windows output (I tried this on an old win2012r2 VM)
|
I don't think the performance difference is unexpected.
It might be possible to speed it up by trying
I expect it to introduce a regression on Unices because they need to do more work now in the happy path so it should probably be an |
@bnoordhuis this problem is [maybe] causing an issue in facebook Do you think someone is going to apply a fix soon? I am not used to work on the node project. But if needed i am going to run it locally and check if your proposition solve the problem or directly going in debug to fix it... It's really important to take action and don't let the issue going Idle. Thank you very much for your time. |
@nasreddineskandrani I'm unaware of anyone working on this right now. You're welcome to pick it up. |
There's been no further activity on this. Closing, but since it's not fully resolved I'm adding this to the Futures project board so it does not get lost. |
I have noticed big performance difference between Windows and Linux platforms on same code and machine. Wondering if we can improve the performance of module loading on Windows as it's 3.54x times slower compared to Linux.
Version: 12.7.0
Platform: Windows 10 Pro vs Ubuntu 19.04 both 64-bit (both installed properly without virtualization)
CPU: Intel Core i7-4702MQ 2.2GHz
RAM: 8GB
Drive: SSD
Code for reproduction: https://github.com/mucsi96/nodejs-windows-vs-linux-performace-issue
Windows CPU profile:
Linux CPU profile:
The text was updated successfully, but these errors were encountered: