Code runtime
ag0aep6g via Digitalmars-d
digitalmars-d at puremagic.com
Sun Jun 5 15:32:35 PDT 2016
On 06/06/2016 12:00 AM, Ausprobierer wrote:
> On Sunday, 5 June 2016 at 21:56:30 UTC, ag0aep6g wrote:
>> On 06/05/2016 11:52 PM, Ausprobierer wrote:
>>> I've compiled it with "dmd -m64 -release -inline <filename>.d".
>>
>> Misses -O for actual optimizations. You can also try ldc or gdc for
>> better performance.
>
> Still a runtime of approx. 36 seconds.
When I compare `ldc2 -release -O` against `g++ -O`, I get 13 seconds and
9 seconds. Still slower, but it's in the same ballpark.
`dmd -release -O -inline` does significantly worse: 40 seconds. dmd's
strength are quick compilations, not fast executables (not that the two
are mutually exclusive).
More information about the Digitalmars-d
mailing list