← Back to team overview

maria-developers team mailing list archive

Effect of gcc optimization levels


Hi Wlad,

Last week I promised to benchmark effect of various gcc optimization levels.
Here're results:

-O0 418TPS
-Os 663TPS
-O1 759TPS
-O2 807TPS
-O3 812TPS
-O3 -unroll2 -ip 812TPS (default)
-Ofast 819TPS

Benchmark was done on a Sandy Bridge system running Ubuntu 12.10. Single
thread OLTP RO, performance schema off.