Need for speed
Berni44
someone at somemail.com
Thu Apr 1 19:00:08 UTC 2021
On Thursday, 1 April 2021 at 16:52:17 UTC, Nestor wrote:
> I was hoping to beat my dear Python and get similar results to
> Go, but that is not the case neither using rdmd nor running the
> executable generated by dmd. I am getting values between
> 350-380 ms, and 81ms in Python.
Try using ldc2 instead of dmd:
```
ldc2 -O3 -release -boundscheck=off -flto=full
-defaultlib=phobos2-ldc-lto,druntime-ldc-lto speed.d
```
should produce much better results.
More information about the Digitalmars-d-learn
mailing list