The Performance Between GCC Optimization Levels

Written by Michael Larabel in Software on 13 October 2012. Page 2 of 5. 23 Comments

To no real surprise, -Ofast and -O3 are the fastest optimization levels. The -Os option for optimizing for size only delivers a modest improvement over no optimizations.

Going from no optimizations (-O0) to many optimizations (-O3) had more than doubled the GraphicsMagick application performance with the image-sharpening task.

The image resizing results were a bit unexpected with the -O1 level actually producing the best numbers while adding in more optimizations had led to a performance drop.

Related Articles