-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Windows: Bun install & bun Dev (11x - 6x) Slower than WSL #10042
Comments
that's comparing windows vs linux, and file operations in Windows are more expensive than in Linux, they will probably optimize windows more but it won't get close, here's a good read: microsoft/WSL#873 (comment) |
Windows Defender moment, and #10037 |
As a linux user, I prefer Bun stick with Linux + WSL, Windows is a pain to support, takes time away from more important things, why bother when you have WSL |
I'm obsessed, honestly 😂 |
Are you ok with using WSL or you need native windows support for some reason ? |
Yes, I don't have a problem, but I would be more happy if the speed of both was close to each |
If WSL will always be faster than native Windows due to Windows just being slow, and spending endless time supporting a slower native Windows takes valuable time away from more important features, would you prefer Bun stick with WSL or continue support for native Windows ? |
Well, I prefer WSL if it is more than 2x faster |
For me, using vscode with wsl and plugins uses a lot more resources ~4gb per project. I normally have multiple vscode projects opened so that's like 8-12gb in total and it will bog down my computer. vscode without wsl runs fine though. |
Can you give this a try in Bun v1.1.12 and let us know if you're still seeing a large performance difference between WSL and Windows with |
now it takes 5 second ( not same project, but its good ) 390 packages installed [5.01s] |
I think a 2x - 3x difference on Linux is close to what it is on macOS. I'm going to close this for now but if you feel like it's too slow let us know and we can reopen. |
What version of Bun is running?
1.1.2
What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64
What steps can reproduce the bug?
bun install and bun run dev is so slow on WIndows im testing it on Next js project but same in nuxt 3 too
![image](https://private-user-images.githubusercontent.com/71381670/320274553-f3049e1e-f578-40d1-9ef3-54fb419d600d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyMjkzNTksIm5iZiI6MTcyMTIyOTA1OSwicGF0aCI6Ii83MTM4MTY3MC8zMjAyNzQ1NTMtZjMwNDllMWUtZjU3OC00MGQxLTllZjMtNTRmYjQxOWQ2MDBkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE3VDE1MTA1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA5ZDVjY2ZkMWNhZDQ2NTIwMzMyMGY1YmViMDhiYjhjMTdkYzY5YTE2NmUyOGFhYzgwNzZlNzZjYTgxMzU4NzQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.gJ19_BNOunV9ZgIgVyVQxC_mFC1Y7ha5c5fzZwh7a6A)
in the image left terminal is windows, and the right one is on the WSL,
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: