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.

HTML result view exported from: https://openbenchmarking.org/result/1303255-FO-GCC48LLVM06&grw&rdt.

GCC 4.8 vs. LLVM Clang 3.3 SVN Compiler BenchmarkingProcessorMotherboardChipsetMemoryDiskGraphicsAudioNetworkOSKernelDesktopDisplay ServerDisplay DriverOpenGLCompilerFile-SystemScreen ResolutionGCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.2Intel Core i7 990X @ 3.47GHz (12 Cores)MSI X58M (MS-7593) v1.0Intel 5520/5500/X58 + ICH10R12288MB1000GB Western Digital WD1003FBYX-0NVIDIA GeForce 8400 GS 512MB (500/333MHz)Realtek ALC889Realtek RTL8111/8168BUbuntu 13.043.8.0-12-generic (x86_64)Unity 6.6.0X Server 1.13.2NVIDIA 313.263.3.0 NVIDIA 313.26GCC 4.7ext41920x1080GCC 4.7.2Clang 3.3 (SVN 177878) + LLVM 3.3svnClang 3.2 + LLVM 3.2svnOpenBenchmarking.orgCompiler Details- GCC 4.8.0: --build=x86_64-linux-gnu --disable-cloog-version-check --disable-ppl-version-check --disable-werror --enable-checking=release --enable-clocale=gnu --enable-cloog-backend=ppl --enable-gnu-unique-object --enable-languages=c,c++,go,fortran,objc,obj-c++ --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-multiarch --enable-nls --enable-objc-gc --enable-plugin --enable-shared --enable-threads=posix --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-abi=m64 --with-arch-32=i686 --with-cloog --with-multilib-list=m32,m64,mx32 --with-tune=generic -v - GCC 4.7.2: --enable-checking=release --enable-languages=c,c++,fortran --enable-lto- LLVM Clang 3.3 SVN: Optimized build; Built Mar 25 2013 (12:54:43); Default target: x86_64-unknown-linux-gnu; Host CPU: corei7- LLVM Clang 3.2: Optimized build; Built Mar 25 2013 (15:48:44); Default target: x86_64-unknown-linux-gnu; Host CPU: corei7Processor Details- Scaling Governor: ondemandOpenCL Details- GCC 4.8.0: GPU Compute Cores: 8System Details- GCC 4.8.0: GPU Compute Cores: 8.

GCC 4.8 vs. LLVM Clang 3.3 SVN Compiler Benchmarkingminion: Gracefulminion: Solitaireminion: Quasigroupblake2: Phoronix Test Suite v4.4.1botan: Tigerbotan: KASUMIbotan: AES-256botan: Twofishbotan: CAST-256botan: X9.19-MACencode-flac: WAV To FLACencode-mp3: WAV To MP3mafft: Multiple Sequence Alignmenthimeno: Poisson Pressure Solverlammps: Rhodopsin Proteinn-queens: Elapsed Timebuild-imagemagick: Time To Compileprimesieve: 1e12 Prime Number Generationjohn-the-ripper: Blowfishjohn-the-ripper: Traditional DESjohn-the-ripper: MD5c-ray: Total Timeffmpeg: H.264 HD To NTSC DVsmallpt: Global Illumination Renderer; 100 SamplesGCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.272.40103.05153.936.16376.2637.91133.38172.7187.3776.196.9417.005.721337.1248.4629.6659.6766.797272123450003399618.8319.353271.58107.44157.815.96360.4339.35154.60175.1385.7177.126.9917.235.671527.0249.3628.8258.0566.6723.7819.063270.29114.74159.106.85381.8965.75144.74169.82109.4374.877.8816.836.131499.5041.36257.2124.79419.7690941056672858523.7419.3128571.84108.48156.366.77357.4039.34154.74175.1385.5676.777.9817.416.191487.3349.71257.2125.0366.5790141026672598723.7819.2431OpenBenchmarking.org

Minion

Benchmark: Graceful

OpenBenchmarking.orgSeconds, Fewer Is BetterMinion 0.15Benchmark: GracefulGCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.21632486480SE +/- 0.38, N = 3SE +/- 0.37, N = 3SE +/- 0.35, N = 3SE +/- 0.08, N = 372.4071.5870.2971.84-lz -lbz2-lz -lbz2-lz -lbz21. (CXX) g++ options: -O3 -fomit-frame-pointer -rdynamic -lboost_iostreams-mt

Minion

Benchmark: Solitaire

OpenBenchmarking.orgSeconds, Fewer Is BetterMinion 0.15Benchmark: SolitaireGCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.2306090120150SE +/- 0.82, N = 3SE +/- 0.76, N = 3SE +/- 0.68, N = 3SE +/- 0.76, N = 3103.05107.44114.74108.48-lz -lbz2-lz -lbz2-lz -lbz21. (CXX) g++ options: -O3 -fomit-frame-pointer -rdynamic -lboost_iostreams-mt

Minion

Benchmark: Quasigroup

OpenBenchmarking.orgSeconds, Fewer Is BetterMinion 0.15Benchmark: QuasigroupGCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.24080120160200SE +/- 0.44, N = 3SE +/- 0.19, N = 3SE +/- 0.55, N = 3SE +/- 0.42, N = 3153.93157.81159.10156.36-lz -lbz2-lz -lbz2-lz -lbz21. (CXX) g++ options: -O3 -fomit-frame-pointer -rdynamic -lboost_iostreams-mt

BLAKE2

Phoronix Test Suite v4.4.1

OpenBenchmarking.orgCycles Per Byte, Fewer Is BetterBLAKE2 20121223Phoronix Test Suite v4.4.1GCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.2246810SE +/- 0.00, N = 3SE +/- 0.03, N = 3SE +/- 0.05, N = 3SE +/- 0.01, N = 36.165.966.856.771. (CC) gcc options: -std=gnu99 -O3 -march=native

Botan

Test: Tiger

OpenBenchmarking.orgMbytes/s, More Is BetterBotan 1.10.3Test: TigerGCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.280160240320400376.26360.43381.89357.401. (CXX) g++ options: -m64 -ldl -lpthread -lrt

Botan

Test: KASUMI

OpenBenchmarking.orgMbytes/s, More Is BetterBotan 1.10.3Test: KASUMIGCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.2153045607537.9139.3565.7539.341. (CXX) g++ options: -m64 -ldl -lpthread -lrt

Botan

Test: AES-256

OpenBenchmarking.orgMbytes/s, More Is BetterBotan 1.10.3Test: AES-256GCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.2306090120150133.38154.60144.74154.741. (CXX) g++ options: -m64 -ldl -lpthread -lrt

Botan

Test: Twofish

OpenBenchmarking.orgMbytes/s, More Is BetterBotan 1.10.3Test: TwofishGCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.24080120160200172.71175.13169.82175.131. (CXX) g++ options: -m64 -ldl -lpthread -lrt

Botan

Test: CAST-256

OpenBenchmarking.orgMbytes/s, More Is BetterBotan 1.10.3Test: CAST-256GCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.22040608010087.3785.71109.4385.561. (CXX) g++ options: -m64 -ldl -lpthread -lrt

Botan

Test: X9.19-MAC

OpenBenchmarking.orgMbytes/s, More Is BetterBotan 1.10.3Test: X9.19-MACGCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.22040608010076.1977.1274.8776.771. (CXX) g++ options: -m64 -ldl -lpthread -lrt

FLAC Audio Encoding

WAV To FLAC

OpenBenchmarking.orgSeconds, Fewer Is BetterFLAC Audio Encoding 1.2.1WAV To FLACGCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.2246810SE +/- 0.01, N = 5SE +/- 0.01, N = 5SE +/- 0.01, N = 5SE +/- 0.02, N = 56.946.997.887.981. (CXX) g++ options: -O3 -march=native -logg -lm

LAME MP3 Encoding

WAV To MP3

OpenBenchmarking.orgSeconds, Fewer Is BetterLAME MP3 Encoding 3.99.3WAV To MP3GCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.248121620SE +/- 0.01, N = 5SE +/- 0.01, N = 5SE +/- 0.02, N = 5SE +/- 0.04, N = 517.0017.2316.8317.41

Timed MAFFT Alignment

Multiple Sequence Alignment

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed MAFFT Alignment 6.864Multiple Sequence AlignmentGCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.2246810SE +/- 0.10, N = 3SE +/- 0.09, N = 6SE +/- 0.13, N = 6SE +/- 0.06, N = 35.725.676.136.191. (CC) gcc options: -O3 -lm -lpthread

Himeno Benchmark

Poisson Pressure Solver

OpenBenchmarking.orgMFLOPS, More Is BetterHimeno Benchmark 3.0Poisson Pressure SolverGCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.230060090012001500SE +/- 5.16, N = 3SE +/- 2.54, N = 3SE +/- 2.56, N = 3SE +/- 2.43, N = 31337.121527.021499.501487.331. (CC) gcc options: -O3 -march=native

LAMMPS Molecular Dynamics Simulator

Test: Rhodopsin Protein

OpenBenchmarking.orgLoop Time, Fewer Is BetterLAMMPS Molecular Dynamics Simulator 1.0Test: Rhodopsin ProteinGCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.21122334455SE +/- 0.14, N = 3SE +/- 0.18, N = 3SE +/- 0.09, N = 3SE +/- 0.07, N = 348.4649.3641.3649.711. (CXX) g++ options: -lfftw -lmpich

N-Queens

Elapsed Time

OpenBenchmarking.orgSeconds, Fewer Is BetterN-Queens 1.0Elapsed TimeGCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.260120180240300SE +/- 0.13, N = 3SE +/- 0.02, N = 3SE +/- 0.05, N = 3SE +/- 0.04, N = 329.6628.82257.21257.211. (CC) gcc options: -static -fopenmp -O3 -march=native

Timed ImageMagick Compilation

Time To Compile

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed ImageMagick Compilation 6.8.1-10Time To CompileGCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.21326395265SE +/- 0.12, N = 3SE +/- 0.07, N = 3SE +/- 0.10, N = 3SE +/- 0.11, N = 359.6758.0524.7925.03

Primesieve

1e12 Prime Number Generation

OpenBenchmarking.orgSeconds, Fewer Is BetterPrimesieve 4.21e12 Prime Number GenerationGCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.290180270360450SE +/- 0.02, N = 3SE +/- 0.01, N = 3SE +/- 0.45, N = 3SE +/- 0.04, N = 366.7966.67419.7666.57-fopenmp-fopenmp-fopenmp1. (CXX) g++ options: -O2

John The Ripper

Test: Blowfish

OpenBenchmarking.orgReal C/S, More Is BetterJohn The Ripper 1.7.9-jumbo-7Test: BlowfishGCC 4.8.0LLVM Clang 3.3 SVNLLVM Clang 3.216003200480064008000SE +/- 0.33, N = 3SE +/- 0.67, N = 3SE +/- 1.76, N = 372729099011. (CC) gcc options: -lssl -lcrypto -lm -lz -fopenmp -lcrypt -ldl

John The Ripper

Test: Traditional DES

OpenBenchmarking.orgReal C/S, More Is BetterJohn The Ripper 1.7.9-jumbo-7Test: Traditional DESGCC 4.8.0LLVM Clang 3.3 SVNLLVM Clang 3.23M6M9M12M15MSE +/- 41000.00, N = 3SE +/- 6691.62, N = 3SE +/- 1855.92, N = 312345000410566741026671. (CC) gcc options: -lssl -lcrypto -lm -lz -fopenmp -lcrypt -ldl

John The Ripper

Test: MD5

OpenBenchmarking.orgReal C/S, More Is BetterJohn The Ripper 1.7.9-jumbo-7Test: MD5GCC 4.8.0LLVM Clang 3.3 SVNLLVM Clang 3.27K14K21K28K35KSE +/- 31.75, N = 3SE +/- 75.88, N = 3SE +/- 52.07, N = 33399628585259871. (CC) gcc options: -lssl -lcrypto -lm -lz -fopenmp -lcrypt -ldl

C-Ray

Total Time

OpenBenchmarking.orgSeconds, Fewer Is BetterC-Ray 1.1Total TimeGCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.2612182430SE +/- 0.00, N = 3SE +/- 0.01, N = 3SE +/- 0.02, N = 3SE +/- 0.01, N = 318.8323.7823.7423.781. (CC) gcc options: -lm -lpthread -O3 -march=native

FFmpeg

H.264 HD To NTSC DV

OpenBenchmarking.orgSeconds, Fewer Is BetterFFmpeg 1.1H.264 HD To NTSC DVGCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.2510152025SE +/- 0.18, N = 3SE +/- 0.07, N = 3SE +/- 0.19, N = 3SE +/- 0.04, N = 319.3519.0619.3119.241. (CC) gcc options: -lavdevice -lavfilter -lavformat -lavcodec -lswresample -lswscale -lavutil -ldl -lasound -lSDL -lm -pthread -lbz2

Smallpt

Global Illumination Renderer; 100 Samples

OpenBenchmarking.orgSeconds, Fewer Is BetterSmallpt 1.0Global Illumination Renderer; 100 SamplesGCC 4.8.0GCC 4.7.2LLVM Clang 3.3 SVNLLVM Clang 3.260120180240300SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 33232285311. (CXX) g++ options: -fopenmp -O3 -march=native


Phoronix Test Suite v10.8.5