Are these bencmarks recent and real?
russhy
russhy at gmail.com
Wed Sep 1 22:49:59 UTC 2021
On Monday, 30 August 2021 at 13:12:09 UTC, rempas wrote:
> Just trying to compile a sample basic gtk-d project (including
> the libraries themselves) using ldc2 and optimization "-Os" and
> seeing how much time this takes, I want to ask if the
> benchmarks found
> [here](https://github.com/nordlow/compiler-benchmark) about
> ldc2 are real. Again seeing the gtk-d project taking so much
> time, It's hard to believe that ldc2 compiles faster that tcc
> and go. However, this test probably doesn't use optimizations
> but still.... Ayn thoughts?
LDC is based on LLVM, just like rust/zig, so it's gonna be slow
DMD is the reference compiler, it is what you should use to get
fast iteration time, in fast my game with 20+k lines of code
compiles in just 0.7 seconds

https://i.imgur.com/z7vyRtX.png
I only use, and i recommand you use LDC for your release builds
as LLVM has best optimizations
On windows it is a little bit slower but not that much
No matter the language, as long as you factor in templates, if
you abuse them, it's gonna slow down your compile times since
they need to be computer at compilation time
More information about the Digitalmars-d
mailing list