New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
optimise for size when compiling rust #28
Comments
The ASM between both opt-level=s and opt-level=3 (or 2) is exactly the same, so I'm not entirely sure where these performance differences come from |
Here's the comparison: https://godbolt.org/z/d6504t |
Let me know if this is a normal flag for Rust. I am ok with changing it. It shaved ~ 0.5s from the results on my machine. 5.817 vs 6.438 |
Yeah they stabilized this flag a few releases ago. You can integrate it if you want. |
Same for me 😄 |
done. Although I think the upgrade to Mojave had an affect on the results. I plan on moving this to linux soon. |
The time for the rust version increased? |
yes. Crystal slowed by a whole second as well. not sure the cause. LLVM? |
maybe i should change it back?
|
Why not use opt-level=3 for speed optimization? It makes more sense when trying to benchmark for speed. |
optimising for size with rust produces a significant difference, comparable to nim on my machine
The text was updated successfully, but these errors were encountered: