GCC 4.8 Optimization Levels

Benchmarking various optimization levels exposed by the GCC 4.8.0 compiler for a future article on Phoronix.com.

HTML result view exported from: https://openbenchmarking.org/result/1302090-FO-GCC48OPTI56&grw&rdt.

GCC 4.8 Optimization LevelsProcessorMotherboardChipsetMemoryDiskGraphicsAudioMonitorNetworkOSKernelDesktopDisplay ServerDisplay DriverOpenGLCompilerFile-SystemScreen Resolution-O3-O2-O1-O0-Os-Ofast-OgIntel Core i7-3770K @ 3.50GHz (8 Cores)ECS Z77H2-A2X v1.0Intel Xeon E3-1200 v2/3rd8192MB60GB OCZ VERTEX2NVIDIA GeForce GTX 550 Ti 1024MB (405/324MHz)Realtek ALC892DELL P2210HRealtek RTL8111/8168B + Intel Centrino Advanced-N 6205Ubuntu 13.043.8.0-4-generic (x86_64)Unity 6.6.0X Server 1.13.2nouveau 1.0.63.0 Mesa 9.0.2 Gallium 0.4GCC 4.8.0 20130121ext41920x1080OpenBenchmarking.orgCompiler Details- --build=x86_64-linux-gnu --disable-browser-plugin --disable-nls --disable-werror --enable-checking=yes --enable-clocale=gnu --enable-gnu-unique-object --enable-gtk-cairo --enable-java-awt=gtk --enable-java-home --enable-languages=c,ada,c++,java,go,fortran,objc,obj-c++ --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-multiarch --enable-objc-gc --enable-plugin --enable-shared --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-abi=m64 --with-arch-32=i686 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-snap-amd64/jre --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-snap-amd64 --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-snap-amd64 --with-multilib-list=m32,m64,mx32 --with-tune=generic -v Processor Details- Scaling Governor: ondemand

GCC 4.8 Optimization Levelsencode-opus: WAV, Opus Encode, Opus Decodehimeno: Poisson Pressure Solverbuild-php: Time To Compilegraphics-magick: Blurgraphics-magick: Sharpengraphics-magick: Resizinggraphics-magick: HWB Color Spacegraphics-magick: Local Adaptive Thresholdingc-ray: Total Timesmallpt: Global Illumination Renderer; 100 Samplesbyte: Dhrystone 2-O3-O2-O1-O0-Os-Ofast-Og9.051690.1342.791338316019811827.773830149397.909.431602.6835.971328316019812345.103830156066.7010.491045.2227.401319516519611947.153830150124.2331.36441.1913.058651921164566.509730147388.7310.001186.7830.321318215719311363.864830147776.437.401892.3043.131328316020711829.143630150256.3711.101073.5821.25122571561968346.544130161173.87OpenBenchmarking.org

Opus Codec Encoding

WAV, Opus Encode, Opus Decode

OpenBenchmarking.orgSeconds, Fewer Is BetterOpus Codec Encoding 1.0.1WAV, Opus Encode, Opus Decode-O3-O2-O1-O0-Os-Ofast-Og714212835SE +/- 0.00, N = 5SE +/- 0.00, N = 5SE +/- 0.01, N = 5SE +/- 0.02, N = 5SE +/- 0.01, N = 5SE +/- 0.01, N = 5SE +/- 0.01, N = 59.059.4310.4931.3610.007.4011.10-O3-O2-O1-O0-Os-Ofast-Og1. (CC) gcc options: -std=gnu99 -fPIE -pie -logg -lm -lopus

Himeno Benchmark

Poisson Pressure Solver

OpenBenchmarking.orgMFLOPS, More Is BetterHimeno Benchmark 3.0Poisson Pressure Solver-O3-O2-O1-O0-Os-Ofast-Og400800120016002000SE +/- 0.82, N = 3SE +/- 1.42, N = 3SE +/- 2.42, N = 3SE +/- 0.67, N = 3SE +/- 0.22, N = 3SE +/- 32.03, N = 3SE +/- 1.13, N = 31690.131602.681045.22441.191186.781892.301073.58-O2-O1-O0-Os-Ofast-Og1. (CC) gcc options: -O3

Timed PHP Compilation

Time To Compile

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed PHP Compilation 5.2.9Time To Compile-O3-O2-O1-O0-Os-Ofast-Og1020304050SE +/- 0.05, N = 3SE +/- 0.05, N = 3SE +/- 0.01, N = 3SE +/- 0.01, N = 3SE +/- 0.01, N = 3SE +/- 0.09, N = 3SE +/- 0.00, N = 342.7935.9727.4013.0530.3243.1321.25-O3-O2-O1-O0-Os-Ofast-Og1. (CC) gcc options: -pedantic -ldl -lpthread -lz -lm

GraphicsMagick

Operation: Blur

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Blur-O3-O2-O1-O0-Os-Ofast-Og306090120150SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 313313213186131132122-O3-O2-O1-O0-Os-Ofast-Og1. (CC) gcc options: -std=gnu99 -fopenmp -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread

GraphicsMagick

Operation: Sharpen

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Sharpen-O3-O2-O1-O0-Os-Ofast-Og20406080100SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 383839551828357-O3-O2-O1-O0-Os-Ofast-Og1. (CC) gcc options: -std=gnu99 -fopenmp -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread

GraphicsMagick

Operation: Resizing

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Resizing-O3-O2-O1-O0-Os-Ofast-Og4080120160200SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 316016016592157160156-O3-O2-O1-O0-Os-Ofast-Og1. (CC) gcc options: -std=gnu99 -fopenmp -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread

GraphicsMagick

Operation: HWB Color Space

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: HWB Color Space-O3-O2-O1-O0-Os-Ofast-Og50100150200250SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3198198196116193207196-O3-O2-O1-O0-Os-Ofast-Og1. (CC) gcc options: -std=gnu99 -fopenmp -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread

GraphicsMagick

Operation: Local Adaptive Thresholding

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Local Adaptive Thresholding-O3-O2-O1-O0-Os-Ofast-Og306090120150SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 31181231194511311883-O3-O2-O1-O0-Os-Ofast-Og1. (CC) gcc options: -std=gnu99 -fopenmp -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread

C-Ray

Total Time

OpenBenchmarking.orgSeconds, Fewer Is BetterC-Ray 1.1Total Time-O3-O2-O1-O0-Os-Ofast-Og1530456075SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.03, N = 3SE +/- 0.02, N = 3SE +/- 0.02, N = 3SE +/- 0.01, N = 3SE +/- 0.01, N = 327.7745.1047.1566.5063.8629.1446.54-O2-O1-O0-Os-Ofast-Og1. (CC) gcc options: -lm -lpthread -O3

Smallpt

Global Illumination Renderer; 100 Samples

OpenBenchmarking.orgSeconds, Fewer Is BetterSmallpt 1.0Global Illumination Renderer; 100 Samples-O3-O2-O1-O0-Os-Ofast-Og20406080100SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 338383897483641-O3-O2-O1-O0-Os-Ofast-Og1. (CXX) g++ options: -fopenmp

BYTE Unix Benchmark

Computational Test: Dhrystone 2

OpenBenchmarking.orgLPS, More Is BetterBYTE Unix Benchmark 3.6Computational Test: Dhrystone 2-O3-O2-O1-O0-Os-Ofast-Og6M12M18M24M30MSE +/- 5624.42, N = 3SE +/- 3137.04, N = 3SE +/- 3238.52, N = 3SE +/- 6996.14, N = 3SE +/- 10329.87, N = 3SE +/- 8730.39, N = 3SE +/- 3526.34, N = 330149397.9030156066.7030150124.2330147388.7330147776.4330150256.3730161173.87-O3-O2-O1-O0-Os-Ofast-Og1. (CC) gcc options:


Phoronix Test Suite v10.8.5