3 ms·
Unsurprised at the superior performance of GCC, but I am surprised that ruby ships with -O3. Why would they choose that optimization level?
by krisdol 12y ago
Unsurprised at the superior performance of GCC, but I am surprised that ruby ships with -O3. Why would they choose that optimization level?
- mhd 12y agoNot automatic build system that tries different configurations for standard benkchmarks for each release? If that isn't done, then, well, it's one louder.
- desdiv 12y agoEven better, use different optimization levels per file and benchmark them. If you have N files, then that's only 3^N builds to test out each possible combination of O, O2, and O3. That shouldn't take too long. /s
- vinkelhake 12y agoWhy stop settle for just -O levels? You could fiddle with all flags that might affect performance. You could even write a program that automates this and employs generic algorithms to reach good results quicker... http://stderr.org/doc/acovea/html/acoveaga.html http://stderr.org/doc/acovea/html/acoveaga.html