News for hackers. Stuff that matters.
Re:Performance Showdown: Rust vs Javascript (2020) by michaelscott on Friday February 12, 2021 @08:25AM (#26113347)
This might be a silly observation, but I do notice in the perf section the author is using "cargo build" without the release flag. This will definitely slow Rust down considerably, although I'm sure the author is aware of this and ran the final benchmarks with Rust in release. Would just be good to note in the post.
Re:Performance Showdown: Rust vs Javascript (2020) by nyanpasu64 on Friday February 12, 2021 @10:22AM (#26114588)
The "Attaching Perf" section shows that "./target/release/day-5" was being launched, which is the release binary.
Re:Performance Showdown: Rust vs Javascript (2020) by michaelscott on Friday February 12, 2021 @12:18PM (#26115973)
I didn't catch that, thanks. Shows how thoroughly I'm reading
Re:Performance Showdown: Rust vs Javascript (2020) by brundolf on Friday February 12, 2021 @11:51AM (#26115603)
I remember when I first discovered this. I was implementing a raytracer and test runs were taking forever. Then I read about enabling compiler optimizations, and with the flip of a switch my performance increased 16x...