Hacker News new | ask | show | jobs
by mkj 1083 days ago
You should compile rust with --release and C with -O3
1 comments

That wouldn't be a fair comparison. Rust has an opt-level option for each build profile. It defaults to 2 for the release profile.
In practice O2 and O3 are rarely very different.