D compilation speed vs. go
Robert Clipsham
robert at octarineparrot.com
Sun Apr 11 09:13:05 PDT 2010
On 11/04/10 16:28, Andrei Alexandrescu wrote:
> I stumbled upon this:
>
> http://www.youtube.com/watch?v=wwoWei-GAPo
>
> So the go compiler compiles 120KLOC in 9.23 seconds. I got curious so I
> just tested dmd against Phobos (88KLOC). That takes 1.24 seconds on my
> laptop. Not too shoddy. Walter should record a video :o).
>
>
> Andrei
Your curiosity made me curious about this, so ran a little test of my
own. To compile tango (user library and runtime library) with dmd on my
laptop:
4.95s user 1.12s system 73% cpu 8.235 total
% wc -l `find tango -name \*.d` | tail -n1
341330 total
So 340k lines of D compiled with dmd compiles in less time than 120k LoC
with Go :D
I then noticed this option with tango build tool...
[-q] quick execution
4.85s user 1.18s system 87% cpu 6.937 total
Even faster :)
More information about the Digitalmars-d
mailing list