Skip to content
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

Closed
taymakz opened this issue Apr 7, 2024 · 12 comments
Closed

Windows: Bun install & bun Dev (11x - 6x) Slower than WSL #10042

taymakz opened this issue Apr 7, 2024 · 12 comments
Labels
performance An issue with performance windows An issue that only occurs on Windows

Comments

@taymakz
Copy link

taymakz commented Apr 7, 2024

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
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

@taymakz taymakz added the bug Something isn't working label Apr 7, 2024
@sibouras
Copy link

sibouras commented Apr 7, 2024

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)

@7f8ddd
Copy link
Contributor

7f8ddd commented Apr 7, 2024

Windows Defender moment, and #10037

@e3dio
Copy link
Contributor

e3dio commented Apr 7, 2024

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

@taymakz
Copy link
Author

taymakz commented Apr 7, 2024

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 😂

@e3dio
Copy link
Contributor

e3dio commented Apr 7, 2024

Are you ok with using WSL or you need native windows support for some reason ?

@taymakz
Copy link
Author

taymakz commented Apr 7, 2024

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

@e3dio
Copy link
Contributor

e3dio commented Apr 7, 2024

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 ?

@taymakz
Copy link
Author

taymakz commented Apr 7, 2024

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

@Electroid Electroid added performance An issue with performance windows An issue that only occurs on Windows and removed bug Something isn't working labels Apr 8, 2024
@cpakken
Copy link

cpakken commented Apr 10, 2024

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.

@Jarred-Sumner
Copy link
Collaborator

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 bun install?

@taymakz
Copy link
Author

taymakz commented Jun 6, 2024

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 bun install?

now it takes 5 second ( not same project, but its good )

390 packages installed [5.01s]

@Jarred-Sumner
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance An issue with performance windows An issue that only occurs on Windows
Projects
None yet
Development

No branches or pull requests

7 participants