Re:Porting a Ray Tracer to Rust, Part 1
by berkut on Wednesday December 31, 2014 @07:32AM
(#8819094)
Do 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.
Re:Porting a Ray Tracer to Rust, Part 1
by yuriks on Wednesday December 31, 2014 @07:44AM
(#8819122)
Yes, I compared Rust and Clang using similar LLVM versions and the Rust version of the code consistently beat Clang.
Re:Porting a Ray Tracer to Rust, Part 1
by darkpore on Wednesday December 31, 2014 @08:00AM
(#8819170)
Not the same version then? :)
Re:Porting a Ray Tracer to Rust, Part 1
by kibwen on Wednesday December 31, 2014 @01:12PM
(#8820370)
For the moment Rust is using a custom fork of LLVM while waiting for its patches to be upstreamed.
Hasn't this been the case like forever (at least for the past two years)?
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/...
One thing that surprised me a lot is that Rust ended up being noticeably faster than C++ (around 20%) even when compared with clang.