4 ms·
OK, I'm impressed. It took 0.01s to run 'bun install react': % cd /tmp % mkdir app % cd app % time bun install react bun add v0.6.1 (78229d
by simonw 3y ago
OK, I'm impressed. It took 0.01s to run 'bun install react':
% cd /tmp
% mkdir app
% cd app
% time bun install react
bun add v0.6.1 (78229da7)
installed react@18.2.0
3 packages installed [20.00ms]
bun install react 0.01s user 0.01s system 50% cpu 0.041 total
% find node_modules | wc -l
41
- Timon3 3y agoThat's probably because it was cached! The first install is "a lot" slower than subsequent ones: $ cd /tmp/ $ mkdir app1 && cd app1 $ time bun install react bun add v1.0.0 (822a00c4) installed react@18.2.0 3 packages installed [431.00ms] real 0m0.436s user 0m0.031s sys 0m0.052s $ cd .. $ mkdir app2 && cd app2 $ time bun install react bun add v1.0.0 (822a00c4) installed react@18.2.0 3 packages installed [6.00ms] real 0m0.010s user 0m0.006s sys 0m0.005s Though even 431ms is obviously amazing!
- billywhizz 3y agoon my currently crappy internet on ubuntu 22 i get ~2.65 seconds for bun and ~5.6 seconds for npm for a clean install without caching. so approx 2x as fast as npm.