Mon, 23 Mar 2009 17:11:56 -0400, bearophile wrote: > bearophile: >> N = 1_000_000_000: >> C++: 0.06 s >> D: 5.10 s > > I think GCC compiles most things away, so the run time is constant. Yes, I think it detected there was no side effects and eliminated the whole loop. That's why my original benchmark was in two modules.