Skip to content
Kyle Ross edited this page May 21, 2018 · 5 revisions

This is an additional list of benchmarks to show other common modules/frameworks. All benchmark results are from modclean-benchmark. Feel free to create your own benchmarks and update the Wiki with your results.

Basic Web App

Example of standard modules used to create basic web applications.

modclean-benchmark -m express,lodash,moment,async --patterns="default:safe"
Total Files Total Folders Total Size
Before ModClean 1,881 94 6.07 MB
After ModClean 1,711 92 5.41 MB
Reduction 170 2 677.89 KB
Additional Stats
Modules:         express, lodash, moment, async
Patterns:        default:safe
Files Removed:   165
Folders Removed: 2
Empty Folders:   92
Skipped Files:   0
Modules Skipped: 0

Times:
       NPM Install:  0 minutes, 3 seconds
       ModClean Run: 0 minutes, 0 seconds
       Total Time:   0 minutes, 4 seconds

Author: kross
Last Updated: 5/21/2018
Environment: MacBookPro11,5 Mac OS X 10.13.5 Intel® Core™ i7-4980HQ
Versions: ModClean 3.0.0-beta.1, Node 8.11.2, NPM 6.0.1

Grunt

Example of a standard grunt installation.

modclean-benchmark -m grunt,grunt-contrib-clean,grunt-contrib-concat,grunt-contrib-copy,grunt-contrib-uglify --patterns="default:safe"
Total Files Total Folders Total Size
Before ModClean 3,868 292 9.69 MB
After ModClean 3,412 213 8.12 MB
Reduction 456 79 1.57 MB
Additional Stats
Modules:         grunt, grunt-contrib-clean, grunt-contrib-concat, grunt-contrib-copy, grunt-contrib-uglify
Patterns:        default:safe
Files Removed:   321
Folders Removed: 23
Empty Folders:   213
Skipped Files:   0
Modules Skipped: 0

Times:
       NPM Install:  0 minutes, 5 seconds
       ModClean Run: 0 minutes, 0 seconds
       Total Time:   0 minutes, 6 seconds

Author: kross
Last Updated: 5/21/2018
Environment: MacBookPro11,5 Mac OS X 10.13.5 Intel® Core™ i7-4980HQ
Versions: ModClean 3.0.0-beta.1, Node 8.11.2, NPM 6.0.1

NPM Most Depended-upon (5/21/2018)

Example of the most depended-upon modules from npmjs.com (5/21/2018).

modclean-benchmark -m lodash,request,chalk,express,react,async,commander,bluebird,moment,debug --patterns="default:safe"
Total Files Total Folders Total Size
Before ModClean 3,751 293 13.03 MB
After ModClean 3,268 274 10.92 MB
Reduction 483 19 2.11 MB
Additional Stats
Modules:         lodash, request, chalk, express, react, async, commander, bluebird, moment, debug
Patterns:        default:safe
Files Removed:   429
Folders Removed: 18
Empty Folders:   274
Skipped Files:   0
Modules Skipped: 0

Times:
       NPM Install:  0 minutes, 4 seconds
       ModClean Run: 0 minutes, 0 seconds
       Total Time:   0 minutes, 6 seconds

Author: kross
Last Updated: 5/21/2018
Environment: MacBookPro11,5 Mac OS X 10.13.5 Intel® Core™ i7-4980HQ
Versions: ModClean 3.0.0-beta.1, Node 8.11.2, NPM 6.0.1

Application Framework Example

At the company I used to work for, our homegrown application framework uses a module set similar to the below:

modclean-benchmark -m async,body-parser,colors,compression,cookie-parser,edge,express,express-debug,express-session,fs-extra,glob,humanize,jade,js-yaml,less,mime,moment,mongoose,ms,multer,node-uuid,numeral,on-finished,serve-favicon,lodash --patterns="default:safe"
Total Files Total Folders Total Size
Before ModClean 6,177 975 49.62 MB
After ModClean 3,812 661 42.68 MB
Reduction 2,365 314 6.93 MB
Additional Stats
Modules:         async, body-parser, colors, compression, cookie-parser, edge, express, express-debug, express-session, fs-extra, glob, humanize, jade, js-yaml, less, mime, moment, mongoose, ms, multer, node-uuid, numeral, on-finished, serve-favicon, lodash
Patterns:        default:safe
Files Removed:   960
Folders Removed: 83
Empty Folders:   661
Skipped Files:   0
Modules Skipped: 0

Times:
       NPM Install:  0 minutes, 38 seconds
       ModClean Run: 0 minutes, 1 second
       Total Time:   0 minutes, 41 seconds

Author: kross
Last Updated: 5/21/2018
Environment: MacBookPro11,5 Mac OS X 10.13.5 Intel® Core™ i7-4980HQ
Versions: ModClean 3.0.0-beta.1, Node 8.11.2, NPM 6.0.1

With all Pattern Rules:

modclean-benchmark -m async,body-parser,colors,compression,cookie-parser,edge,express,express-debug,express-session,fs-extra,glob,humanize,jade,js-yaml,less,mime,moment,mongoose,ms,multer,node-uuid,numeral,on-finished,serve-favicon,lodash --patterns="default:*"
Total Files Total Folders Total Size
Before ModClean 6,177 975 49.62 MB
After ModClean 3,566 652 39.09 MB
Reduction 2,611 323 10.53 MB
Additional Stats
Modules:         async, body-parser, colors, compression, cookie-parser, edge, express, express-debug, express-session, fs-extra, glob, humanize, jade, js-yaml, less, mime, moment, mongoose, ms, multer, node-uuid, numeral, on-finished, serve-favicon, lodash
Patterns:        default:*
Files Removed:   1590
Folders Removed: 93
Empty Folders:   652
Skipped Files:   1
Modules Skipped: 1
                 semver
Times:
       NPM Install:  0 minutes, 35 seconds
       ModClean Run: 0 minutes, 1 second
       Total Time:   0 minutes, 38 seconds

Author: kross
Last Updated: 5/21/2018
Environment: MacBookPro11,5 Mac OS X 10.13.5 Intel® Core™ i7-4980HQ
Versions: ModClean 3.0.0-beta.1, Node 8.11.2, NPM 6.0.1