3 ms·
Lots of things are slower at higher -O levels, many things get slower if you compile them for your native instruction extensions, and there are other surprises
by jeffbee 5y ago
Lots of things are slower at higher -O levels, many things get slower if you compile them for your native instruction extensions, and there are other surprises lurking all over the compiler. The only way to be sure is to sweep out the parameter space of your compiler, using benchmark results as your objective function.