In these tests, http://jsperf.com/the-loops Barbara Cassani showed that the "back at the time" cycle is faster,
while (iterations > 0) { a = a + 1; a = a - 1; iterations--; }
than a regular for loop:
for (i = 0; i < iterations; i++) { a = a + 1; a = a - 1; }
Why?
Update
Well, forget about it, there is an error in the test, iterations = 100
, it is executed only once per page. Therefore, its reduction, well, that means that we really do not go into loops. Unfortunately.
Marek source share