GCC 6.1 Compiler Optimization Benchmarks

GCC 6.1.0 compiler benchmarks with different optimization flags. Intel Xeon E5-2687W v3 GCC compiler benchmarks on Debian. Tests by Michael Larabel of Phoronix for a future article.

HTML result view exported from: https://openbenchmarking.org/result/1605083-HA-GCCOPTIMI43&rdt&grs.

GCC 6.1 Compiler Optimization BenchmarksProcessorMotherboardChipsetMemoryDiskGraphicsAudioMonitorNetworkOSKernelDisplay ServerDisplay DriverOpenGLCompilerFile-SystemScreen Resolution-O3 -march=native-O3 -march=native -flto-O0-O1-O2-O3-Ofast -march=native-Os-OgIntel Xeon E5-2687W v3 @ 3.50GHz (20 Cores)MSI X99S SLI PLUS (MS-7885) v1.0Intel Xeon E7 v3/Xeon16384MBPNY CS1211 120GB + 80GB INTEL SSDSCKGW08AMD FirePro V7900 2048MBRealtek ALC892ASUS PB278Intel ConnectionDebian testing4.5.0-1-amd64 (x86_64)X Server 1.18.3modesetting 1.18.33.3 Mesa 11.1.3 Gallium 0.4GCC 6.1.0ext42560x1440OpenBenchmarking.orgCompiler Details- --disable-multilib --enable-checking=releaseProcessor Details- Scaling Governor: intel_pstate powersave

GCC 6.1 Compiler Optimization Benchmarksencode-flac: WAV To FLAChimeno: Poisson Pressure Solvergraphics-magick: Local Adaptive Thresholdingencode-mp3: WAV To MP3hint: FLOATgraphics-magick: Sharpenbuild-php: Time To Compilebuild-imagemagick: Time To Compilegraphics-magick: Resizinggraphics-magick: HWB Color Spacegraphics-magick: Blurredis: LPUSHredis: SADDredis: SETredis: GETredis: LPOPpgbench: Buffer Test - Single Thread - Read Writescimark2: Monte Carlopgbench: Buffer Test - Heavy Contention - Read Writescimark2: Sparse Matrix Multiplyscimark2: Fast Fourier Transformpgbench: Buffer Test - Normal Load - Read Writescimark2: Dense LU Matrix Factorizationscimark2: Compositescimark2: Jacobi Successive Over-Relaxationhmmer: Pfam Database Search-O3 -march=native-O3 -march=native -flto-O0-O1-O2-O3-Ofast -march=native-Os-Og7.012113.048512.45310268777.8714318.1055.40180190138584299.37615258.45584905.04631189.52655097.69349.97547.584539.622440.96443.714281.302468.301388.101039.9413.042150.96312975471.9382.86121.45614.592511.39465.502586.621445.101047.4346.74424.571736.02103731655.85715.589.349711082476295.97491891.31479934.92548655.63547091.88303.93545.514840.762565.94440.574468.972454.121407.021028.9513.827.681060.937615.14242450705.971359.7627.24168187137589230.57605722.93597265.48655681.23655900.13351.47551.444494.382609.45447.314257.862534.081437.731046.3610.196.681916.568214.26317711776.8313416.0838.55174186131599526.56598759.46586099.29628643.96649030.83363.87537.904494.082571.06461.554322.672534.231426.801029.2711.636.831895.458312.52312279718.2713617.5955.45171185130593409.02605861.48587251.75669846.73646935.48351.89547.854720.082622.50458.564495.932531.291442.301051.2713.087.032019.618611.34309403432.8914517.9955.89182204144598935.85616016.48588019.67631191.87656696.79553.282517.37468.612519.721421.801050.058.3210.621181.186816.28303914359.3312411.6132.43168188110598808.52607478.25596757.10645755.96642758.08346.32552.044497.152589.56456.354275.852482.131426.791053.8810.688.111102.645417.15326497871.931008.1813.35149168113602047.96582272.77592312.44652904.39637156.51353.15546.264538.182580.32456.614364.382521.751427.701033.568.23OpenBenchmarking.org

FLAC Audio Encoding

WAV To FLAC

OpenBenchmarking.orgSeconds, Fewer Is BetterFLAC Audio Encoding 1.3.1WAV To FLAC-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og1122334455SE +/- 0.10, N = 5SE +/- 0.12, N = 5SE +/- 0.04, N = 5SE +/- 0.07, N = 5SE +/- 0.04, N = 5SE +/- 0.04, N = 5SE +/- 0.05, N = 5SE +/- 0.07, N = 57.0146.747.686.686.837.0310.628.11-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og1. (CXX) g++ options: -fvisibility=hidden -lm

Himeno Benchmark

Poisson Pressure Solver

OpenBenchmarking.orgMFLOPS, More Is BetterHimeno Benchmark 3.0Poisson Pressure Solver-O3 -march=native-O3 -march=native -flto-O0-O1-O2-O3-Ofast -march=native-Os-Og5001000150020002500SE +/- 9.13, N = 3SE +/- 7.85, N = 3SE +/- 0.64, N = 3SE +/- 1.09, N = 3SE +/- 4.78, N = 3SE +/- 6.74, N = 3SE +/- 3.96, N = 3SE +/- 3.40, N = 3SE +/- 1.19, N = 32113.042150.96424.571060.931916.561895.452019.611181.181102.64-march=native-march=native -flto-O0-O1-O2-Ofast -march=native-Os-Og1. (CC) gcc options: -O3 -mavx2

GraphicsMagick

Operation: Local Adaptive Thresholding

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.19Operation: Local Adaptive Thresholding-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og20406080100SE +/- 0.58, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 38517768283866854-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og1. (CC) gcc options: -fopenmp -pthread -lXext -lSM -lICE -lX11 -lz -lm -ldl -lpthread

LAME MP3 Encoding

WAV To MP3

OpenBenchmarking.orgSeconds, Fewer Is BetterLAME MP3 Encoding 3.99.3WAV To MP3-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og816243240SE +/- 0.10, N = 5SE +/- 0.09, N = 5SE +/- 0.08, N = 5SE +/- 0.10, N = 5SE +/- 0.09, N = 5SE +/- 0.07, N = 5SE +/- 0.06, N = 5SE +/- 0.06, N = 512.4536.0215.1414.2612.5211.3416.2817.15-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og1. (CC) gcc options: -pipe -lm

Hierarchical INTegration

Test: FLOAT

OpenBenchmarking.orgQUIPs, More Is BetterHierarchical INTegration 1.0Test: FLOAT-O3 -march=native-O3 -march=native -flto-O0-O1-O2-O3-Ofast -march=native-Os-Og70M140M210M280M350MSE +/- 619811.97, N = 3SE +/- 100984.48, N = 3SE +/- 246206.62, N = 3SE +/- 222306.33, N = 3SE +/- 1047951.03, N = 3SE +/- 978215.41, N = 3SE +/- 547786.00, N = 3SE +/- 119724.21, N = 3SE +/- 179064.26, N = 3310268777.87312975471.93103731655.85242450705.97317711776.83312279718.27309403432.89303914359.33326497871.93-O3 -march=native-O3 -march=native -flto-O0-O1-O2-O3-Ofast -march=native-Os-Og1. (CC) gcc options: -lm

GraphicsMagick

Operation: Sharpen

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.19Operation: Sharpen-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og306090120150SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 314371135134136145124100-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og1. (CC) gcc options: -fopenmp -pthread -lXext -lSM -lICE -lX11 -lz -lm -ldl -lpthread

Timed PHP Compilation

Time To Compile

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed PHP Compilation 5.2.9Time To Compile-O3 -march=native-O3 -march=native -flto-O0-O1-O2-O3-Ofast -march=native-Os-Og20406080100SE +/- 0.19, N = 3SE +/- 0.10, N = 3SE +/- 0.02, N = 3SE +/- 0.02, N = 3SE +/- 0.04, N = 3SE +/- 0.01, N = 3SE +/- 0.04, N = 3SE +/- 0.06, N = 3SE +/- 0.01, N = 318.1082.865.589.7616.0817.5917.9911.618.18-O3 -march=native-O3 -march=native -flto-O1-O2-O3-Ofast -march=native-Os1. (CC) gcc options: -pedantic -ldl -lz -lm

Timed ImageMagick Compilation

Time To Compile

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed ImageMagick Compilation 6.9.0Time To Compile-O3 -march=native-O3 -march=native -flto-O0-O1-O2-O3-Ofast -march=native-Os-Og306090120150SE +/- 0.23, N = 3SE +/- 0.25, N = 3SE +/- 0.10, N = 3SE +/- 0.21, N = 3SE +/- 0.06, N = 3SE +/- 0.14, N = 3SE +/- 0.09, N = 3SE +/- 0.08, N = 3SE +/- 0.13, N = 355.40121.459.3427.2438.5555.4555.8932.4313.35

GraphicsMagick

Operation: Resizing

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.19Operation: Resizing-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og4080120160200SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 1.00, N = 3SE +/- 0.67, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.58, N = 3SE +/- 0.33, N = 318097168174171182168149-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og1. (CC) gcc options: -fopenmp -pthread -lXext -lSM -lICE -lX11 -lz -lm -ldl -lpthread

GraphicsMagick

Operation: HWB Color Space

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.19Operation: HWB Color Space-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og4080120160200SE +/- 0.58, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.58, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3190110187186185204188168-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og1. (CC) gcc options: -fopenmp -pthread -lXext -lSM -lICE -lX11 -lz -lm -ldl -lpthread

GraphicsMagick

Operation: Blur

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.19Operation: Blur-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og306090120150SE +/- 1.20, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.58, N = 3SE +/- 0.33, N = 3SE +/- 0.58, N = 3SE +/- 1.53, N = 313882137131130144110113-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og1. (CC) gcc options: -fopenmp -pthread -lXext -lSM -lICE -lX11 -lz -lm -ldl -lpthread

Redis

Test: LPUSH

OpenBenchmarking.orgRequests Per Second, More Is BetterRedis 3.0.1Test: LPUSH-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og130K260K390K520K650KSE +/- 11218.12, N = 6SE +/- 2663.98, N = 3SE +/- 8590.61, N = 6SE +/- 1359.59, N = 3SE +/- 4012.35, N = 3SE +/- 2036.63, N = 3SE +/- 1356.34, N = 3SE +/- 553.25, N = 3584299.37476295.97589230.57599526.56593409.02598935.85598808.52602047.961. (CC) gcc options: -ggdb -rdynamic -lm -pthread -ldl

Redis

Test: SADD

OpenBenchmarking.orgRequests Per Second, More Is BetterRedis 3.0.1Test: SADD-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og130K260K390K520K650KSE +/- 126.17, N = 3SE +/- 1350.43, N = 3SE +/- 2982.88, N = 3SE +/- 9681.71, N = 3SE +/- 3715.65, N = 3SE +/- 126.46, N = 3SE +/- 4522.27, N = 3SE +/- 11078.60, N = 6615258.45491891.31605722.93598759.46605861.48616016.48607478.25582272.771. (CC) gcc options: -ggdb -rdynamic -lm -pthread -ldl

Redis

Test: SET

OpenBenchmarking.orgRequests Per Second, More Is BetterRedis 3.0.1Test: SET-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og130K260K390K520K650KSE +/- 8041.99, N = 3SE +/- 7680.16, N = 3SE +/- 1956.89, N = 3SE +/- 6845.46, N = 3SE +/- 8111.26, N = 5SE +/- 2097.48, N = 3SE +/- 5397.69, N = 3SE +/- 1909.49, N = 3584905.04479934.92597265.48586099.29587251.75588019.67596757.10592312.441. (CC) gcc options: -ggdb -rdynamic -lm -pthread -ldl

Redis

Test: GET

OpenBenchmarking.orgRequests Per Second, More Is BetterRedis 3.0.1Test: GET-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og140K280K420K560K700KSE +/- 10870.06, N = 4SE +/- 1566.53, N = 3SE +/- 5335.15, N = 3SE +/- 5831.74, N = 3SE +/- 4253.76, N = 3SE +/- 6785.13, N = 3SE +/- 3565.12, N = 3SE +/- 2604.35, N = 3631189.52548655.63655681.23628643.96669846.73631191.87645755.96652904.391. (CC) gcc options: -ggdb -rdynamic -lm -pthread -ldl

Redis

Test: LPOP

OpenBenchmarking.orgRequests Per Second, More Is BetterRedis 3.0.1Test: LPOP-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og140K280K420K560K700KSE +/- 10960.53, N = 3SE +/- 3542.72, N = 3SE +/- 2503.49, N = 3SE +/- 5733.33, N = 3SE +/- 11650.40, N = 6SE +/- 5651.00, N = 3SE +/- 12533.78, N = 3SE +/- 8860.98, N = 6655097.69547091.88655900.13649030.83646935.48656696.79642758.08637156.511. (CC) gcc options: -ggdb -rdynamic -lm -pthread -ldl

PostgreSQL pgbench

Scaling: Buffer Test - Test: Single Thread - Mode: Read Write

OpenBenchmarking.orgTPS, More Is BetterPostgreSQL pgbench 9.4.3Scaling: Buffer Test - Test: Single Thread - Mode: Read Write-O3 -march=native-O0-O1-O2-O3-Os-Og80160240320400SE +/- 1.70, N = 3SE +/- 4.48, N = 6SE +/- 5.58, N = 3SE +/- 2.06, N = 3SE +/- 2.78, N = 3SE +/- 4.13, N = 3SE +/- 5.68, N = 6349.97303.93351.47363.87351.89346.32353.15-O3 -march=native-O0-O1-O2-O3-Os-Og1. (CC) gcc options: -fno-strict-aliasing -fwrapv -pthread -lpgcommon -lpgport -lpq -lpthread -lrt -lcrypt -ldl -lm

SciMark

Computational Test: Monte Carlo

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Monte Carlo-O3 -march=native-O3 -march=native -flto-O0-O1-O2-O3-Ofast -march=native-Os-Og130260390520650SE +/- 5.84, N = 4SE +/- 6.00, N = 4SE +/- 6.16, N = 4SE +/- 1.22, N = 4SE +/- 9.59, N = 4SE +/- 3.64, N = 4SE +/- 1.67, N = 4SE +/- 1.68, N = 4SE +/- 5.79, N = 4547.58614.59545.51551.44537.90547.85553.28552.04546.26-O3 -march=native-O3 -march=native -flto-O0-O1-O2-O3-Ofast -march=native-Os-Og1. (CXX) g++ options:

PostgreSQL pgbench

Scaling: Buffer Test - Test: Heavy Contention - Mode: Read Write

OpenBenchmarking.orgTPS, More Is BetterPostgreSQL pgbench 9.4.3Scaling: Buffer Test - Test: Heavy Contention - Mode: Read Write-O3 -march=native-O0-O1-O2-O3-Os-Og10002000300040005000SE +/- 66.74, N = 3SE +/- 21.91, N = 3SE +/- 67.44, N = 4SE +/- 19.05, N = 3SE +/- 40.24, N = 3SE +/- 27.80, N = 3SE +/- 54.29, N = 34539.624840.764494.384494.084720.084497.154538.18-O3 -march=native-O0-O1-O2-O3-Os-Og1. (CC) gcc options: -fno-strict-aliasing -fwrapv -pthread -lpgcommon -lpgport -lpq -lpthread -lrt -lcrypt -ldl -lm

SciMark

Computational Test: Sparse Matrix Multiply

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Sparse Matrix Multiply-O3 -march=native-O3 -march=native -flto-O0-O1-O2-O3-Ofast -march=native-Os-Og6001200180024003000SE +/- 12.32, N = 4SE +/- 24.76, N = 4SE +/- 9.07, N = 4SE +/- 3.88, N = 4SE +/- 32.30, N = 4SE +/- 9.06, N = 4SE +/- 19.13, N = 4SE +/- 21.77, N = 4SE +/- 13.12, N = 42440.962511.392565.942609.452571.062622.502517.372589.562580.32-O3 -march=native-O3 -march=native -flto-O0-O1-O2-O3-Ofast -march=native-Os-Og1. (CXX) g++ options:

SciMark

Computational Test: Fast Fourier Transform

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Fast Fourier Transform-O3 -march=native-O3 -march=native -flto-O0-O1-O2-O3-Ofast -march=native-Os-Og100200300400500SE +/- 1.70, N = 4SE +/- 3.19, N = 4SE +/- 5.60, N = 4SE +/- 3.48, N = 4SE +/- 2.20, N = 4SE +/- 2.05, N = 4SE +/- 0.63, N = 4SE +/- 1.29, N = 4SE +/- 3.34, N = 4443.71465.50440.57447.31461.55458.56468.61456.35456.61-O3 -march=native-O3 -march=native -flto-O0-O1-O2-O3-Ofast -march=native-Os-Og1. (CXX) g++ options:

PostgreSQL pgbench

Scaling: Buffer Test - Test: Normal Load - Mode: Read Write

OpenBenchmarking.orgTPS, More Is BetterPostgreSQL pgbench 9.4.3Scaling: Buffer Test - Test: Normal Load - Mode: Read Write-O3 -march=native-O0-O1-O2-O3-Os-Og10002000300040005000SE +/- 18.80, N = 3SE +/- 44.94, N = 3SE +/- 80.41, N = 6SE +/- 62.15, N = 5SE +/- 64.78, N = 6SE +/- 32.55, N = 3SE +/- 64.39, N = 54281.304468.974257.864322.674495.934275.854364.38-O3 -march=native-O0-O1-O2-O3-Os-Og1. (CC) gcc options: -fno-strict-aliasing -fwrapv -pthread -lpgcommon -lpgport -lpq -lpthread -lrt -lcrypt -ldl -lm

SciMark

Computational Test: Dense LU Matrix Factorization

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Dense LU Matrix Factorization-O3 -march=native-O3 -march=native -flto-O0-O1-O2-O3-Ofast -march=native-Os-Og6001200180024003000SE +/- 10.80, N = 4SE +/- 28.87, N = 4SE +/- 26.42, N = 4SE +/- 7.15, N = 4SE +/- 3.32, N = 4SE +/- 7.24, N = 4SE +/- 11.60, N = 4SE +/- 18.22, N = 4SE +/- 4.63, N = 42468.302586.622454.122534.082534.232531.292519.722482.132521.75-O3 -march=native-O3 -march=native -flto-O0-O1-O2-O3-Ofast -march=native-Os-Og1. (CXX) g++ options:

SciMark

Computational Test: Composite

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Composite-O3 -march=native-O3 -march=native -flto-O0-O1-O2-O3-Ofast -march=native-Os-Og30060090012001500SE +/- 4.89, N = 4SE +/- 7.57, N = 4SE +/- 8.59, N = 4SE +/- 1.73, N = 4SE +/- 7.42, N = 4SE +/- 2.58, N = 4SE +/- 5.38, N = 4SE +/- 2.83, N = 4SE +/- 3.98, N = 41388.101445.101407.021437.731426.801442.301421.801426.791427.70-O3 -march=native-O3 -march=native -flto-O0-O1-O2-O3-Ofast -march=native-Os-Og1. (CXX) g++ options:

SciMark

Computational Test: Jacobi Successive Over-Relaxation

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Jacobi Successive Over-Relaxation-O3 -march=native-O3 -march=native -flto-O0-O1-O2-O3-Ofast -march=native-Os-Og2004006008001000SE +/- 6.48, N = 4SE +/- 6.06, N = 4SE +/- 9.29, N = 4SE +/- 3.32, N = 4SE +/- 12.72, N = 4SE +/- 2.16, N = 4SE +/- 0.76, N = 4SE +/- 1.16, N = 4SE +/- 8.62, N = 41039.941047.431028.951046.361029.271051.271050.051053.881033.56-O3 -march=native-O3 -march=native -flto-O0-O1-O2-O3-Ofast -march=native-Os-Og1. (CXX) g++ options:

Timed HMMer Search

Pfam Database Search

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed HMMer Search 2.3.2Pfam Database Search-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og48121620SE +/- 0.68, N = 6SE +/- 0.01, N = 3SE +/- 0.16, N = 6SE +/- 0.51, N = 6SE +/- 0.35, N = 6SE +/- 0.27, N = 6SE +/- 0.19, N = 3SE +/- 0.05, N = 313.0413.8210.1911.6313.088.3210.688.23-O3 -march=native-O0-O1-O2-O3-Ofast -march=native-Os-Og1. (CC) gcc options: -pthread -lhmmer -lsquid -lm


Phoronix Test Suite v10.8.4