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

Bun is Very Slow Generally #16246

Open
Barzi-Ahmed opened this issue Jan 8, 2025 · 5 comments
Open

Bun is Very Slow Generally #16246

Barzi-Ahmed opened this issue Jan 8, 2025 · 5 comments
Labels
bug Something isn't working bun install Something that relates to the npm-compatible client performance An issue with performance

Comments

@Barzi-Ahmed
Copy link

What version of Bun is running?

v1.1.42

What platform is your computer?

macOS

What steps can reproduce the bug?

Hi,
Bun commands "outdated", "update", and "install", are all very slow. If I run them when I turn my computer, they are very slow, but after second try it is fast. Everytime I have to run the command to pass the slowness phase, then next command gets faster. Any change to updating even one package, will again start the slowness phase.

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

@Barzi-Ahmed Barzi-Ahmed added bug Something isn't working needs triage labels Jan 8, 2025
@Jarred-Sumner
Copy link
Collaborator

How was Bun installed? Was it installed via npm or curl or homebrew? Is bun installed on a network drive by chance?

@Barzi-Ahmed
Copy link
Author

Barzi-Ahmed commented Jan 8, 2025

@Jarred-Sumner it was installed via curl. No, no network drives at all.

@Barzi-Ahmed
Copy link
Author

And just for the record, I use Bun workspaces (monorepo), and this is my bunfig.toml:

smol = false
telemetry = false
[install]
optional = true
dev = true
peer = true
production = false
exact = false
saveTextLockfile = true
auto = "auto"
frozenLockfile = false
dryRun = false
registry = "https://registry.npmjs.org"

@dylan-conway
Copy link
Member

@Barzi-Ahmed how long does the first run take on average? Could you share the output from bun install --verbose when it's slow?

@RiskyMH RiskyMH added performance An issue with performance bun install Something that relates to the npm-compatible client and removed needs triage labels Jan 9, 2025
@davidmatter
Copy link

Check your Gatekeeper configuration. Some information here: https://news.ycombinator.com/item?id=24393974

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bun install Something that relates to the npm-compatible client performance An issue with performance
Projects
None yet
Development

No branches or pull requests

5 participants