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

Update to Webpack 3 #9

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@pago
Copy link

pago commented Jun 22, 2017

Updates Webpack to version 3 with module concatenation plugin enabled.

Size:

ungzipped:
||100 modules|1000 modules|5000 modules|
| ---- | ---- | ---- | ---- |
|browserify|    7981|   79985|  419984|
|browserify-collapsed|    5785|   57989|  309981|
|webpack|    1185|    7485|   39482|
|rollup|     671|    6971|   38968|
|closure|     758|    7958|   43956|
|rjs|   29168|  136272|  628282|
|rjs-almond|   14499|  121603|  613613|
gzipped:
||100 modules|1000 modules|5000 modules|
| ---- | ---- | ---- | ---- |
|browserify|    1649|   13775|   63617|
|browserify-collapsed|    1463|   11840|   55588|
|webpack|     575|    2491|   11883|
|rollup|     300|    2135|   11449|
|closure|     302|    2140|   11808|
|rjs|    7940|   19013|   62646|
|rjs-almond|    2735|   13185|   56109|

Runtime performance:

100 modules,,,
Bundler,Load time (ms),Run time (ms),Total time (ms)
browserify,3.99,2.03,6.02
browserify-collapsed,3.61,2.14,5.75
webpack,4.83,0.51,5.33
rollup,4.67,0.32,4.99
closure,4.82,0.33,5.15
rjs,5.73,0.59,6.32
rjs-almond,5.34,0.61,5.95
1000 modules,,,
Bundler,Load time (ms),Run time (ms),Total time (ms)
browserify,11.29,19.88,31.17
browserify-collapsed,9.64,18.9,28.54
webpack,5.19,0.85,6.04
rollup,5.06,0.74,5.8
closure,4.97,0.89,5.86
rjs,11.95,1.01,12.97
rjs-almond,10.22,1.99,12.2
5000 modules,,,
Bundler,Load time (ms),Run time (ms),Total time (ms)
browserify,43.19,67.09,110.28
browserify-collapsed,40.18,69.6,109.78
webpack,4.91,2.93,7.83
rollup,5.31,2.53,7.83
closure,5.63,3.32,8.94
rjs,40.68,2.64,43.32
rjs-almond,40.58,6.4,46.99
Done!
@nolanlawson

This comment has been minimized.

Copy link
Owner

nolanlawson commented Jun 22, 2017

Cool, thanks! Which browser and version did you test in?

@pago

This comment has been minimized.

Copy link
Author

pago commented Jun 22, 2017

For the numbers above I used Firefox 53.0.3 (64-bit).

Results in other browsers:

Brave 0.16.9:

100 modules,,,
Bundler,Load time (ms),Run time (ms),Total time (ms)
browserify,5,2.16,7.15
browserify-collapsed,5.13,1.97,7.09
webpack,3.38,0.5,3.88
rollup,3.78,0.16,3.94
closure,3.79,0.17,3.97
rjs,6.59,0.17,6.76
rjs-almond,5.47,0.24,5.71
1000 modules,,,
Bundler,Load time (ms),Run time (ms),Total time (ms)
browserify,11.95,16.78,28.72
browserify-collapsed,12.76,15.71,28.47
webpack,4.43,0.96,5.39
rollup,4.19,1,5.19
closure,4.09,0.97,5.05
rjs,14.58,0.67,15.26
rjs-almond,12.3,0.98,13.28
5000 modules,,,
Bundler,Load time (ms),Run time (ms),Total time (ms)
browserify,46.73,73.79,120.52
browserify-collapsed,43.06,69.47,112.53
webpack,7.24,4.19,11.43
rollup,6.82,4.02,10.84
closure,7.09,5.38,12.47
rjs,46.14,4.75,50.88
rjs-almond,47.26,4.43,51.69
Done!

and Chrome 58.0.3029.110:

100 modules,,,
Bundler,Load time (ms),Run time (ms),Total time (ms)
browserify,3.41,2.44,5.85
browserify-collapsed,2.91,2.37,5.28
webpack,2.59,0.5,3.09
rollup,2.13,0.2,2.33
closure,2.63,0.21,2.84
rjs,5.09,0.13,5.22
rjs-almond,3.6,0.21,3.81
1000 modules,,,
Bundler,Load time (ms),Run time (ms),Total time (ms)
browserify,12.6,19.4,32
browserify-collapsed,10.62,18.13,28.75
webpack,3.14,1.32,4.45
rollup,2.7,1.27,3.96
closure,2.7,1.34,4.04
rjs,11.94,0.47,12.41
rjs-almond,10.61,1.11,11.71
5000 modules,,,
Bundler,Load time (ms),Run time (ms),Total time (ms)
browserify,44.93,92.13,137.06
browserify-collapsed,39.6,87.2,126.79
webpack,5.12,6.25,11.37
rollup,5.07,5.86,10.93
closure,5.51,6.51,12.02
rjs,42.52,2.54,45.06
rjs-almond,44.48,3.49,47.98
Done!
@nolanlawson

This comment has been minimized.

Copy link
Owner

nolanlawson commented May 22, 2018

Thank you very much for the PR! Please see #10 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.