JS MVC Frameworks (No Spine) - Models
JavaScript performance comparison
Info
A comparison between 4 MVC frameworks' model instantiation performance. This shows the time to instantiate 500 simple models in Ember, Backbone and YUI3.
Preparation code
<script src="http://sb.taurus.uberspace.de/jslib/jquery-1.7.1.min.js">
</script>
<script src="http://sb.taurus.uberspace.de/jslib/underscore-1.3.1.min.js">
</script>
<script src="http://sb.taurus.uberspace.de/jslib/handlebars.1.0.beta.5.js">
</script>
<script src="http://cloud.github.com/downloads/emberjs/ember.js/ember-latest.min.js">
</script>
<script src="http://sb.taurus.uberspace.de/jslib/backbone-0.9.2.min.js">
</script>
<script src="http://yui.yahooapis.com/3.7.3/build/yui/yui-min.js">
</script>
<script>
Benchmark.prototype.setup = function() {
YUI().use('model', function(Y) {
window.Y = Y;
});
modelData = {
"label": 1,
"description": "13301045681"
};
};
</script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
Ember |
|
pending… |
Backbone |
|
pending… |
YUI3 |
|
pending… |
Compare results of other browsers
Revisions
You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:
- Revision 1: published by Richard Zurad
- Revision 2: published
- Revision 4: published
- Revision 5: published
- Revision 6: published
- Revision 7: published
- Revision 8: published
- Revision 9: published
- Revision 10: published by Dav Glass
- Revision 11: published
- Revision 12: published
- Revision 13: published
- Revision 14: published
- Revision 15: published
- Revision 16: published
- Revision 17: published
- Revision 18: published by Jason Monma
0 comments