YUI: Y.ModelList vs. Y.LazyModelList

JavaScript performance comparison

Revision 4 of this test case created by Ryan Grove

Preparation code

<script src="http://yui.yahooapis.com/3.6.0/build/yui/yui-min.js"></script>

<script>
var Y = YUI().use('lazy-model-list');
</script>
      
<script>
Benchmark.prototype.setup = function() {
  var modelList     = new Y.ModelList(),
      lazyModelList = new Y.LazyModelList();
  

};
</script>

Preparation code output

<script> var Y = YUI().use('lazy-model-list'); </script>

Test runner

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

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
ModelList#add()
modelList.add({foo: 'bar'});
pending…
LazyModelList#add()
lazyModelList.add({foo: 'bar'});
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.

0 Comments