dmd makes D appear slow

weaselcat via Digitalmars-d digitalmars-d at puremagic.com
Fri May 29 16:29:39 PDT 2015


On Friday, 29 May 2015 at 23:19:36 UTC, ketmar wrote:
> On Fri, 29 May 2015 20:02:47 +0000, Martin Krejcirik wrote:
>
>> dmd
>>    - reference compiler, Digital Mars backend - best for 
>> latest dlang
>>    features, fast compile times
>> 
>> gdc
>>    - GNU gcc backend based compiler - best for portability and
>>    compatibility with gnu tools
>> 
>> ldc
>>    - LLVM backend based compiler - best for optimized builds, 
>> best
>>    runtime speed
>
> does LDC really surpasses GDC in generated code speed?

yes
GDC is 2-3x slower than LDC on this bench for example.
I think it's because of a lack of cross module inlining.


More information about the Digitalmars-d mailing list