implicit for

Benchmark created on


Setup

var arr = [0,1,2,3,4,5,6,7];

Test runner

Ready to run.

Testing in
TestOps/sec
1
for(var i=0; i<arr.length; i++) {
    //do stuff
}

 
ready
2
for(var i=0, l=arr.length; i<l; i++) {
    //do stuff
}
ready

Revisions

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