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.

GCC 6.1 Compiler Optimization BenchmarksProcessorMotherboardChipsetMemoryDiskGraphicsAudioMonitorNetworkOSKernelDisplay ServerDisplay DriverOpenGLCompilerFile-SystemScreen Resolution-O0-Os-Og-O1-O2-O3-O3 -march=native-O3 -march=native -flto-Ofast -march=nativeIntel 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 Benchmarkshmmer: Pfam Database Searchscimark2: Compositescimark2: Monte Carloscimark2: Fast Fourier Transformscimark2: Sparse Matrix Multiplyscimark2: Dense LU Matrix Factorizationscimark2: Jacobi Successive Over-Relaxationgraphics-magick: Blurgraphics-magick: Sharpengraphics-magick: Resizinggraphics-magick: HWB Color Spacegraphics-magick: Local Adaptive Thresholdinghimeno: Poisson Pressure Solverbuild-imagemagick: Time To Compilebuild-php: Time To Compileencode-flac: WAV To FLACencode-mp3: WAV To MP3pgbench: Buffer Test - Normal Load - Read Writepgbench: Buffer Test - Single Thread - Read Writepgbench: Buffer Test - Heavy Contention - Read Writeredis: LPOPredis: SADDredis: LPUSHredis: GETredis: SEThint: FLOAT-O0-Os-Og-O1-O2-O3-O3 -march=native-O3 -march=native -flto-Ofast -march=native13.821407.02545.51440.572565.942454.121028.9582719711017424.579.345.5846.7436.024468.97303.934840.76547091.88491891.31476295.97548655.63479934.92103731655.8510.681426.79552.04456.352589.562482.131053.88110124168188681181.1832.4311.6110.6216.284275.85346.324497.15642758.08607478.25598808.52645755.96596757.10303914359.338.231427.70546.26456.612580.322521.751033.56113100149168541102.6413.358.188.1117.154364.38353.154538.18637156.51582272.77602047.96652904.39592312.44326497871.9310.191437.73551.44447.312609.452534.081046.36137135168187761060.9327.249.767.6815.144257.86351.474494.38655900.13605722.93589230.57655681.23597265.48242450705.9711.631426.80537.90461.552571.062534.231029.27131134174186821916.5638.5516.086.6814.264322.67363.874494.08649030.83598759.46599526.56628643.96586099.29317711776.8313.081442.30547.85458.562622.502531.291051.27130136171185831895.4555.4517.596.8312.524495.93351.894720.08646935.48605861.48593409.02669846.73587251.75312279718.2713.041388.10547.58443.712440.962468.301039.94138143180190852113.0455.4018.107.0112.454281.30349.974539.62655097.69615258.45584299.37631189.52584905.04310268777.871445.10614.59465.502511.392586.621047.432150.96121.4582.86312975471.938.321421.80553.28468.612517.372519.721050.05144145182204862019.6155.8917.997.0311.34656696.79616016.48598935.85631191.87588019.67309403432.89OpenBenchmarking.org

Timed HMMer Search

Pfam Database Search

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

SciMark

Computational Test: Composite

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

SciMark

Computational Test: Monte Carlo

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

SciMark

Computational Test: Fast Fourier Transform

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

SciMark

Computational Test: Sparse Matrix Multiply

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

SciMark

Computational Test: Dense LU Matrix Factorization

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

SciMark

Computational Test: Jacobi Successive Over-Relaxation

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

GraphicsMagick

Operation: Blur

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

GraphicsMagick

Operation: Sharpen

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

GraphicsMagick

Operation: Resizing

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.19Operation: Resizing-O0-Os-Og-O1-O2-O3-O3 -march=native-Ofast -march=native4080120160200SE +/- 0.00, N = 3SE +/- 0.58, N = 3SE +/- 0.33, N = 3SE +/- 1.00, N = 3SE +/- 0.67, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 397168149168174171180182-O0-Os-Og-O1-O2-O3-O3 -march=native-Ofast -march=native1. (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-O0-Os-Og-O1-O2-O3-O3 -march=native-Ofast -march=native4080120160200SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.58, N = 3SE +/- 0.33, N = 3SE +/- 0.58, N = 3SE +/- 0.33, N = 3110188168187186185190204-O0-Os-Og-O1-O2-O3-O3 -march=native-Ofast -march=native1. (CC) gcc options: -fopenmp -pthread -lXext -lSM -lICE -lX11 -lz -lm -ldl -lpthread

GraphicsMagick

Operation: Local Adaptive Thresholding

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

Himeno Benchmark

Poisson Pressure Solver

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

Timed ImageMagick Compilation

Time To Compile

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

Timed PHP Compilation

Time To Compile

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

FLAC Audio Encoding

WAV To FLAC

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

LAME MP3 Encoding

WAV To MP3

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

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-O0-Os-Og-O1-O2-O3-O3 -march=native10002000300040005000SE +/- 44.94, N = 3SE +/- 32.55, N = 3SE +/- 64.39, N = 5SE +/- 80.41, N = 6SE +/- 62.15, N = 5SE +/- 64.78, N = 6SE +/- 18.80, N = 34468.974275.854364.384257.864322.674495.934281.30-O0-Os-Og-O1-O2-O3-O3 -march=native1. (CC) gcc options: -fno-strict-aliasing -fwrapv -pthread -lpgcommon -lpgport -lpq -lpthread -lrt -lcrypt -ldl -lm

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-O0-Os-Og-O1-O2-O3-O3 -march=native80160240320400SE +/- 4.48, N = 6SE +/- 4.13, N = 3SE +/- 5.68, N = 6SE +/- 5.58, N = 3SE +/- 2.06, N = 3SE +/- 2.78, N = 3SE +/- 1.70, N = 3303.93346.32353.15351.47363.87351.89349.97-O0-Os-Og-O1-O2-O3-O3 -march=native1. (CC) gcc options: -fno-strict-aliasing -fwrapv -pthread -lpgcommon -lpgport -lpq -lpthread -lrt -lcrypt -ldl -lm

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-O0-Os-Og-O1-O2-O3-O3 -march=native10002000300040005000SE +/- 21.91, N = 3SE +/- 27.80, N = 3SE +/- 54.29, N = 3SE +/- 67.44, N = 4SE +/- 19.05, N = 3SE +/- 40.24, N = 3SE +/- 66.74, N = 34840.764497.154538.184494.384494.084720.084539.62-O0-Os-Og-O1-O2-O3-O3 -march=native1. (CC) gcc options: -fno-strict-aliasing -fwrapv -pthread -lpgcommon -lpgport -lpq -lpthread -lrt -lcrypt -ldl -lm

Redis

Test: LPOP

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

Redis

Test: SADD

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

Redis

Test: LPUSH

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

Redis

Test: GET

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

Redis

Test: SET

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

Hierarchical INTegration

Test: FLOAT

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


Phoronix Test Suite v10.8.4