Hacker News new | ask | show | jobs
by sebilasse 4738 days ago
He probably just wanted to test the difference between 'while ' and 'do while' and takes the fastest possible solution (for) as a reference. It's however good to know that 'do while' is that much slower compared to while.
1 comments

while is faster than for here.

  Testing in Chrome 27.0.1453.116 32-bit on Windows Server 2008 R2 / 7 64-bit