Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 1.67 KB

README.md

File metadata and controls

52 lines (42 loc) · 1.67 KB

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