Performance

anonymous via Digitalmars-d digitalmars-d at puremagic.com
Fri May 30 07:22:38 PDT 2014


On Friday, 30 May 2014 at 13:35:59 UTC, Thomas wrote:
> I made the following performance test, which adds 10^9 Double’s 
> on Linux with the latest dmd compiler in the Eclipse IDE and 
> with the Gdc-Compiler also on Linux. Then the same test was 
> done with C++ on Linux and with Scala in the Java ecosystem on 
> Linux. All the testing was done on the same PC.
> The results for one addition are:
>
> D-DMD: 3.1 nanoseconds
> D-GDC: 3.8 nanoseconds
> C++: 1.0 nanoseconds
> Scala: 1.0 nanoseconds
>
>
> D-Source:
[...]
> Compiler settings for D:
[...]
> So what is the problem ? Are the compiler switches wrong ? Or 
> is D on the used compilers so slow ? Can you help me.

Sources and command lines for the other languages would be nice
for comparison.


More information about the Digitalmars-d mailing list