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

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 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-O0-Os-Og-O1-O2-O3-O3 -march=native-O3 -march=native -flto-Ofast -march=native46.74424.571736.02103731655.85715.589.349711082476295.97491891.31479934.92548655.63547091.88303.93545.514840.762565.94440.574468.972454.121407.021028.9513.8210.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.237.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.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.437.032019.618611.34309403432.8914517.9955.89182204144598935.85616016.48588019.67631191.87656696.79553.282517.37468.612519.721421.801050.058.32OpenBenchmarking.org

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

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

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

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

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

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

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

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

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: 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

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: 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: 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

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: 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

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

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:

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

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: 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:

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

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: 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: 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:

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


Phoronix Test Suite v10.8.4