http://jsperf.com/testing-foreach-vs-for-loop
It was my understanding that Test Case 2 should run more slowly than Test Case 1 -- I wanted to see how much more slowly. I
Reading length from array at each iteration may be slow, but forEach is comomonly slower, cause function call isn't cheap operation in js.
length
array
PS: forEach is 14% slower on FF10.
forEach