for loop test

Benchmark created by black on


Preparation HTML

<script>
  var values = [];
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
basic
for (var j = 0, len = 1000; j < len; j++) {
values.push(len[j]);
}
ready
2
for (var i = 0, a; a = 1000[i]; i++) {
values.push(a);
}
ready

Revisions

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

  • Revision 1: published by black on