8 ms·
That'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 re
by Timon3 3y ago
That'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.