medikoo / cjs-vs-amd-benchmark Goto Github PK
View Code? Open in Web Editor NEWCompare load time of CommonJS and AMD style modules
License: MIT License
Compare load time of CommonJS and AMD style modules
License: MIT License
I've never seen an app that has a serial string of dependencies. This gives unrealistic results.
You're also not accounting for the build time. Stuff like browserify parses the files to dynamically find dependencies. Throw in some big scripts like jQuery, Ember, Angular, etc. so the build time becomes a factor.
Typically in development the browser has cached 99% of the modules being dynamically loaded and only has to get the files that have changed. Oftentimes, this is MUCH faster than waiting for browserify to parse all the files and create a new build.
I use both methods on different projects. In my dynamically loaded AMD project with several hundred scripts on some page, I don't even notice a lag when I refresh my browser. With livereload running the page is ready for me before I switch windows. However, on that same project, the build takes about 45 seconds because we have 11 megs of JavaScript across the whole app.
It is time to quit thinking your use-cases and experience represent the whole communities :P
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.