ExtJS .each vs loop (v4)

Revision 4 of this benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/ext-core/3/ext-core.js"></script>

<script>
  var pi = Math.PI
  var a = new Array(10000),
      e;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Loop
Ext.each(a, function() {
 e = pi;
});
ready
Ext.each
$.each(a, function() {
 e = pi;
});
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.