dmd -run speed trends
kinke
noone at nowhere.com
Fri Dec 8 04:15:45 UTC 2023
On Thursday, 7 December 2023 at 22:19:43 UTC, Witold Baryluk
wrote:
> Maybe switching to something like gold or mold linker could be
> help a little. This should help with dmd too a little.
Not just a little; the default bfd linker is terrible. My timings
with various linkers (mold built myself) on Ubuntu 22, using a
`writeln` variant, best of 5:
| | bfd v2.38 | gold v1.16 | lld v14 | mold
v2.4 |
|------------------ |------|------|------|-------|
| DMD v2.106.0 | 0.34 | 0.22 | 0.18 | fails to link |
| LDC v1.36.0-beta1 | 0.47 | 0.24 | 0.22 | 0.18 |
Bench cmdline: `dmd -Xcc=-fuse-ld=<bfd,gold,lld,mold> -run
bench.d`
More information about the Digitalmars-d
mailing list