4 ms·
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 Rus
by michaelscott 6y ago
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.
- nyanpasu64 6y agoThe "Attaching Perf" section shows that "./target/release/day-5" was being launched, which is the release binary.
- michaelscott 6y agoI didn't catch that, thanks. Shows how thoroughly I'm reading
- brundolf 6y agoI 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...