Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install using Yarn vs. NPM 4x faster #765

Closed
DenisCarriere opened this issue May 28, 2017 · 1 comment
Closed

Install using Yarn vs. NPM 4x faster #765

DenisCarriere opened this issue May 28, 2017 · 1 comment
Assignees
Milestone

Comments

@DenisCarriere
Copy link
Member

DenisCarriere commented May 28, 2017

Using Yarn 4x faster

There are many benefits of using Yarn, mainly it is a fast & secure way to install dependencies from package.json.

Below are install times comparing npm install vs. yarn using TurfJS.

Also including yarn.lock can speed up the install process by 1.5-2x.

TravisCI can using Yarn by default if yarn.lock is available.
https://blog.travis-ci.com/2016-11-21-travis-ci-now-supports-yarn

Single Package /packages/<module>

NPM (install 10.9s)

npm install  4.28s user 1.43s system 52% cpu 10.921 total

Yarn (install 2.3s - 4.7x faster than npm)

with yarn.lock(2x faster with lock)

yarn  1.89s user 1.01s system 120% cpu 2.396 total

without yarn.lock

yarn  2.61s user 1.29s system 77% cpu 5.026 total

TurfJS repo /

NPM (install 2m12s)

npm install  52.40s user 17.35s system 52% cpu 2:12.66 total

Yarn (install 30s - x4.4 faster)

with `yarn.lock (1.5 faster with lock)

yarn  26.88s user 10.01s system 122% cpu 30.220 total

without yarn.lock

yarn  33.01s user 12.04s system 102% cpu 43.828 total
@DenisCarriere
Copy link
Member Author

Add via #766

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant