For Loop (v2)

Revision 2 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Count
var a = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];

for (var i = 0; i < a.length; i++){
  a[i];
}
ready
Cache
var a = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
l = a.length;
for (var i = 0, i < l; i++){
  a[i];
}
ready

Revisions

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