in reply to Reporting

Actually, for is exactly the same as foreach. They are synonyms. However, C-style for loops with an interator variable are slower than foreach/for looping over a list.

In general, you'll find that most of the time in most programs is spent on I/O tasks like reading the disk or talking to a database. Small differences in other areas tend to get lost in the noise.