Saltar al contenido principal

Benchmarks of JavaScript Package Managers

Last benchmarked at: Jul 30, 2026, 8:17 PM (daily updated).

This benchmark compares the performance of npm, pnpm, Yarn Classic, and Yarn PnP (check Yarn's benchmarks for any other Yarn modes that are not included here).

Each row's label lists which of cache, lockfile, and node_modules are warm/present before install runs. Quick mapping to the real world (ordered from slowest to fastest scenario):

  • clean: a brand-new clone — nothing cached, no lockfile, no node_modules.
  • cache: a developer reinstalling without a lockfile.
  • lockfile: a CI server doing its first install.
  • cache+lockfile: a developer reinstalling a known project.
  • cache+node_modules: the lockfile is deleted and install is run again.
  • node_modules: the cache and lockfile are deleted and install is run again.
  • lockfile+node_modules: the cache is deleted and install is run again.
  • cache+lockfile+node_modules: re-running install when nothing has changed.
  • update: dependency versions are bumped in package.json and install is run again.

Lots of Files

The app's package.json here

actioncachelockfilenode_modulesnpmpnpmpnpm 🦀YarnYarn PnP
install28.5s7.5s2s6.9s2.9s
install10.8s4.4s1s6.9s2.5s
install10.2s5.4s1.8s5.1s1.1s
install6.6s2s498ms5.1s1.1s
install1.4s443ms51ms6.4sn/a
install1.4s483ms57ms6.5sn/a
install1s404ms63ms4.6sn/a
install1s400ms14ms4.6sn/a
updaten/an/an/a6.3s7.3s1.1s5.3s2.6s
Graph of the alotta-files results

pnpm vs pnpm 🦀

pnpm v12 will use a new installation engine for fetching and linking written in Rust. See pacquet.

actioncachelockfilenode_modulespnpmpnpm 🦀
install7.5s2s
install5.4s1.8s
install4.4s1s
install2s498ms
install483ms57ms
install443ms51ms
install404ms63ms
install400ms14ms
updaten/an/an/a7.3s1.1s
Graph comparing pnpm versions on the alotta-files fixture