for each loop (v96)

Revision 96 of this benchmark created by test for loop vs jquery on


Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<script>
  var a = $('*').get(),
      e;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery.each
$.each(a, function() { e = this; })
ready
for loop
for (var i = 0, len = a.length; i < len; i++) { 
e = $(a[i]);
 }
ready

Revisions

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