JS MVC Frameworks

JavaScript performance comparison

Revision 3 of this test case created by Tobias Otte

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/handlebars.1.0.beta.5.js"></script>

<script src="http://sb.taurus.uberspace.de/jslib/ember-0.9.5.min.js"></script>

<script src="http://sb.taurus.uberspace.de/jslib/spine-1.0.6,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/backbone-0.9.2.min.js"></script>

<script>
function angularJS() {

}

function emberJS() {
  var model = Ember.Object.extend();
 
  var instance = model.create({ foo: "bar", bar: "foo" });

  instance.set("lorem", "ipsum");

  instance.get("lorem");
};

function batmanJS() {

};

function spineJS() {
  var model = Spine.Model.sub();
  model.configure("Model", "bar", "foo");

  var instance = new model({bar: "foo", bar: "foo"});

  instance.lorem = "ipsum";

  instance.lorem;
};

function sammyJS() {

}

function knockoutJS() {

}

function extJS() {

}

function backbone() {
  var model = Backbone.Model.extend();
  var instance = new model({ foo: "bar", bar: "foo" });

  instance.set("lorem", "ipsum");

  instance.get("lorem");
}

function knockbackJS() {

}

function dojoJS() {

}

</script>

Preparation code output

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
ember JS
emberJS();
pending…
spine JS
spineJS();
pending…
backbone JS
backbone();
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:

0 comments

Add a comment