How fast is D compilation compared to C++?
Petar
Petar
Tue Sep 20 22:19:43 UTC 2022
On Tuesday, 20 September 2022 at 16:13:30 UTC, Ali Çehreli wrote:
> D's CTFE can make D compilation infinitely slow. Let's put
> anomalous cases aside...
>
> We say D compiles much faster than C++. Does anyone have any
> measurement or a gut feeling about the same program written in
> idiomatic C++ vs. idiomatic D? I think it may be 30 seconds vs.
> 5 seconds. I that a fair guess?
>
> Although a ballpark figure is good enough, precise measurements
> would be useful as well.
>
> Thank you,
> Ali
Although this project is likely not representative of real world
usage, I believe it contains the most reliable data, at least as
far D is concerned (there certainly other projects, but I don't
know if they include D in their comparisons):
https://github.com/nordlow/compiler-benchmark
More information about the Digitalmars-d
mailing list