edin / raytracer

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

added Ada implementation #7

Closed johnperry-math closed 3 years ago

johnperry-math commented 3 years ago

This builds and runs on MacOS and Linux machines with the free GNAT compiler. It's available for Windows, but I don't have a Windows machine to try it on, so run.bat hasn't been tested.

Performance of the standard implementation is comparable to C++, roughly 5%-10% slower. I've added some other implementations that are less standard (I was experimenting); one has roughly the same performance, the others are a bit slower.

johnperry-math commented 3 years ago

Incidentally, it seems to me that the C and Fortran versions are incorrect. The C version produces an invalid bitmap on both my machines, and the Fortran version produces a slightly mistake image. (It's subtle; you have to compare with other versions to see the difference.)

edin commented 3 years ago

Thanks I'll check how to fix C and Fortran samples.