for-array (v2)

Revision 2 of this benchmark created by Jesse on


Preparation HTML

<script>
  var arr = new Array(550);
  var len = arr.length;
  
  function theGogglesDoNothing() {}
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
first
for (var i = 0; i < arr.length; i += 1) {
  theGogglesDoNothing();
}
ready
second
for (var i = 0; i < len; i += 1) {
  theGogglesDoNothing();
}
ready

Revisions

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