On Friday, 11 March 2016 at 14:32:26 UTC, Iain Buclaw wrote:
On Friday, 11 March 2016 at 13:39:04 UTC, Vladimir Panteleev wrote:
Hi,

In the process of setting up a new development environment, I noticed that DMD's codegen seems to outperform GDC's or LDC's when building DMD itself.

I wrote a test script to measure the time it takes for DMD (built with different compilers) to build Phobos:

http://dump.thecybershadow.net/9e42ff2858d1419cf41108cc50b0a83a/bench.sh

My results are:

dmd: 11.26
ldc: 15.35
gdc: 14.80



https://github.com/D-Programming-Language/dmd/blob/master/src/root/rmem.d#L166-L193

How memory is allocated makes a huge difference.

Thanks :) After changing that to version(all), LDC is faster now. Doesn't build with GDC though (multiple definitions)...

Reply via email to