2 ms·
> curious how D's reference compiler (DMD) compares to the LLVM/GCC front-ends On my machine (an old i7-8700), dmd performs rather poorly. 3.5 seconds. dm
by vips7L 10mo ago
> curious how D's reference compiler (DMD) compares to the LLVM/GCC front-ends
On my machine (an old i7-8700), dmd performs rather poorly. 3.5 seconds.
dmd -O leibniz.d
Measure-Command { ./leibniz.exe } | select -expand TotalMilliseconds
3535.823
Comparatively ldc runs in 943 milliseconds:
ldmd2 -O leibniz.d
Measure-Command { ./leibniz.exe } | select -expand Totalmilliseconds
943.21
I'm sure there is compiler switch magic that I don't know about that could improve them.