Skip to content

Instantly share code, notes, and snippets.

@matthewsimo
Last active July 22, 2022 16:01
Show Gist options
  • Save matthewsimo/c0b69ff0ac5cec07660056d326b0f894 to your computer and use it in GitHub Desktop.
Save matthewsimo/c0b69ff0ac5cec07660056d326b0f894 to your computer and use it in GitHub Desktop.
npm vs bun vs pnpm
npm:
No package-lock.json, no node_modules:
(higher variance so I included multiple)
real 1m32.585s
user 1m9.851s
sys 0m38.996s
real 1m16.526s
user 0m58.036s
sys 0m35.935s
real 1m17.849s
user 1m2.246s
sys 0m37.204s
------
Yes package-lock.json, no node_modules:
real 0m33.592s
user 0m39.664s
sys 0m32.228s
------
Yes package-lock.json, yes node_modules:
real 0m6.385s
user 0m7.038s
sys 0m0.549s
------
No package-lock.json, no node_modules, --silent:
real 0m59.687s
user 0m58.145s
sys 0m36.667s
----
Yes package-lock.json, no node_modules, --silent:
real 0m6.335s
user 0m6.980s
sys 0m0.552s
------
Yes package-lock.json, yes node_modules, --silent:
real 0m6.335s
user 0m6.980s
sys 0m0.552s
------
bun:
no bun.lockb, no node_modules:
real 0m10.107s
user 0m9.519s
sys 0m5.721s
------
yes bun.lockb, no node_modules:
real 0m3.983s
user 0m0.022s
sys 0m3.376s
------
yes bun.lockb, yes node_modules:
real 0m0.150s
user 0m0.025s
sys 0m0.119s
------
pnpm:
no pnpm-lock.yaml, no global store, no node_modules:
real 0m55.814s
user 0m45.851s
sys 1m25.693s
------
yes pnpm-lock.yaml, no global store, no node_modules:
real 0m41.306s
user 0m35.115s
sys 1m25.685s
------
no pnpm-lock.yaml, yes global store, no node_modules:
real 0m35.611s
user 0m20.356s
sys 1m3.406s
------
yes pnpm-lock.yaml, yes global store, no node_modules:
real 0m20.821s
user 0m10.920s
sys 1m1.410s
------
yes pnpm-lock.yaml, yes global store, yes node_modules:
real 0m1.854s
user 0m2.005s
sys 0m0.562s
------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment