LLVM Clang 3.3, Clang 3.2, GCC 4.8 Compilers Benchmarking LLVM Clang 3.2, LLVM Clang 3.3 RC1, and GCC 4.8.0 on various Linux systems. Benchmarking by Michael Larabel for a future article on Phoronix.com.
HTML result view exported from: https://openbenchmarking.org/result/1305170-UT-LLVMCLANG75&grt&rdt .
Processor Motherboard Chipset Memory Disk Graphics Audio Monitor Network OS Kernel Desktop Display Server Display Driver OpenGL Compiler File-System Screen Resolution Intel Core i7 3960X AMD FX-8350 Intel Core i3 3217U Clang 3.2 GCC 4.8.0 Clang 3.3-rc1 Clang 3.2 Clang 3.3-rc1 GCC 4.8.0 Clang 3.3-rc1 Clang 3.2 GCC 4.8.0 Intel Core i7-3960X @ 3.30GHz (12 Cores) Intel DX79SI Intel Xeon E5/Core 8192MB 64GB OCZ VERTEX AMD Radeon HD 4650 512MB Realtek ALC892 DELL S2409W Intel 82579LM Gigabit Connection Ubuntu 13.04 3.8.0-19-generic (x86_64) Unity 7.0.0 X Server 1.13.3 radeon 7.1.0 3.0 Mesa 9.1.1 Gallium 0.4 Clang 3.2 + LLVM 3.2svn ext4 1920x1080 GCC 4.8.0 Clang 3.3 + LLVM 3.3svn AMD FX-8350 Eight-Core @ 4.00GHz (8 Cores) ASUS Crosshair V Formula AMD ATI RD890 bridge 60GB OCZ VERTEX2 AMD Radeon HD 4870 512MB Realtek ALC889 VA2431 Intel 82583V Gigabit Connection 3.0 Mesa 9.2.0 (git-a67b18e) Gallium 0.4 Clang 3.2 + LLVM 3.2svn Clang 3.3 + LLVM 3.3svn GCC 4.8.0 Intel Core i3-3217U @ 1.80GHz (4 Cores) ASUS K56CA v1.0 Intel 3rd Gen Core DRAM 4096MB 500GB Hitachi HTS54505 + 24GB SanDisk SSD i100 Intel 3rd Gen Core Realtek ALC270 Realtek RTL8111/8168 + Atheros AR9485 Wireless Ubuntu 13.10 3.10.0-999-generic (x86_64) intel 2.21.6 3.0 Mesa 9.2.0 (git-4f518e1) Clang 3.3 + LLVM 3.3svn 1366x768 Clang 3.2 + LLVM 3.2svn GCC 4.8.0 OpenBenchmarking.org Compiler Details - Intel Core i7 3960X: Clang 3.2: Optimized build; Built May 12 2013 (18:35:01); Default target: x86_64-unknown-linux-gnu; Host CPU: corei7-avx - Intel Core i7 3960X: GCC 4.8.0: --disable-multilib --enable-checking=release --enable-languages=c,c++ - Intel Core i7 3960X: Clang 3.3-rc1: Optimized build; Built May 12 2013 (23:22:45); Default target: x86_64-unknown-linux-gnu; Host CPU: corei7-avx - AMD FX-8350: Clang 3.2: Optimized build; Built May 14 2013 (10:55:50); Default target: x86_64-unknown-linux-gnu; Host CPU: bdver1 - AMD FX-8350: Clang 3.3-rc1: Optimized build; Built May 14 2013 (11:07:41); Default target: x86_64-unknown-linux-gnu; Host CPU: bdver1 - AMD FX-8350: GCC 4.8.0: --disable-multilib --enable-checking=release --enable-languages=c,c++ - Intel Core i3 3217U: Clang 3.3-rc1: Optimized build; Built May 17 2013 (00:03:18); Default target: x86_64-unknown-linux-gnu; Host CPU: core-avx-i - Intel Core i3 3217U: Clang 3.2: Optimized build; Built May 16 2013 (23:24:18); Default target: x86_64-unknown-linux-gnu; Host CPU: core-avx-i - Intel Core i3 3217U: GCC 4.8.0: --disable-multilib --enable-checking=release --enable-languages=c,c++ Processor Details - Scaling Governor: ondemand
apache: Static Web Page Serving blake2: Phoronix Test Suite v4.6.0m1 c-ray: Total Time ffmpeg: H.264 HD To NTSC DV graphics-magick: Blur graphics-magick: Sharpen graphics-magick: Resizing graphics-magick: HWB Color Space graphics-magick: Local Adaptive Thresholding himeno: Poisson Pressure Solver pgbench: TPC-B Transactions Per Second smallpt: Global Illumination Renderer; 100 Samples hmmer: Pfam Database Search build-imagemagick: Time To Compile mafft: Multiple Sequence Alignment build-php: Time To Compile Intel Core i7 3960X AMD FX-8350 Intel Core i3 3217U Clang 3.2 GCC 4.8.0 Clang 3.3-rc1 Clang 3.2 Clang 3.3-rc1 GCC 4.8.0 Clang 3.3-rc1 Clang 3.2 GCC 4.8.0 14267.94 5.52 21.05 18.35 82 31 89 124 44 1562.31 354.32 165 15.42 21.18 7.42 15.58 14318.97 5.00 18.41 18.09 143 117 175 192 133 1629.42 19 15.91 49.99 7.19 22.59 14662.33 5.50 20.81 18.43 81 31 89 123 49 1597.62 351.51 163 15.94 22.63 7.54 16.80 20186.40 9.63 32.87 20.42 64 23 73 105 38 650.02 2438.64 248 12.57 26.94 7.09 19.37 19950.55 9.80 32.80 20.30 64 22 73 104 37 667.68 2412.86 248 11.02 28.65 6.86 20.82 19810.73 8.99 19.26 20.35 116 112 148 159 99 731.99 33 11.52 102.92 6.42 31.17 12423.85 6.48 132.37 40 15 42 68 23 758.34 542.70 344 40.11 104.36 21.67 59.27 12063.12 6.48 133.72 34.45 40 15 42 69 21 781.12 521.66 341 48.17 97.07 23.88 57.64 11374.96 6.03 116.29 34.34 54 29 63 81 39 779.65 117 38.39 208.42 20.34 98.29 OpenBenchmarking.org
Apache Benchmark Static Web Page Serving Intel Core i7 3960X AMD FX-8350 Intel Core i3 3217U OpenBenchmarking.org Requests Per Second, More Is Better Apache Benchmark 2.4.3 Static Web Page Serving Clang 3.2 GCC 4.8.0 Clang 3.3-rc1 4K 8K 12K 16K 20K SE +/- 119.56, N = 3 SE +/- 176.48, N = 3 SE +/- 19.13, N = 3 SE +/- 302.76, N = 3 SE +/- 112.88, N = 3 SE +/- 54.62, N = 3 SE +/- 81.41, N = 3 SE +/- 180.33, N = 3 SE +/- 97.71, N = 3 14267.94 14318.97 14662.33 20186.40 19950.55 19810.73 12423.85 12063.12 11374.96 1. (CC) gcc options: -shared -fPIC -pthread -O3 -march=native
BLAKE2 Phoronix Test Suite v4.6.0m1 Intel Core i7 3960X AMD FX-8350 Intel Core i3 3217U OpenBenchmarking.org Cycles Per Byte, Fewer Is Better BLAKE2 20121223 Phoronix Test Suite v4.6.0m1 Clang 3.2 GCC 4.8.0 Clang 3.3-rc1 3 6 9 12 15 SE +/- 0.01, N = 3 SE +/- 0.00, N = 3 SE +/- 0.01, N = 3 SE +/- 0.01, N = 3 SE +/- 0.17, N = 3 SE +/- 0.01, N = 3 SE +/- 0.01, N = 3 SE +/- 0.00, N = 3 SE +/- 0.10, N = 4 5.52 5.00 5.50 9.63 9.80 8.99 6.48 6.48 6.03 1. (CC) gcc options: -std=gnu99 -O3 -march=native -lcrypto -lz
C-Ray Total Time Intel Core i7 3960X AMD FX-8350 Intel Core i3 3217U OpenBenchmarking.org Seconds, Fewer Is Better C-Ray 1.1 Total Time Clang 3.2 GCC 4.8.0 Clang 3.3-rc1 30 60 90 120 150 SE +/- 0.05, N = 3 SE +/- 0.03, N = 3 SE +/- 0.02, N = 3 SE +/- 0.02, N = 3 SE +/- 0.01, N = 3 SE +/- 0.01, N = 3 SE +/- 0.11, N = 3 SE +/- 0.03, N = 3 SE +/- 0.01, N = 3 21.05 18.41 20.81 32.87 32.80 19.26 132.37 133.72 116.29 1. (CC) gcc options: -lm -lpthread -O3 -march=native
FFmpeg H.264 HD To NTSC DV Intel Core i7 3960X AMD FX-8350 Intel Core i3 3217U OpenBenchmarking.org Seconds, Fewer Is Better FFmpeg 1.1 H.264 HD To NTSC DV Clang 3.2 GCC 4.8.0 Clang 3.3-rc1 8 16 24 32 40 SE +/- 0.12, N = 3 SE +/- 0.12, N = 3 SE +/- 0.18, N = 3 SE +/- 0.15, N = 3 SE +/- 0.08, N = 3 SE +/- 0.01, N = 3 SE +/- 0.03, N = 3 SE +/- 0.04, N = 3 18.35 18.09 18.43 20.42 20.30 20.35 34.45 34.34 1. (CC) gcc options: -lavdevice -lavfilter -lavformat -lavcodec -lswresample -lswscale -lavutil -ldl -lasound -lm -pthread -O3 -march=native -std=c99 -fomit-frame-pointer -fno-math-errno -fno-signed-zeros -MMD
GraphicsMagick Operation: Blur Intel Core i7 3960X AMD FX-8350 Intel Core i3 3217U OpenBenchmarking.org Iterations Per Minute, More Is Better GraphicsMagick 1.3.16 Operation: Blur Clang 3.2 GCC 4.8.0 Clang 3.3-rc1 30 60 90 120 150 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 82 143 81 64 64 116 40 40 54 1. (CC) gcc options: -O3 -march=native -pthread -lXext -lSM -lICE -lX11 -lz -lm -lpthread
GraphicsMagick Operation: Sharpen Intel Core i7 3960X AMD FX-8350 Intel Core i3 3217U OpenBenchmarking.org Iterations Per Minute, More Is Better GraphicsMagick 1.3.16 Operation: Sharpen Clang 3.2 GCC 4.8.0 Clang 3.3-rc1 30 60 90 120 150 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 31 117 31 23 22 112 15 15 29 1. (CC) gcc options: -O3 -march=native -pthread -lXext -lSM -lICE -lX11 -lz -lm -lpthread
GraphicsMagick Operation: Resizing Intel Core i7 3960X AMD FX-8350 Intel Core i3 3217U OpenBenchmarking.org Iterations Per Minute, More Is Better GraphicsMagick 1.3.16 Operation: Resizing Clang 3.2 GCC 4.8.0 Clang 3.3-rc1 40 80 120 160 200 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 SE +/- 0.33, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 89 175 89 73 73 148 42 42 63 1. (CC) gcc options: -O3 -march=native -pthread -lXext -lSM -lICE -lX11 -lz -lm -lpthread
GraphicsMagick Operation: HWB Color Space Intel Core i7 3960X AMD FX-8350 Intel Core i3 3217U OpenBenchmarking.org Iterations Per Minute, More Is Better GraphicsMagick 1.3.16 Operation: HWB Color Space Clang 3.2 GCC 4.8.0 Clang 3.3-rc1 40 80 120 160 200 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 SE +/- 0.33, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 124 192 123 105 104 159 68 69 81 1. (CC) gcc options: -O3 -march=native -pthread -lXext -lSM -lICE -lX11 -lz -lm -lpthread
GraphicsMagick Operation: Local Adaptive Thresholding Intel Core i7 3960X AMD FX-8350 Intel Core i3 3217U OpenBenchmarking.org Iterations Per Minute, More Is Better GraphicsMagick 1.3.16 Operation: Local Adaptive Thresholding Clang 3.2 GCC 4.8.0 Clang 3.3-rc1 30 60 90 120 150 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 44 133 49 38 37 99 23 21 39 1. (CC) gcc options: -O3 -march=native -pthread -lXext -lSM -lICE -lX11 -lz -lm -lpthread
Himeno Benchmark Poisson Pressure Solver Intel Core i7 3960X AMD FX-8350 Intel Core i3 3217U OpenBenchmarking.org MFLOPS, More Is Better Himeno Benchmark 3.0 Poisson Pressure Solver Clang 3.2 GCC 4.8.0 Clang 3.3-rc1 400 800 1200 1600 2000 SE +/- 4.41, N = 3 SE +/- 1.14, N = 3 SE +/- 1.53, N = 3 SE +/- 0.79, N = 3 SE +/- 0.11, N = 3 SE +/- 0.30, N = 3 SE +/- 0.37, N = 3 SE +/- 1.54, N = 3 SE +/- 0.50, N = 3 1562.31 1629.42 1597.62 650.02 667.68 731.99 758.34 781.12 779.65 1. (CC) gcc options: -O3 -march=native
PostgreSQL pgbench TPC-B Transactions Per Second Intel Core i7 3960X AMD FX-8350 Intel Core i3 3217U OpenBenchmarking.org TPS, More Is Better PostgreSQL pgbench 8.4.11 TPC-B Transactions Per Second Clang 3.2 Clang 3.3-rc1 500 1000 1500 2000 2500 SE +/- 0.80, N = 3 SE +/- 4.34, N = 3 SE +/- 36.10, N = 4 SE +/- 61.65, N = 6 SE +/- 7.11, N = 3 SE +/- 8.57, N = 4 354.32 351.51 2438.64 2412.86 542.70 521.66 1. (CC) gcc options: -O3 -march=native -fno-strict-aliasing -fwrapv -lpgport -lpq -lcrypt -ldl -lm
Smallpt Global Illumination Renderer; 100 Samples Intel Core i7 3960X AMD FX-8350 Intel Core i3 3217U OpenBenchmarking.org Seconds, Fewer Is Better Smallpt 1.0 Global Illumination Renderer; 100 Samples Clang 3.2 GCC 4.8.0 Clang 3.3-rc1 70 140 210 280 350 SE +/- 1.20, N = 3 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 SE +/- 0.58, N = 3 SE +/- 0.88, N = 3 SE +/- 0.33, N = 3 SE +/- 3.67, N = 3 SE +/- 0.33, N = 3 SE +/- 0.00, N = 3 165 19 163 248 248 33 344 341 117 1. (CXX) g++ options: -fopenmp -O3 -march=native
Timed HMMer Search Pfam Database Search Intel Core i7 3960X AMD FX-8350 Intel Core i3 3217U OpenBenchmarking.org Seconds, Fewer Is Better Timed HMMer Search 2.3.2 Pfam Database Search Clang 3.2 GCC 4.8.0 Clang 3.3-rc1 11 22 33 44 55 SE +/- 0.03, N = 3 SE +/- 0.01, N = 3 SE +/- 0.02, N = 3 SE +/- 0.11, N = 3 SE +/- 0.17, N = 3 SE +/- 0.20, N = 6 SE +/- 0.01, N = 3 SE +/- 0.06, N = 3 SE +/- 0.10, N = 3 15.42 15.91 15.94 12.57 11.02 11.52 40.11 48.17 38.39 1. (CC) gcc options: -O3 -march=native -pthread -lhmmer -lsquid -lm
Timed ImageMagick Compilation Time To Compile Intel Core i7 3960X AMD FX-8350 Intel Core i3 3217U OpenBenchmarking.org Seconds, Fewer Is Better Timed ImageMagick Compilation 6.8.1-10 Time To Compile Clang 3.2 GCC 4.8.0 Clang 3.3-rc1 50 100 150 200 250 SE +/- 0.19, N = 3 SE +/- 0.10, N = 3 SE +/- 0.06, N = 3 SE +/- 0.15, N = 3 SE +/- 0.05, N = 3 SE +/- 0.14, N = 3 SE +/- 0.11, N = 3 SE +/- 0.17, N = 3 SE +/- 0.14, N = 3 21.18 49.99 22.63 26.94 28.65 102.92 104.36 97.07 208.42
Timed MAFFT Alignment Multiple Sequence Alignment Intel Core i7 3960X AMD FX-8350 Intel Core i3 3217U OpenBenchmarking.org Seconds, Fewer Is Better Timed MAFFT Alignment 6.864 Multiple Sequence Alignment Clang 3.2 GCC 4.8.0 Clang 3.3-rc1 6 12 18 24 30 SE +/- 0.18, N = 6 SE +/- 0.07, N = 3 SE +/- 0.18, N = 6 SE +/- 0.15, N = 6 SE +/- 0.05, N = 3 SE +/- 0.11, N = 4 SE +/- 0.13, N = 3 SE +/- 0.06, N = 3 SE +/- 0.09, N = 3 7.42 7.19 7.54 7.09 6.86 6.42 21.67 23.88 20.34 1. (CC) gcc options: -O3 -lm -lpthread
Timed PHP Compilation Time To Compile Intel Core i7 3960X AMD FX-8350 Intel Core i3 3217U OpenBenchmarking.org Seconds, Fewer Is Better Timed PHP Compilation 5.2.9 Time To Compile Clang 3.2 GCC 4.8.0 Clang 3.3-rc1 20 40 60 80 100 SE +/- 0.05, N = 3 SE +/- 0.12, N = 3 SE +/- 0.10, N = 3 SE +/- 0.12, N = 3 SE +/- 0.06, N = 3 SE +/- 0.02, N = 3 SE +/- 0.13, N = 3 SE +/- 0.34, N = 3 SE +/- 0.32, N = 3 15.58 22.59 16.80 19.37 20.82 31.17 59.27 57.64 98.29 1. (CC) gcc options: -O3 -march=native -pedantic -ldl -lz -lm
Phoronix Test Suite v10.8.5