Giter VIP home page Giter VIP logo

cjs-vs-amd-benchmark's People

Contributors

mathiasbynens avatar medikoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cjs-vs-amd-benchmark's Issues

Your dependency graph isn't realistic

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.