Benchmarks of npm, npm5, shrinkpack, yarn, and pnpm install times.
git clone https://github.com/JamieMason/npm-cache-benchmark.git
cd npm-cache-benchmark
npm install -g [email protected] [email protected] [email protected] [email protected]
node index.js
Installer | Average over 5 runs |
---|---|
yarn --offline | 5.88 |
pnpm --offline | 6.72 |
pnpm (cached) | 6.86 |
npm 5.x (shrinkpacked, compressed) | 8.35 |
npm 5.x (shrinkpacked) | 8.94 |
npm 5.x (cached) | 11.36 |
npm 4.x (cached) | 13.47 |
yarn | 13.71 |
npm 5.x | 14.93 |
pnpm | 17.57 |
npm 4.x (shrinkpacked, compressed) | 18.73 |
npm 4.x (shrinkpacked) | 18.78 |
npm 4.x | 29.73 |
Full results can be found in results.json.