Can anyone explain how this loop manages to benchmark so high?

nizamcc

New Member
http://jsperf.com/loops/67If you look, the following loop manages some insane benchmarks:\[code\]var i=0;var v;for (i, v; v = arr[i++];) { v;}\[/code\]It score ~700 million ops/sec in FF, ~20 mil in Chrome, and ~50mil in IE10. The next fastest loop manages ~100k in FF, ~6k in IE10 and barely ~2k in Chrome.Why is it so fast? I can see the obvious differences between the other loops and how one is faster than another, but I can't come up with anything that would explain the absolutely mind blowing performance difference with this loop, 700 million to 100k is an insane gap.
 
Top