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

Add some performance results to the documentation / website #3

Closed
ide opened this issue Sep 20, 2016 · 3 comments
Closed

Add some performance results to the documentation / website #3

ide opened this issue Sep 20, 2016 · 3 comments

Comments

@ide
Copy link

ide commented Sep 20, 2016

These are the times to install React Native's dependencies on my computer. The full results are below and I've also grouped some of them by common use cases based on npm and kpm's default choice of whether to make a lockfile.

I'm excited about all of the results; kpm is always faster. One thing that's great is that when package.json hasn't changed in a project you're actively working on, kpm runs in under a second.

Scenario: You've cloned a project for the first time

Cold cache, no node_modules

npm w/out shrinkwrap
real    2m30.195s
user    0m42.299s
sys 0m13.304s

kpm w/lockfile
real    0m22.794s
user    0m21.280s
sys 0m13.261s

Warm cache, no node_modules

npm w/out shrinkwrap
real    1m52.698s
user    0m38.867s
sys 0m12.251s

kpm w/lockfile
real    0m9.359s
user    0m8.287s
sys 0m6.456s

Scenario: You've pulled new commits to a project you're working on

Warm cache, node_modules populated

npm w/out shrinkwrap
real    0m4.189s
user    0m4.182s
sys 0m0.284s

kpm w/lockfile
real    0m0.710s
user    0m0.515s
sys 0m0.090s

In practice, these times will be higher when there are changes to package.json. But when there aren't any changes to package.json since the last time you installed dependencies, kpm is very fast.

npm times

npm, cold cache, w/out node_modules, w/out shrinkwrap
real    2m30.195s
user    0m42.299s
sys 0m13.304s

npm, cold cache, w/out node_modules, w/shrinkwrap
real    0m52.358s
user    0m39.970s
sys 0m18.146s

npm, warm cache, w/out node_modules, w/shrinkwrap
real    0m52.851s
user    0m41.047s
sys 0m17.901s

npm, warm cache, w/out node_modules, w/out shrinkwrap
real    1m52.698s
user    0m38.867s
sys 0m12.251s

npm, warm cache, w/node_modules, w/shrinkwrap
real    0m5.285s
user    0m5.289s
sys 0m0.315s

npm, warm cache, w/node_modules, w/out shrinkwrap
real    0m4.189s
user    0m4.182s
sys 0m0.284s

kpm times

kpm, cold cache, w/out node_modules w/out lockfile
real    0m15.028s
user    0m11.915s
sys 0m8.327s

kpm, cold cache, w/out node_modules, w/lockfile
real    0m22.794s
user    0m21.280s
sys 0m13.261s

kpm, warm cache, w/out node_modules, w/lockfile
real    0m9.359s
user    0m8.287s
sys 0m6.456s

kpm, warm cache, w/out node_modules, w/out lockfile
real    0m14.563s
user    0m12.130s
sys 0m8.496s

kpm, warm cache, w/node_modules, w/out lockfile
real    0m7.564s
user    0m6.055s
sys 0m1.331s

kpm, warm cache, w/node_modules, w/lockfile
real    0m0.710s
user    0m0.515s
sys 0m0.090s
@vjeux
Copy link
Contributor

vjeux commented Sep 20, 2016

<3

@cpojer
Copy link
Contributor

cpojer commented Oct 6, 2016

It's at /en/compare on the site.

@cpojer cpojer closed this as completed Oct 6, 2016
@ide
Copy link
Author

ide commented Oct 6, 2016

Really nice work, @thejameskyle!

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

No branches or pull requests

3 participants