JAVA vs RUST 🔥

preview_player
Показать описание
A speed test between Java and Rust language | Java vs Rust

#java #rust #speedtest #programming
Рекомендации по теме
Комментарии
Автор

bro doesnt even know how to speed test lol

usbow
Автор

You are launching your Rust application in Debug mode so Rust compiler is not optimizing your code. In order to test and compare properly you should execute 'cargo build --release' to generate an optimized executable from your Rust code and then you can execute the executable and compare results.

ThePaci
Автор

This isn't a speed test for these reasons -
You are not doing anything in that loop except for incrementing `i` to 10, 000, 000, java runtime optimize it and not do the loop at all.
You are not running that rust program in optimize mode, it's multiple times faster than java with optimizations, xD

Try to do something that is not optimizable by both Rust and Java.

DuskyDaily