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&grt.

GCC 4.8 Optimization LevelsProcessorMotherboardChipsetMemoryDiskGraphicsAudioMonitorNetworkOSKernelDesktopDisplay ServerDisplay DriverOpenGLCompilerFile-SystemScreen Resolution-Os-Og-O0-O1-O2-O3-OfastIntel 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 Levelsbyte: Dhrystone 2c-ray: Total Timegraphics-magick: Blurgraphics-magick: Sharpengraphics-magick: Resizinggraphics-magick: HWB Color Spacegraphics-magick: Local Adaptive Thresholdinghimeno: Poisson Pressure Solverencode-opus: WAV, Opus Encode, Opus Decodesmallpt: Global Illumination Renderer; 100 Samplesbuild-php: Time To Compile-Os-Og-O0-O1-O2-O3-Ofast30147776.4363.86131821571931131186.7810.004830.3230161173.8746.5412257156196831073.5811.104121.2530147388.7366.5086519211645441.1931.369713.0530150124.2347.15131951651961191045.2210.493827.4030156066.7045.10132831601981231602.689.433835.9730149397.9027.77133831601981181690.139.053842.7930150256.3729.14132831602071181892.307.403643.13OpenBenchmarking.org

BYTE Unix Benchmark

Computational Test: Dhrystone 2

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

C-Ray

Total Time

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

GraphicsMagick

Operation: Blur

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Blur-Os-Og-O0-O1-O2-O3-Ofast306090120150SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 313112286131132133132-Os-Og-O0-O1-O2-O3-Ofast1. (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-Os-Og-O0-O1-O2-O3-Ofast20406080100SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 382575195838383-Os-Og-O0-O1-O2-O3-Ofast1. (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-Os-Og-O0-O1-O2-O3-Ofast4080120160200SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 315715692165160160160-Os-Og-O0-O1-O2-O3-Ofast1. (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-Os-Og-O0-O1-O2-O3-Ofast50100150200250SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3193196116196198198207-Os-Og-O0-O1-O2-O3-Ofast1. (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-Os-Og-O0-O1-O2-O3-Ofast306090120150SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 31138345119123118118-Os-Og-O0-O1-O2-O3-Ofast1. (CC) gcc options: -std=gnu99 -fopenmp -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread

Himeno Benchmark

Poisson Pressure Solver

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

Opus Codec Encoding

WAV, Opus Encode, Opus Decode

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

Smallpt

Global Illumination Renderer; 100 Samples

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

Timed PHP Compilation

Time To Compile

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


Phoronix Test Suite v10.8.5