Intel Xeon E3-1280 v5 testing with a MSI C236A WORKSTATION. GCC versus LLVM Clang compiler optimization CFLAGS/CXXFLAGS benchmarks by Michael Larabel for a future article on Phoronix.
Compare your own system(s) to this result file with the
Phoronix Test Suite by running the command:
phoronix-test-suite benchmark 1602297-GA-SKYLAKEXE76
Skylake Xeon GCC vs. Clang Compiler Optimization Tests,
"C-Ray 1.1 - Total Time",
Lower Results Are Better
"GCC: -O0",61.542,61.488,61.552
"GCC: -O1",43.156,43.153,43.143
"GCC: -O2",38.178,38.213,38.17
"GCC: -O2 -march=native",27.83,27.823,27.827
"GCC: -O3",19.651,19.642,19.65
"GCC: -O3 -march=native",14.581,14.566,14.645
"GCC: -Ofast -march=native",13.895,13.897,13.981
"Clang: -O0",57.108,57.019,57.137
"Clang: -O1",32.343,32.349,32.336
"Clang: -O2",37.286,37.302,37.27
"Clang: -O2 -march=native",36.225,36.301,36.135
"Clang: -O3",25.613,25.588,25.633
"Clang: -O3 -march=native",25.187,25.202,25.205
"Clang: -Ofast -march=native",20.576,20.635,20.697
"FLAC Audio Encoding 1.3.1 - WAV To FLAC",
Lower Results Are Better
"GCC: -O0",37.446130037308,37.403430938721,37.568645000458,37.483945846558,37.918853998184
"GCC: -O1",5.9802210330963,5.9465010166168,5.9437189102173,5.983598947525,5.9725840091705
"GCC: -O2",5.228080034256,5.2387099266052,5.1716589927673,5.2504370212555,5.2011668682098
"GCC: -O2 -march=native",4.8735330104828,4.884290933609,4.866681098938,4.8638091087341,4.8646819591522
"GCC: -O3",5.0530409812927,5.0941231250763,5.1639578342438,5.0740261077881,5.0994670391083
"GCC: -O3 -march=native",4.8756041526794,4.8695111274719,4.9078240394592,4.9042909145355,4.8649220466614
"GCC: -Ofast -march=native",4.9021348953247,4.8713319301605,4.8733510971069,4.9128038883209,4.8901929855347
"Clang: -O0",47.741533994675,47.77607011795,47.715852022171,48.413076162338,48.108902931213
"Clang: -O1",6.97829413414,6.9495499134064,6.967677116394,6.9693548679352,6.9835548400879
"Clang: -O2",6.6667311191559,6.6831469535828,6.6410109996796,6.6339960098267,6.6685118675232
"Clang: -O2 -march=native",5.2675399780273,5.2296259403229,5.2801671028137,5.251739025116,5.2501738071442
"Clang: -O3",6.6945149898529,6.6383149623871,6.6393308639526,6.6873791217804,6.8760669231415
"Clang: -O3 -march=native",5.1325919628143,5.0857610702515,5.1724050045013,5.0848622322083,5.0981829166412
"Clang: -Ofast -march=native",5.0458519458771,5.0447950363159,5.0688850879669,5.0515470504761,5.0460391044617
"GraphicsMagick 1.3.19 - Operation: Blur",
Higher Results Are Better
"GCC: -O0",107,107,107
"GCC: -O1",170,170,170
"GCC: -O2",169,169,169
"GCC: -O2 -march=native",173,173,173
"GCC: -O3",170,171,170
"GCC: -O3 -march=native",178,178,177
"GCC: -Ofast -march=native",177,177,177
"Clang: -O0",75,75,75
"Clang: -O1",150,150,150
"Clang: -O2",150,150,150
"Clang: -O2 -march=native",150,150,150
"Clang: -O3",150,150,150
"Clang: -O3 -march=native",153,153,154
"Clang: -Ofast -march=native",153,153,153
"GraphicsMagick 1.3.19 - Operation: HWB Color Space",
Higher Results Are Better
"GCC: -O0",136,136,136
"GCC: -O1",226,225,226
"GCC: -O2",213,213,214
"GCC: -O2 -march=native",229,228,228
"GCC: -O3",228,228,228
"GCC: -O3 -march=native",234,234,234
"GCC: -Ofast -march=native",238,237,237
"Clang: -O0",100,100,100
"Clang: -O1",192,192,192
"Clang: -O2",193,192,193
"Clang: -O2 -march=native",196,197,195
"Clang: -O3",192,192,192
"Clang: -O3 -march=native",197,195,197
"Clang: -Ofast -march=native",198,199,198
"GraphicsMagick 1.3.19 - Operation: Local Adaptive Thresholding",
Higher Results Are Better
"GCC: -O0",22,22,22
"GCC: -O1",92,92,92
"GCC: -O2",100,100,100
"GCC: -O2 -march=native",103,103,103
"GCC: -O3",103,103,103
"GCC: -O3 -march=native",104,104,104
"GCC: -Ofast -march=native",104,105,104
"Clang: -O0",22,22,22
"Clang: -O1",89,88,89
"Clang: -O2",100,100,100
"Clang: -O2 -march=native",99,100,99
"Clang: -O3",100,100,100
"Clang: -O3 -march=native",102,102,102
"Clang: -Ofast -march=native",101,101,100
"Hierarchical INTegration 1.0 - Test: FLOAT",
Higher Results Are Better
"GCC: -O0",127597743.57002,128031343.2388,126887159.61689
"GCC: -O1",295908581.24861,296022431.43843,295186580.04228
"GCC: -O2",368684574.31286,370730497.51345,371357789.83468
"GCC: -O2 -march=native",407251495.18624,409988950.39415,409474400.64408
"GCC: -O3",381545777.30616,380593199.66338,383018654.79311
"GCC: -O3 -march=native",407131898.0883,407080587.9252,408514782.2172
"GCC: -Ofast -march=native",391126756.08312,392944910.12673,393048087.39078
"Clang: -O0",129469565.34613,130138492.40436,129619870.51208
"Clang: -O1",335938455.76648,336071314.94067,335029874.66339
"Clang: -O2",389046866.79156,388229730.15219,386711864.26439
"Clang: -O2 -march=native",288566770.14903,289131940.72666,288706207.30731
"Clang: -O3",385323792.57383,386595203.39046,387861656.07331
"Clang: -O3 -march=native",297056108.75734,296701933.0539,296782215.91264
"Clang: -Ofast -march=native",294787809.1908,294926472.78134,295413190.12406
"Himeno Benchmark 3.0 - Poisson Pressure Solver",
Higher Results Are Better
"GCC: -O0",493.262812,496.189914,498.738858
"GCC: -O1",1293.100409,1298.62349,1316.776068
"GCC: -O2",2428.486271,2426.182343,2433.446535
"GCC: -O2 -march=native",2643.23575,2656.090087,2659.895283
"GCC: -O3",2489.598558,2479.897094,2485.928004
"GCC: -O3 -march=native",2665.624379,2713.100889,2691.017399
"GCC: -Ofast -march=native",2764.040112,2768.831534,2740.424318
"Clang: -O0",329.830189,316.652935,329.314067
"Clang: -O1",1929.758808,1925.728692,1937.681524
"Clang: -O2",2025.747511,2042.867656,2039.383939
"Clang: -O2 -march=native",1922.31298,1923.593747,1925.002109
"Clang: -O3",2004.790059,2001.251142,1999.273837
"Clang: -O3 -march=native",1933.965078,1973.920771,1980.243031
"Clang: -Ofast -march=native",2111.672906,2111.386532,2121.333823
"LAME MP3 Encoding 3.99.3 - WAV To MP3",
Lower Results Are Better
"GCC: -O0",30.420604944229,30.43243098259,30.367311000824,30.543096065521,30.758128881454
"GCC: -O1",13.253433942795,13.244172096252,13.256455898285,13.252731084824,13.245635986328
"GCC: -O2",12.958034038544,12.820628166199,12.951992034912,12.905155897141,12.884224891663
"GCC: -O2 -march=native",12.008570194244,11.981059074402,12.031846046448,11.983258008957,11.955112934113
"GCC: -O3",12.108366012573,12.125483036041,12.114546060562,12.061460018158,12.06924700737
"GCC: -O3 -march=native",10.635303974152,10.731034040451,10.725208997726,10.683273077011,10.667466878891
"GCC: -Ofast -march=native",9.4995121955872,9.5052001476288,9.5200650691986,9.4954121112823,9.5284631252289
"Clang: -O0",32.299617052078,32.008792161942,31.807649850845,31.84668803215,31.804883956909
"Clang: -O1",12.036646842957,12.025281906128,12.063665151596,12.040485143661,12.022018909454
"Clang: -O2",12.197418928146,12.148509025574,12.175018072128,12.188588857651,12.147582054138
"Clang: -O2 -march=native",12.103652000427,11.968370199203,12.006919145584,12.094293832779,11.962810993195
"Clang: -O3",12.110758781433,12.212459087372,12.165405035019,12.155737876892,12.145340919495
"Clang: -O3 -march=native",11.621417999268,11.637856960297,11.713804960251,11.641042947769,11.675213098526
"Clang: -Ofast -march=native",11.069869995117,11.078862905502,11.106332063675,11.136512041092,11.098670005798
"Redis 3.0.1 - Test: GET",
Higher Results Are Better
"GCC: -O0",1501501.5,1680672.25,1666666.62,1742160.25,1623376.62,1766784.5
"GCC: -O1",2487562.25,3003003,3257328.75,3289473.75,2506265.75,3174603.25
"GCC: -O2",2832861.25,3289473.75,2680965.25,3278688.5,2747252.75,3215434.25
"GCC: -O2 -march=native",3311258.5,2597402.75,3322259.25,3205128.25,2624671.75,2645502.75
"GCC: -O3",2958580,2906976.75,3236246,3184713.25,2583979.25,2590673.5
"GCC: -O3 -march=native",3225806.5,2638522.25,2932551.5,3311258.5,3267974,3322259.25
"GCC: -Ofast -march=native",3205128.25,2666666.75,3344481.75,3184713.25,2652519.75,3086419.75
"Clang: -O0",1858736.12,1876172.62,1858736.12
"Clang: -O1",3215434.25,2512562.75,3095975,3115264.75,3174603.25,3289473.75
"Clang: -O2",2777777.75,3164556.75,3134796.25,3039513.75,3144654.25,2512562.75
"Clang: -O2 -march=native",3115264.75,3048780.5,3144654.25
"Clang: -O3",3039513.75,2645502.75,3144654.25,3105590,3030303,2577319.5
"Clang: -O3 -march=native",3164556.75,3058104,2518891.5,2777777.75,3105590,2551020.5
"Clang: -Ofast -march=native",2941176.5,3125000,3184713.25,3164556.75,3086419.75
"Redis 3.0.1 - Test: SET",
Higher Results Are Better
"GCC: -O0",1160092.88,1191895.12,1270648,1133786.75,1197604.88,1180637.5
"GCC: -O1",2227171.5,2092050.25,2207505.5
"GCC: -O2",2053388.12,2164502,2192982.5
"GCC: -O2 -march=native",1968503.88,2277904.25,2202643.25,1908397,1988071.5,2114165
"GCC: -O3",2192982.5,2173913,2183406
"GCC: -O3 -march=native",1801801.75,2169197.5,2197802.25,2192982.5,2100840.25,2164502
"GCC: -Ofast -march=native",2262443.5,2232142.75,2237136.5
"Clang: -O0",1312335.88,1298701.38,1213592.25,1233045.62,1261034.12
"Clang: -O1",2016129.12,1700680.25,2178649.25,1706484.62,2096436.12,2169197.5
"Clang: -O2",1901140.62,2150537.5,2183406,2109704.5,2237136.5,2183406
"Clang: -O2 -march=native",2136752.25,2044989.75,2012072.38
"Clang: -O3",1760563.38,2247191,1763668.5,1915708.75,1972386.5,2114165
"Clang: -O3 -march=native",2183406,1805054.12,2074688.88,1956947.25,2100840.25,2105263.25
"Clang: -Ofast -march=native",2227171.5,1919385.75,2028397.62,2212389.5,2105263.25,1976284.62
"Timed Apache Compilation 2.4.7 - Time To Compile",
Lower Results Are Better
"GCC: -O0",11.151718139648,11.11262011528,10.986331939697
"GCC: -O1",17.09587597847,16.873412847519,17.032254934311
"GCC: -O2",23.152465105057,23.059528112411,23.155466079712
"GCC: -O2 -march=native",22.918359041214,22.702843904495,22.906233072281
"GCC: -O3",24.819980144501,24.862402915955,24.951698064804
"GCC: -O3 -march=native",25.090812921524,25.143580913544,25.272928953171
"GCC: -Ofast -march=native",25.22815489769,25.080439090729,25.181765794754
"Clang: -O0",10.818447828293,10.81206703186,11.163424015045
"Clang: -O1",18.798847913742,18.842406988144,18.91042304039
"Clang: -O2",22.320350885391,22.48645401001,22.280853033066
"Clang: -O2 -march=native",23.020397901535,23.112203121185,23.16517996788
"Clang: -O3",22.817938089371,22.769132852554,22.914597034454
"Clang: -O3 -march=native",23.154604911804,22.97030711174,23.080807924271
"Clang: -Ofast -march=native",23.206531047821,23.04988193512,23.205753087997
"Timed HMMer Search 2.3.2 - Pfam Database Search",
Lower Results Are Better
"GCC: -O0",26.917523860931,26.888136148453,26.85386800766
"GCC: -O1",8.8953540325165,8.8458321094513,8.8376159667969
"GCC: -O2",8.3532509803772,8.3340158462524,8.3605508804321
"GCC: -O2 -march=native",8.3513810634613,8.3231918811798,8.3627700805664
"GCC: -O3",8.1746718883514,8.1643259525299,8.1762640476227
"GCC: -O3 -march=native",8.2111160755157,8.1270439624786,8.1541149616241
"GCC: -Ofast -march=native",7.9984381198883,8.0038809776306,7.992486000061
"Clang: -O0",23.282157897949,23.216796875,23.196880102158
"Clang: -O1",8.9968950748444,8.9317021369934,8.9678590297699
"Clang: -O2",8.3173899650574,8.2798988819122,8.2658579349518
"Clang: -O2 -march=native",8.2908940315247,8.2587411403656,8.3095421791077
"Clang: -O3",8.5784389972687,8.3569631576538,8.2785089015961
"Clang: -O3 -march=native",8.3279871940613,8.2900049686432,8.2629959583282
"Clang: -Ofast -march=native",8.1382749080658,8.1173050403595,8.1119229793549
"Timed ImageMagick Compilation 6.9.0 - Time To Compile",
Lower Results Are Better
"GCC: -O0",12.161182880402,12.261912107468,12.281386852264
"GCC: -O1",24.885503053665,24.990010023117,25.014122009277
"GCC: -O2",39.672709941864,39.743437051773,39.603693008423
"GCC: -O2 -march=native",37.554174184799,37.645279884338,37.50706911087
"GCC: -O3",49.56046795845,49.752154111862,49.786115884781
"GCC: -O3 -march=native",48.920618057251,48.987669944763,49.000079870224
"GCC: -Ofast -march=native",49.694332122803,50.321640968323,49.941483974457
"Clang: -O0",9.6659688949585,9.8228209018707,9.8393120765686
"Clang: -O1",30.983469009399,31.170114994049,31.059018135071
"Clang: -O2",36.508517026901,36.448958158493,36.618348121643
"Clang: -O2 -march=native",38.768356084824,38.397952079773,38.174882173538
"Clang: -O3",49.346162796021,49.673955917358,49.740596055984
"Clang: -O3 -march=native",49.525367021561,49.686238050461,49.681106805801
"Clang: -Ofast -march=native",49.935836791992,50.218052148819,49.917012929916
"Timed PHP Compilation 5.2.9 - Time To Compile",
Lower Results Are Better
"GCC: -O0",7.2670750617981,7.2248170375824,7.3144948482513
"GCC: -O1",13.382426977158,13.297380924225,13.378568887711
"GCC: -O2",19.045227050781,19.177023887634,19.140027999878
"GCC: -O2 -march=native",18.616925954819,18.70720911026,18.724097013474
"GCC: -O3",21.193060874939,21.166826963425,21.256012201309
"GCC: -O3 -march=native",21.609662055969,21.703891992569,21.740832090378
"GCC: -Ofast -march=native",21.710510969162,21.7719810009,21.777326822281
"Clang: -O0",6.4263670444489,6.4414238929749,6.4625079631805
"Clang: -O1",13.567651033401,13.548300027847,13.610283851624
"Clang: -O2",16.955951929092,16.903797149658,17.010387897491
"Clang: -O2 -march=native",17.786791086197,18.050357818604,17.916199922562
"Clang: -O3",17.545888900757,17.637026071548,17.581779003143
"Clang: -O3 -march=native",17.970156908035,17.837136983871,17.896422863007
"Clang: -Ofast -march=native",17.962294816971,17.948871135712,17.934000015259