oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.21k stars 2.77k forks source link

Nuxt performance with bun #12270

Open joezak11 opened 4 months ago

joezak11 commented 4 months ago

What version of Bun is running?

1.1.17+bb66bba1b

What platform is your computer?

Linux 6.9.7-arch1-1 x86_64 unknown

What steps can reproduce the bug?

When I run a Nuxt 3 project using bun --bun run dev --host it starts very slow and uses a lot of memory compared to when removing the --bun flag.

with --bun

2024-06-30-230035_sway_screenshot

without --bun

2024-06-30-230122_sway_screenshot

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

Dependencies

"@nuxt/image": "^1.7.0",
"@nuxt/ui": "^2.17.0",
"@nuxtjs/tailwindcss": "^6.12.0",
"@pinia/nuxt": "^0.5.1",
"nuxt": "^3.12.2",
"sharp": "^0.33.4",
"swiper": "^11.1.4",
"vue": "^3.4.29",
"vue-router": "^4.3.3",
"@vueuse/core": "^10.11.0",
"@vueuse/nuxt": "^10.11.0",
"sass": "^1.77.6"
Jarred-Sumner commented 4 months ago

Might be partially caused by our zlib implementation.