edin / raytracer

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

Micro tweaks on Rust + Python review #24

Closed darleybarreto closed 3 years ago

darleybarreto commented 3 years ago

I made a really small tweak on the rust impl, and a test on the Python. On my machine, running with PyPy 3.7.10 (70b7094aa69c, Apr 26 2021, 01:00:17) and CPython 3.9.1 (default, Dec 11 2020, 14:32:07) I got this:

Interpreter ms
PyPy 1246.4070
CPython 22582.4299
darleybarreto commented 3 years ago

In contrast, Rust parallel takes 14ms and sequential takes 69ms.

darleybarreto commented 3 years ago

Fixes #23 .