3 ms·
Bun's equivalent of "npm i" is extremely fast, at least an order of magnitude faster on all 3 of my machines. Since I run "npm i" many times per day, that in i
by angra_mainyu 3y ago
Bun's equivalent of "npm i" is extremely fast, at least an order of magnitude faster on all 3 of my machines.
Since I run "npm i" many times per day, that in itself is a big timesaver, not just for local dev but also in CI pipelines.
- arcanemachiner 3y agoHave you tried pnpm? https://pnpm.io/ https://pnpm.io/
- rlt 3y agoHow does it compare to pnpm
- bufferoverflow 3y agopnpm is 3x slower or even more https://miro.medium.com/v2/resize:fit:832/1*noWyIXw-yeNZq5Db2r8tOQ.png https://miro.medium.com/v2/resize:fit:832/1*noWyIXw-yeNZq5Db... https://kinsta.com/wp-content/uploads/2023/12/bun-benchmark.png https://kinsta.com/wp-content/uploads/2023/12/bun-benchmark.... And for running scripts, it's not even close https://miro.medium.com/v2/resize:fit:1400/1*oyPEXsFfZsTg4mOBSIJL_A.png https://miro.medium.com/v2/resize:fit:1400/1*oyPEXsFfZsTg4mO...
- briantakita 3y agoI found Bun to be faster. Monorepo support is a bit kludgy though. Once you know of the workarounds, it's ok. See my comment on https://github.com/oven-sh/bun/issues/5413#issuecomment-1956078162 https://github.com/oven-sh/bun/issues/5413#issuecomment-1956... AFAIK, Pnpm monorepos do not follow standard npm. Bun does follow standard npm monorepos. Pnpm's feature to override dependency versions is nice for legacy projects with many 3rd party dependencies. Not sure if Bun has the same feature. I mostly use it on greenfield projects with dependencies that I control.