Quote Originally Posted by szlamany
I think someone should look at the difference in machine code generated by the FOR loop vs the DO loop.

Let's say that the "slower" one simply has one or two op-codes of extra machine code. That is "execution time" meaningful in this "loop that does nothing-but-loop" time test.

But would be completely trivial in a real loop that is doing something within the loop that actually takes some time!
Tell ya what, I will tomorrow maybe =)

btw - I think this effort is a waste of time. A for may provide a better solution then do on certain problems and vice versa.