Is dmd fast?

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 22 13:42:06 PDT 2016


On Wednesday, 22 June 2016 at 19:25:13 UTC, Jack Stouffer wrote:
> On Wednesday, 22 June 2016 at 19:20:42 UTC, deadalnix wrote:
>> You methodology is flawed. You are essentially measuring link 
>> time against the standard lib.
>
> As someone else in the thread alluded to, people don't care 
> about the nuance, and it's not particularly important. Linking 
> is part of the compilation process that people have to wait for 
> before their program can run. So if linking is slow, then 
> compilation is slow.

If you are to include link time in the measurement, you need to 
make sure that link time are representative of typical link time 
in real life applications. This require an application 
sufficiently large (and then you run into problem as to assert 
how similar applications are).

In this case, one is essentially measuring the size of the 
standardlib rather than the speed of the compiler. There are much 
better way to measure the size of the standard lib than measuring 
how long the linker take to go through it.



More information about the Digitalmars-d mailing list