D compilation speed vs. go

Robert Clipsham robert at octarineparrot.com
Sun Apr 11 09:30:19 PDT 2010


On 11/04/10 16:50, bearophile wrote:
> LDC is slower than dmd.
>
> Bye,
> bearophile

It's still a lot faster than the likes of gcc :D It's no way near as 
fast as DM, but what do you expect, it has initialize the LLVM backend 
on each invocation.

Tango (340kLoC):
20.08s user 5.52s system 81% cpu 31.302 total

When using -q:
20.00s user 5.69s system 92% cpu 27.881 total

Looking at the evidence... It's about as fast as the Go compiler, for 
about 3x the amount of code it takes about 3x the time. It doesn't 
compare to dmd of course, but the code generated generally runs faster 
(depending on optimizations, type of code etc).



More information about the Digitalmars-d mailing list