4 ms·
https://gist.github.com/fwsGonzo/6b12f502a3873725c17f44dc5e206c2e https://gist.github.com/fwsGonzo/6b12f502a3873725c17f44dc5e2... Very preliminary benchmark C+
by fwsgonzo 6y ago
https://gist.github.com/fwsGonzo/6b12f502a3873725c17f44dc5e206c2e https://gist.github.com/fwsGonzo/6b12f502a3873725c17f44dc5e2...
Very preliminary benchmark C++ Vs Rust on RISCV. C++ is just in its own league. Alone.
Having been at CppCon I can attest to the atmosphere of performance first in C++.
- steveklabnik 6y agoWhat is the context here? This doesn’t describe the test at all, it’s just a bunch of numbers.
- deleted 6y ago[deleted]
- fwsgonzo 6y agoThe explanation is long but I have written about it here: https://medium.com/@fwsgonzo/adventures-in-game-engine-programming-part-3-3895a9f5af1d https://medium.com/@fwsgonzo/adventures-in-game-engine-progr... The benchmarks are done here: https://github.com/fwsGonzo/script_bench https://github.com/fwsGonzo/script_bench I am trying to reach out to someone who is really good at Rust to see if there's ways to balance the scales. One of the things I am dealing with: https://gist.github.com/fwsGonzo/ff0b7f41c521eb0cc4212f3c42f0bdc4 https://gist.github.com/fwsGonzo/ff0b7f41c521eb0cc4212f3c42f...
- steveklabnik 6y agoSeems like you're getting the bounds check, which makes sense, there's no real way to eliminate that with this simple example. > I am trying to reach out to someone who is really good at Rust to see if there's ways to balance the scales. If you use reddit, posting to /r/rust will be super helpful. If you don't, users.rust-lang.org is a decent spot. If you tweet, I can retweet from the rust account.