dmd makes D appear slow

weaselcat via Digitalmars-d digitalmars-d at puremagic.com
Fri May 29 13:41:50 PDT 2015


On Friday, 29 May 2015 at 20:23:13 UTC, Vladimir Panteleev wrote:
> On Friday, 29 May 2015 at 19:17:14 UTC, Andrei Alexandrescu 
> wrote:
>> On 5/29/15 12:13 PM, weaselcat wrote:
>>> In nearly every benchmark I see D in, the default compiler
>>> used is dmd
>>> which runs computationally intense tasks 4-5x+ slower than
>>> GDC/LDC
>>>
>>> example of a random blog post I found: 
>>> http://vaskir.blogspot.com/2015/04/computing-cryptography-hashes-rust-vs-f.html
>>
>> One problem here is pointed by the blogger: "I tried to 
>> compile with LDC2 and failed (windows 7 x64): ..."
>>
>> Can he be helped?
>
> http://vaskir.blogspot.com/2015/04/computing-cryptography-hashes-rust-vs-f.html?showComment=1432925658409#c6228383399074019471

Thanks,

he updated the results.
DMD

     MD5 - 16.05s (470% slower)
     SHA1 - 2.35s (19% faster)
     SHA256 - 47.96s (690% slower (!))
     SHA512 - 61.47s (1375% slower (!))

LDC2

     MD5 - 2,18s (55% faster)
     SHA1 - 2.88s (same)
     SHA256 - 6,79s (3% faster)
     SHA512 - 4,6s (3% slower)

% is compared to Rust.


More information about the Digitalmars-d mailing list