GCC 4.8 vs. LLVM Clang 3.3 SVN Compiler Benchmarking GCC 4.7.2 versus GCC 4.8.0 versus LLVM Clang 3.2 versus LLVM Clang 3.3 SVN compiler benchmarking from an Intel Core i7 990X Gulftown system running Ubuntu 13.04 Linux. Compiler GCC benchmarks for a future article on Phoronix.com. GCC 4.8.0: Processor: Intel Core i7 990X @ 3.47GHz (12 Cores), Motherboard: MSI X58M (MS-7593) v1.0, Chipset: Intel 5520/5500/X58 + ICH10R, Memory: 12288MB, Disk: 1000GB Western Digital WD1003FBYX-0, Graphics: NVIDIA GeForce 8400 GS 512MB (500/333MHz), Audio: Realtek ALC889, Network: Realtek RTL8111/8168B OS: Ubuntu 13.04, Kernel: 3.8.0-12-generic (x86_64), Desktop: Unity 6.6.0, Display Server: X Server 1.13.2, Display Driver: NVIDIA 313.26, OpenGL: 3.3.0 NVIDIA 313.26, Compiler: GCC 4.7, File-System: ext4, Screen Resolution: 1920x1080 GCC 4.7.2: Processor: Intel Core i7 990X @ 3.47GHz (12 Cores), Motherboard: MSI X58M (MS-7593) v1.0, Chipset: Intel 5520/5500/X58 + ICH10R, Memory: 12288MB, Disk: 1000GB Western Digital WD1003FBYX-0, Graphics: NVIDIA GeForce 8400 GS 512MB (500/333MHz), Audio: Realtek ALC889, Network: Realtek RTL8111/8168B OS: Ubuntu 13.04, Kernel: 3.8.0-12-generic (x86_64), Desktop: Unity 6.6.0, Display Server: X Server 1.13.2, Display Driver: NVIDIA 313.26, OpenGL: 3.3.0 NVIDIA 313.26, Compiler: GCC 4.7.2, File-System: ext4, Screen Resolution: 1920x1080 LLVM Clang 3.3 SVN: Processor: Intel Core i7 990X @ 3.47GHz (12 Cores), Motherboard: MSI X58M (MS-7593) v1.0, Chipset: Intel 5520/5500/X58 + ICH10R, Memory: 12288MB, Disk: 1000GB Western Digital WD1003FBYX-0, Graphics: NVIDIA GeForce 8400 GS 512MB (500/333MHz), Audio: Realtek ALC889, Network: Realtek RTL8111/8168B OS: Ubuntu 13.04, Kernel: 3.8.0-12-generic (x86_64), Desktop: Unity 6.6.0, Display Server: X Server 1.13.2, Display Driver: NVIDIA 313.26, OpenGL: 3.3.0 NVIDIA 313.26, Compiler: Clang 3.3 (SVN 177878) + LLVM 3.3svn, File-System: ext4, Screen Resolution: 1920x1080 LLVM Clang 3.2: Processor: Intel Core i7 990X @ 3.47GHz (12 Cores), Motherboard: MSI X58M (MS-7593) v1.0, Chipset: Intel 5520/5500/X58 + ICH10R, Memory: 12288MB, Disk: 1000GB Western Digital WD1003FBYX-0, Graphics: NVIDIA GeForce 8400 GS 512MB (500/333MHz), Audio: Realtek ALC889, Network: Realtek RTL8111/8168B OS: Ubuntu 13.04, Kernel: 3.8.0-12-generic (x86_64), Desktop: Unity 6.6.0, Display Server: X Server 1.13.2, Display Driver: NVIDIA 313.26, OpenGL: 3.3.0 NVIDIA 313.26, Compiler: Clang 3.2 + LLVM 3.2svn, File-System: ext4, Screen Resolution: 1920x1080 N-Queens 1.0 Elapsed Time Seconds < Lower Is Better GCC 4.8.0 .......... 29.66 |====== GCC 4.7.2 .......... 28.82 |====== LLVM Clang 3.3 SVN . 257.21 |================================================== LLVM Clang 3.2 ..... 257.21 |================================================== Minion 0.15 Benchmark: Quasigroup Seconds < Lower Is Better GCC 4.8.0 .......... 153.93 |================================================ GCC 4.7.2 .......... 157.81 |================================================== LLVM Clang 3.3 SVN . 159.10 |================================================== LLVM Clang 3.2 ..... 156.36 |================================================= Minion 0.15 Benchmark: Solitaire Seconds < Lower Is Better GCC 4.8.0 .......... 103.05 |============================================= GCC 4.7.2 .......... 107.44 |=============================================== LLVM Clang 3.3 SVN . 114.74 |================================================== LLVM Clang 3.2 ..... 108.48 |=============================================== Minion 0.15 Benchmark: Graceful Seconds < Lower Is Better GCC 4.8.0 .......... 72.40 |=================================================== GCC 4.7.2 .......... 71.58 |================================================== LLVM Clang 3.3 SVN . 70.29 |================================================== LLVM Clang 3.2 ..... 71.84 |=================================================== FFmpeg 1.1 H.264 HD To NTSC DV Seconds < Lower Is Better GCC 4.8.0 .......... 19.35 |=================================================== GCC 4.7.2 .......... 19.06 |================================================== LLVM Clang 3.3 SVN . 19.31 |=================================================== LLVM Clang 3.2 ..... 19.24 |=================================================== LAME MP3 Encoding 3.99.3 WAV To MP3 Seconds < Lower Is Better GCC 4.8.0 .......... 17.00 |================================================== GCC 4.7.2 .......... 17.23 |================================================== LLVM Clang 3.3 SVN . 16.83 |================================================= LLVM Clang 3.2 ..... 17.41 |=================================================== FLAC Audio Encoding 1.2.1 WAV To FLAC Seconds < Lower Is Better GCC 4.8.0 .......... 6.94 |============================================= GCC 4.7.2 .......... 6.99 |============================================== LLVM Clang 3.3 SVN . 7.88 |=================================================== LLVM Clang 3.2 ..... 7.98 |==================================================== Smallpt 1.0 Global Illumination Renderer; 100 Samples Seconds < Lower Is Better GCC 4.8.0 .......... 32 |====== GCC 4.7.2 .......... 32 |====== LLVM Clang 3.3 SVN . 285 |===================================================== LLVM Clang 3.2 ..... 31 |====== Primesieve 4.2 1e12 Prime Number Generation Seconds < Lower Is Better GCC 4.8.0 .......... 66.79 |======== GCC 4.7.2 .......... 66.67 |======== LLVM Clang 3.3 SVN . 419.76 |================================================== LLVM Clang 3.2 ..... 66.57 |======== C-Ray 1.1 Total Time Seconds < Lower Is Better GCC 4.8.0 .......... 18.83 |======================================== GCC 4.7.2 .......... 23.78 |=================================================== LLVM Clang 3.3 SVN . 23.74 |=================================================== LLVM Clang 3.2 ..... 23.78 |=================================================== Timed ImageMagick Compilation 6.8.1-10 Time To Compile Seconds < Lower Is Better GCC 4.8.0 .......... 59.67 |=================================================== GCC 4.7.2 .......... 58.05 |================================================== LLVM Clang 3.3 SVN . 24.79 |===================== LLVM Clang 3.2 ..... 25.03 |===================== Himeno Benchmark 3.0 Poisson Pressure Solver MFLOPS > Higher Is Better GCC 4.8.0 .......... 1337.12 |=========================================== GCC 4.7.2 .......... 1527.02 |================================================= LLVM Clang 3.3 SVN . 1499.50 |================================================ LLVM Clang 3.2 ..... 1487.33 |================================================ John The Ripper 1.7.9-jumbo-7 Test: MD5 Real C/S > Higher Is Better GCC 4.8.0 .......... 33996 |=================================================== LLVM Clang 3.3 SVN . 28585 |=========================================== LLVM Clang 3.2 ..... 25987 |======================================= John The Ripper 1.7.9-jumbo-7 Test: Traditional DES Real C/S > Higher Is Better GCC 4.8.0 .......... 12345000 |================================================ LLVM Clang 3.3 SVN . 4105667 |================ LLVM Clang 3.2 ..... 4102667 |================ John The Ripper 1.7.9-jumbo-7 Test: Blowfish Real C/S > Higher Is Better GCC 4.8.0 .......... 7272 |==================================================== LLVM Clang 3.3 SVN . 909 |======= LLVM Clang 3.2 ..... 901 |====== Botan 1.10.3 Test: X9.19-MAC Mbytes/s > Higher Is Better GCC 4.8.0 .......... 76.19 |================================================== GCC 4.7.2 .......... 77.12 |=================================================== LLVM Clang 3.3 SVN . 74.87 |================================================== LLVM Clang 3.2 ..... 76.77 |=================================================== Botan 1.10.3 Test: CAST-256 Mbytes/s > Higher Is Better GCC 4.8.0 .......... 87.37 |======================================== GCC 4.7.2 .......... 85.71 |======================================= LLVM Clang 3.3 SVN . 109.43 |================================================== LLVM Clang 3.2 ..... 85.56 |======================================= Botan 1.10.3 Test: Twofish Mbytes/s > Higher Is Better GCC 4.8.0 .......... 172.71 |================================================= GCC 4.7.2 .......... 175.13 |================================================== LLVM Clang 3.3 SVN . 169.82 |================================================ LLVM Clang 3.2 ..... 175.13 |================================================== Botan 1.10.3 Test: AES-256 Mbytes/s > Higher Is Better GCC 4.8.0 .......... 133.38 |=========================================== GCC 4.7.2 .......... 154.60 |================================================== LLVM Clang 3.3 SVN . 144.74 |=============================================== LLVM Clang 3.2 ..... 154.74 |================================================== Botan 1.10.3 Test: KASUMI Mbytes/s > Higher Is Better GCC 4.8.0 .......... 37.91 |============================= GCC 4.7.2 .......... 39.35 |=============================== LLVM Clang 3.3 SVN . 65.75 |=================================================== LLVM Clang 3.2 ..... 39.34 |=============================== Botan 1.10.3 Test: Tiger Mbytes/s > Higher Is Better GCC 4.8.0 .......... 376.26 |================================================= GCC 4.7.2 .......... 360.43 |=============================================== LLVM Clang 3.3 SVN . 381.89 |================================================== LLVM Clang 3.2 ..... 357.40 |=============================================== BLAKE2 20121223 Phoronix Test Suite v4.4.1 Cycles Per Byte < Lower Is Better GCC 4.8.0 .......... 6.16 |=============================================== GCC 4.7.2 .......... 5.96 |============================================= LLVM Clang 3.3 SVN . 6.85 |==================================================== LLVM Clang 3.2 ..... 6.77 |=================================================== Timed MAFFT Alignment 6.864 Multiple Sequence Alignment Seconds < Lower Is Better GCC 4.8.0 .......... 5.72 |================================================ GCC 4.7.2 .......... 5.67 |================================================ LLVM Clang 3.3 SVN . 6.13 |=================================================== LLVM Clang 3.2 ..... 6.19 |==================================================== LAMMPS Molecular Dynamics Simulator 1.0 Test: Rhodopsin Protein Loop Time < Lower Is Better GCC 4.8.0 .......... 48.46 |================================================== GCC 4.7.2 .......... 49.36 |=================================================== LLVM Clang 3.3 SVN . 41.36 |========================================== LLVM Clang 3.2 ..... 49.71 |===================================================