Skip to content

January 2022 Benchmarks of npm, pnpm, yarn, and shrinkpack install times.

License

Notifications You must be signed in to change notification settings

JamieMason/npm-cache-benchmark

 
 

Repository files navigation

npm install benchmarks

Benchmarks of npm, pnpm, yarn, and shrinkpack install times.

I ran these to understand roughly how well shrinkpack performs, please also see the Benchmarks maintained by pnpm (https://pnpm.io/benchmarks) and yarn (https://yarnpkg.com/benchmarks).

Running the benchmarks

npm install -g [email protected]
npm install -g [email protected]
npm install -g [email protected]
npm install -g [email protected]
git clone https://github.com/JamieMason/npm-cache-benchmark.git
cd npm-cache-benchmark
node index.js && node report.js

Results

Installer Average over 5 runs
[email protected] (offline) 6.79
[email protected] (offline) 7.38
[email protected] (with shrinkpack) 12.07
[email protected] 14.61
[email protected] (offline) 16.20
[email protected] 18.28
[email protected] 29.85

Full results can be found in results.json. Benchmark was run on macOS Monterey 12.0.1 on an early 2015 Macbook Air:

Model Name: MacBook Air
Model Identifier: MacBookAir7,2
Processor Name: Dual-Core Intel Core i7
Processor Speed:  2.2 GHz
Number of Processors: 1
Total Number of Cores:  2
L2 Cache (per Core):  256 KB
L3 Cache: 4 MB
Hyper-Threading Technology: Enabled
Memory: 8 GB

About

January 2022 Benchmarks of npm, pnpm, yarn, and shrinkpack install times.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • JavaScript 98.5%
  • Shell 1.5%