On Tuesday 10 May 2005 21:18, Tim Starling wrote:
int main() {for (unsigned i=0; i<(unsigned)1e9; i++);} executes in 1.58 seconds on my desktop computer.
hm.. we all know how badly microbenchmarks can go wrong. in this case i'd have expected the loop to be optimized away, since it does not affect the state of the rest of the program in any way..
daniel