GCC 4.8 Optimization Levels

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

Compare your own system(s) to this result file with the Phoronix Test Suite by running the command: phoronix-test-suite benchmark 1302090-FO-GCC48OPTI56
Jump To Table - Results

View

Do Not Show Noisy Results
Do Not Show Results With Incomplete Data
Do Not Show Results With Little Change/Spread
List Notable Results

Limit displaying results to tests within:

C/C++ Compiler Tests 4 Tests
CPU Massive 4 Tests
Creator Workloads 4 Tests
Multi-Core 4 Tests
Renderers 2 Tests
Server CPU Tests 3 Tests

Statistics

Show Overall Harmonic Mean(s)
Show Overall Geometric Mean
Show Geometric Means Per-Suite/Category
Show Wins / Losses Counts (Pie Chart)
Normalize Results
Remove Outliers Before Calculating Averages

Graph Settings

Force Line Graphs Where Applicable
Convert To Scalar Where Applicable
Prefer Vertical Bar Graphs

Multi-Way Comparison

Condense Multi-Option Tests Into Single Result Graphs

Table

Show Detailed System Result Table

Run Management

Highlight
Result
Hide
Result
Result
Identifier
View Logs
Performance Per
Dollar
Date
Run
  Test
  Duration
-Os
February 09 2013
 
-Og
February 09 2013
 
-O0
February 08 2013
 
-O1
February 08 2013
 
-O2
February 08 2013
 
-O3
February 08 2013
 
-Ofast
February 09 2013
 
Invert Hiding All Results Option
 

Only show results where is faster than
Only show results matching title/arguments (delimit multiple options with a comma):
Do not show results matching title/arguments (delimit multiple options with a comma):


GCC 4.8 Optimization LevelsOpenBenchmarking.orgPhoronix Test SuiteIntel 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 20130121ext41920x1080ProcessorMotherboardChipsetMemoryDiskGraphicsAudioMonitorNetworkOSKernelDesktopDisplay ServerDisplay DriverOpenGLCompilerFile-SystemScreen ResolutionGCC 4.8 Optimization Levels PerformanceSystem Logs- --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 - Scaling Governor: ondemand

-Os-Og-O0-O1-O2-O3-OfastResult OverviewPhoronix Test Suite100%182%264%347%429%Himeno BenchmarkOpus Codec EncodingTimed PHP CompilationGraphicsMagickSmallptC-RayGraphicsMagickGraphicsMagickGraphicsMagickGraphicsMagickBYTE Unix BenchmarkP.P.SW.O.E.O.DTime To CompileL.A.TG.I.R.1.STotal TimeSharpenResizingHWB Color SpaceBlurDhrystone 2

GCC 4.8 Optimization Levelsbyte: Dhrystone 2graphics-magick: Blurgraphics-magick: Sharpengraphics-magick: Resizinggraphics-magick: HWB Color Spacegraphics-magick: Local Adaptive Thresholdinghimeno: Poisson Pressure Solverbuild-php: Time To Compilec-ray: Total Timesmallpt: Global Illumination Renderer; 100 Samplesencode-opus: WAV, Opus Encode, Opus Decode-Os-Og-O0-O1-O2-O3-Ofast30147776.43131821571931131186.7830.3263.864810.0030161173.8712257156196831073.5821.2546.544111.1030147388.7386519211645441.1913.0566.509731.3630150124.23131951651961191045.2227.4047.153810.4930156066.70132831601981231602.6835.9745.10389.4330149397.90133831601981181690.1342.7927.77389.0530150256.37132831602071181892.3043.1329.14367.40OpenBenchmarking.org

BYTE Unix Benchmark

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:
OpenBenchmarking.orgLPS, More Is BetterBYTE Unix Benchmark 3.6Computational Test: Dhrystone 2-Os-Og-O0-O1-O2-O3-Ofast5M10M15M20M25MMin: 30133526.9 / Avg: 30147776.43 / Max: 30167856.2Min: 30157317.3 / Avg: 30161173.87 / Max: 30168215.9Min: 30138113 / Avg: 30147388.73 / Max: 30161099Min: 30144454 / Avg: 30150124.23 / Max: 30155670.5Min: 30150180.7 / Avg: 30156066.7 / Max: 30160891Min: 30140513.2 / Avg: 30149397.9 / Max: 30159815.1Min: 30137691 / Avg: 30150256.37 / Max: 30167038.71. (CC) gcc options:

GraphicsMagick

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
OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Blur-Os-Og-O0-O1-O2-O3-Ofast20406080100Min: 130 / Avg: 130.67 / Max: 131Min: 122 / Avg: 122.33 / Max: 123Min: 86 / Avg: 86 / Max: 86Min: 131 / Avg: 131 / Max: 131Min: 132 / Avg: 132 / Max: 132Min: 132 / Avg: 132.67 / Max: 133Min: 132 / Avg: 132 / Max: 1321. (CC) gcc options: -std=gnu99 -fopenmp -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread

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
OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Sharpen-Os-Og-O0-O1-O2-O3-Ofast20406080100Min: 81 / Avg: 81.67 / Max: 82Min: 57 / Avg: 57 / Max: 57Min: 51 / Avg: 51 / Max: 51Min: 95 / Avg: 95 / Max: 95Min: 83 / Avg: 83 / Max: 83Min: 83 / Avg: 83 / Max: 83Min: 83 / Avg: 83 / Max: 831. (CC) gcc options: -std=gnu99 -fopenmp -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread

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
OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Resizing-Os-Og-O0-O1-O2-O3-Ofast306090120150Min: 157 / Avg: 157 / Max: 157Min: 156 / Avg: 156 / Max: 156Min: 92 / Avg: 92 / Max: 92Min: 165 / Avg: 165 / Max: 165Min: 160 / Avg: 160 / Max: 160Min: 160 / Avg: 160 / Max: 160Min: 159 / Avg: 159.67 / Max: 1601. (CC) gcc options: -std=gnu99 -fopenmp -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread

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
OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: HWB Color Space-Os-Og-O0-O1-O2-O3-Ofast4080120160200Min: 193 / Avg: 193 / Max: 193Min: 195 / Avg: 195.67 / Max: 196Min: 116 / Avg: 116 / Max: 116Min: 196 / Avg: 196 / Max: 196Min: 197 / Avg: 197.67 / Max: 198Min: 198 / Avg: 198 / Max: 198Min: 207 / Avg: 207 / Max: 2071. (CC) gcc options: -std=gnu99 -fopenmp -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread

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
OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Local Adaptive Thresholding-Os-Og-O0-O1-O2-O3-Ofast20406080100Min: 113 / Avg: 113 / Max: 113Min: 82 / Avg: 82.67 / Max: 83Min: 45 / Avg: 45 / Max: 45Min: 119 / Avg: 119 / Max: 119Min: 123 / Avg: 123.33 / Max: 124Min: 118 / Avg: 118 / Max: 118Min: 118 / Avg: 118 / Max: 1181. (CC) gcc options: -std=gnu99 -fopenmp -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread

Himeno Benchmark

The Himeno benchmark is a linear solver of pressure Poisson using a point-Jacobi method. Learn more via the OpenBenchmarking.org test page.

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
OpenBenchmarking.orgMFLOPS, More Is BetterHimeno Benchmark 3.0Poisson Pressure Solver-Os-Og-O0-O1-O2-O3-Ofast30060090012001500Min: 1186.47 / Avg: 1186.78 / Max: 1187.21Min: 1071.55 / Avg: 1073.58 / Max: 1075.47Min: 440.26 / Avg: 441.19 / Max: 442.49Min: 1040.73 / Avg: 1045.22 / Max: 1049.03Min: 1599.84 / Avg: 1602.68 / Max: 1604.11Min: 1688.52 / Avg: 1690.13 / Max: 1691.21Min: 1828.24 / Avg: 1892.3 / Max: 1924.81. (CC) gcc options: -O3

Timed PHP Compilation

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
OpenBenchmarking.orgSeconds, Fewer Is BetterTimed PHP Compilation 5.2.9Time To Compile-Os-Og-O0-O1-O2-O3-Ofast918273645Min: 30.3 / Avg: 30.32 / Max: 30.34Min: 21.24 / Avg: 21.25 / Max: 21.25Min: 13.04 / Avg: 13.05 / Max: 13.07Min: 27.39 / Avg: 27.4 / Max: 27.41Min: 35.87 / Avg: 35.97 / Max: 36.04Min: 42.72 / Avg: 42.79 / Max: 42.9Min: 43.01 / Avg: 43.13 / Max: 43.311. (CC) gcc options: -pedantic -ldl -lpthread -lz -lm

C-Ray

This is a test of C-Ray, a simple raytracer designed to test the floating-point CPU performance. This test is multi-threaded (16 threads per core), will shoot 8 rays per pixel for anti-aliasing, and will generate a 1600 x 1200 image. Learn more via the OpenBenchmarking.org test page.

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
OpenBenchmarking.orgSeconds, Fewer Is BetterC-Ray 1.1Total Time-Os-Og-O0-O1-O2-O3-Ofast1326395265Min: 63.84 / Avg: 63.86 / Max: 63.91Min: 46.51 / Avg: 46.54 / Max: 46.56Min: 66.46 / Avg: 66.5 / Max: 66.53Min: 47.11 / Avg: 47.15 / Max: 47.2Min: 45.1 / Avg: 45.1 / Max: 45.1Min: 27.77 / Avg: 27.77 / Max: 27.77Min: 29.12 / Avg: 29.14 / Max: 29.151. (CC) gcc options: -lm -lpthread -O3

Smallpt

Smallpt is a C++ global illumination renderer written in less than 100 lines of code. Global illumination is done via unbiased Monte Carlo path tracing and there is multi-threading support via the OpenMP library. Learn more via the OpenBenchmarking.org test page.

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
OpenBenchmarking.orgSeconds, Fewer Is BetterSmallpt 1.0Global Illumination Renderer; 100 Samples-Os-Og-O0-O1-O2-O3-Ofast20406080100Min: 48 / Avg: 48 / Max: 48Min: 41 / Avg: 41 / Max: 41Min: 97 / Avg: 97.33 / Max: 98Min: 38 / Avg: 38.33 / Max: 39Min: 38 / Avg: 38.33 / Max: 39Min: 38 / Avg: 38.33 / Max: 39Min: 36 / Avg: 36.33 / Max: 371. (CXX) g++ options: -fopenmp

Opus Codec Encoding

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
OpenBenchmarking.orgSeconds, Fewer Is BetterOpus Codec Encoding 1.0.1WAV, Opus Encode, Opus Decode-Os-Og-O0-O1-O2-O3-Ofast714212835Min: 9.99 / Avg: 10 / Max: 10.03Min: 11.07 / Avg: 11.1 / Max: 11.12Min: 31.31 / Avg: 31.36 / Max: 31.43Min: 10.48 / Avg: 10.49 / Max: 10.52Min: 9.43 / Avg: 9.43 / Max: 9.44Min: 9.04 / Avg: 9.05 / Max: 9.05Min: 7.38 / Avg: 7.4 / Max: 7.411. (CC) gcc options: -std=gnu99 -fPIE -pie -logg -lm -lopus