edin / raytracer

Performance comparison of various compilers
MIT License
57 stars 22 forks source link

Compile nim code properly #1

Closed GabrielLasso closed 3 years ago

GabrielLasso commented 3 years ago

In run.bat, the code is compiled for debug, not for release.

In my computer, the debug version runs in 3970.045161ms, and the release version runs in 326.847238ms (there is also the -d:danger version, that removes every runtime check, is runs in 280.891409ms)

GabrielLasso commented 3 years ago

Just to compare, the C(GCC) version runs in 115ms here.

beef331 commented 3 years ago

It seems to get even faster you can do {.push inline.} and {.pop.} and it gets around 20ms improvement for me (~93ms).