loop-Statement

Benchmark created on


Setup

var a = [];
    for (var i = 0, i < 100; i++) {
      a.push(i);
    }

Test runner

Ready to run.

Testing in
TestOps/sec
test1
for (var i = 0, l = a.length; i < l; i++) {
  console.log(a[i])
}
ready
test2
for (var i = 0, l = a.length; i < l; i++) {
  console.log(a[i])
}
ready

Revisions

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