For Leandro
Georg Wrede
georg.wrede at iki.fi
Sun May 3 14:36:24 PDT 2009
bearophile wrote:
> Another small one for Leandro Lucarella:
>
> struct S { int a; S* p; }
> void main() {
> foreach (ref s; new S*[4_000_000])
> s = new S;
> }
>
> Timings N=4_000_000, best of 3, seconds:
> D1: 2.47
> D2: 2.68
>
> On WinXp, Core2 2 GHz, last DMD1 and DMD2.
Fedora-10, Core2 Quad, 2.4GHz, last DMD2,
dmd -release -O :
real 0m2.398s
user 0m2.337s
sys 0m0.061s
More information about the Digitalmars-d
mailing list