For loop speed comparisons

What it is all about...

Click the following button to create 50000 array items and 10000 nodes.


for(var i=0;i<jsArr.length;i++)

for(var i=jsArr.length;i>-1;i--)

for(var i=0,j=t.length;i<j;i++)

for(var i in t)

for(var i=0;t[i]!==undefined;i++)

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.