Compare Yarn Performance

Time to install React Native's dependencies on a MacBook Pro (Mid 2015) in different scenarios.
(Lower is better - average of 5 runs per scenario)

npm Yarn

✗ Warm Cache ✗ node_modules ✗ Lockfile/Shrinkwrap

npm (1 minute 29 seconds)
Yarn (24 seconds 577ms)

✔ Warm Cache ✗ node_modules ✗ Lockfile/Shrinkwrap

npm (1 minute 9 seconds)
Yarn (15 seconds 483ms)

✗ Warm Cache ✗ node_modules ✔ Lockfile/Shrinkwrap

npm (41 seconds 98ms)
Yarn (21 seconds 915ms)

✔ Warm Cache ✗ node_modules ✔ Lockfile/Shrinkwrap

npm (1 minute 40 seconds)
Yarn (13 seconds 958ms)

✗ Warm Cache ✔ node_modules ✔ Lockfile/Shrinkwrap

npm (12 seconds 869ms)
Yarn (342ms)

✔ Warm Cache ✔ node_modules ✔ Lockfile/Shrinkwrap

npm (10 seconds 8ms)
Yarn (381ms)

✔ Warm Cache ✔ node_modules ✗ Lockfile/Shrinkwrap

npm (6 seconds 414ms)
Yarn (8 seconds 303ms)

✗ Warm Cache ✔ node_modules ✗ Lockfile/Shrinkwrap

npm (5 seconds 827ms)
Yarn (16 seconds 146ms)

September 30, 2016 · Node.js v6.2.2 · npm 3.10.3 · Yarn 0.13.0 · MacBook Pro (2.8 GHz Intel Core i7, 16 GB 1600 MHz DDR3)