News for hackers. Stuff that matters.
Re:Performance Showdown: Rust vs Javascript (2020) by lifthrasiir on Friday February 12, 2021 @06:31AM (#26112531)
Possibly due to the lack of LTO, Link-Time Optimization. Rust standard library and user program get separately compiled and needs a special procedure to inline them out. I couldn't find Cargo.toml used in this benchmark but it ought to contain `lto = true` somewhere in the profile section to get the optimal performance especially for this kind of tight loops. (It makes compile slower, unfortunately, and no profile currently turns that on by default.)

There are no comments on this comment yet.