Port a benchmark to D?

dsimcha dsimcha at yahoo.com
Fri Jun 3 21:16:35 PDT 2011


On 6/4/2011 12:01 AM, Caligo wrote:
> Gentoo/Linux [gcc version 4.4.5, DMD 2.52, latest GDC with GCC 4.4.5,
> and latest LDC2]
>
> g++ -O3
> [VIRT: 185MB,  RES: 174MB]
> real    0m28.407s
> user    0m28.330s
> sys     0m0.070s
>
> DMD -O -release
> [VIRT: 94MB,  RES: 92MB]
> real    0m43.232s
> user    0m42.980s
> sys     0m0.070s
>
> GDC -O3
> [VIRT: 306MB,  RES: 295MB]
> real    1m10.788s
> user    1m10.570s
> sys     0m0.190s
>
> LDC2
> segmentation fault

Why not -inline on dmd?


More information about the Digitalmars-d mailing list