3 ms·
I also did a similar thing with SmallVCM, another "educational" ray-tracer: https://github.com/yuriks/SmallVCM-rs https://github.com/yuriks/SmallVCM-rs There i
by yuriks 12y ago
I also did a similar thing with SmallVCM, another "educational" ray-tracer: https://github.com/yuriks/SmallVCM-rs https://github.com/yuriks/SmallVCM-rs
There is also a written report with my experience and benchmark results, but unfortunately it's in Portuguese: https://github.com/yuriks/tg-yuriks-2014b/blob/master/final/preview.pdf?raw=true https://github.com/yuriks/tg-yuriks-2014b/blob/master/final/...
One thing that surprised me a lot is that Rust ended up being noticeably faster than C++ (around 20%) even when compared with clang.
- berkut 12y agoDo you mean compared to C++ compiled with LLVM (as opposed to GCC)? I've found that LLVM is generally faster than GCC and in some cases significantly so.