D vs C++ - Where are the benchmarks?

Joakim joakim at airpost.net
Sun Jun 30 22:31:14 PDT 2013


On Monday, 1 July 2013 at 04:27:46 UTC, Marco Leise wrote:
> Am Sun, 30 Jun 2013 19:53:05 -0700
> schrieb Jonathan M Davis <jmdavisProg at gmx.com>:
>
>> On Monday, July 01, 2013 04:37:43 Mehrdad wrote:
>> > On Sunday, 30 June 2013 at 20:49:28 UTC, Peter Alexander 
>> > wrote:
>> > > sometimes faster
>> > 
>> > Would love an example that demonstrates it!
>> 
>> Anything involving taking a lot of substrings is likely to be 
>> faster in D thanks to slices (which is one of the main reasons 
>> that Tango's xml parser is so lightning fast).
>
> I think he referred to the DMD backend being faster than
> GDC/LDC sometimes, no ?
No, he was talking about D being sometimes faster than C++, from 
this quote, "The end result is that D programs are typically as 
fast as C++ programs, sometimes faster, sometimes slower."  So 
Jonathan got the comparison right.


More information about the Digitalmars-d mailing list