ForWhile

Benchmark created on


Preparation HTML

var i = 0; for(var a = 0; a
<script>
  var aLength = arr.length;
  var i = 0;
  while (aLength--) {
    i++;
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
for
var i = 0;
for (var a = 0; a < arr.length; a++) {
  i++;
}
ready
while
var aLength = arr.length;
var i = 0;
while (aLength--) {
  i++;
}
ready

Revisions

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