LLVM Clang 3.1 GCC 4.7 Intel Core i7 Benchmarks

Benchmarking of GCC 4.6.3, GCC 4.7.0, LLVM Clang 3.0, and LLVM Clang 3.1 SVN compilers for a future article on Phoronix.com. Compilers built all test binaries with CFLAGS/CXXFLAGS of -O3 -march=native from this Intel Core i7 Clarksfield notebook. Ubuntu 12.04 LTS x86_64 was used with the Linux 3.2 kernel.

HTML result view exported from: https://openbenchmarking.org/result/1204215-SU-LLVMCLANG23&grr.

LLVM Clang 3.1 GCC 4.7 Intel Core i7 BenchmarksProcessorMotherboardChipsetMemoryDiskGraphicsAudioNetworkOSKernelDesktopDisplay ServerDisplay DriverOpenGLCompilerFile-SystemScreen ResolutionGCC 4.6.3GCC 4.7.0LLVM-Clang 3.0LLVM-Clang 3.1 SVNOpen64 5.0Intel Core i7 720Q @ 1.60GHz (8 Cores)LENOVO 4318CTOIntel Core DMI4096MB160GB INTEL SSDSA2M160NVIDIA Quadro FX 880M 1024MB (405/324MHz)Conexant CX20585Intel 82577LM Gigabit Connection + Intel Centrino Ultimate-N 6300Ubuntu 12.043.4.0-999-generic (x86_64)Unity 5.10.0X Server 1.11.3nouveau 0.0.162.1 Mesa 8.0.2 Gallium 0.4GCC 4.6.3ext41600x900GCC 4.7.0Clang 3.0 + LLVM 3.0Clang 3.1 (SVN 155295) + LLVM 3.1svnOpen64 5.0OpenBenchmarking.orgCompiler Details- GCC 4.6.3: --enable-checking=release --enable-languages=c,c++ --enable-lto- GCC 4.7.0: --enable-checking=release --enable-languages=c,c++ --enable-lto- LLVM-Clang 3.0: Optimized build; Built Apr 21 2012 (12:40:14); Host: x86_64-unknown-linux-gnu; Host CPU: corei7- LLVM-Clang 3.1 SVN: Optimized build; Built Apr 21 2012 (14:54:30); Default target: x86_64-unknown-linux-gnu; Host CPU: corei7Processor Details- Scaling Governor: ondemandSystem Details- Compiz was running on this system.

LLVM Clang 3.1 GCC 4.7 Intel Core i7 Benchmarksapache: Static Web Page Servingnginx: Static Web Page Servingpgbench: TPC-B Transactions Per Secondopenssl: RSA 4096-bit Performancetachyon: Total Timenero2d: Total Timeminion: Quasigroupminion: Solitaireminion: Gracefulminion: Bibdffmpeg: AVI To NTSC VCDencode-mp3: WAV To MP3encode-flac: WAV To FLACcrafty: Elapsed Timesmallpt: Global Illumination Renderer; 100 Samplescompress-pbzip2: 256MB File Compressionc-ray: Total Timebuild-php: Time To Compilecompress-7zip: Compress Speed Testhimeno: Poisson Pressure Solverx264: H.264 Video Encodingvpxenc: vpxencttsiod-renderer: Phong Rendering With Soft-Shadow Mappingjohn-the-ripper: Blowfishbyte: Dhrystone 2fhourstones: Complex Connect-4 Solvinggmpbench: Total Timemrbayes: Primate Phylogeny Analysismafft: Multiple Sequence Alignmenthmmer: Pfam Database Searchffte: N=64, 1D Complex FFT RoutineGCC 4.6.3GCC 4.7.0LLVM-Clang 3.0LLVM-Clang 3.1 SVNOpen64 5.014290.9915482.082375.1842.2336.05640.17255.83203.00111.35206.6715.8723.589.97109.886919.34139.0150.4288491060.5958.469.9363.32221518737961.278643.40173937.0713.7326.523276.1914322.0514956.302405.9142.0837.21638.60253.16211.57122.41217.3415.7323.109.32108.296822.3091.1854.7488901142.9758.269.7659.50221118075520.178631.431751.2032.3813.6026.633156.9214867.1015559.96277.69224.90110.30223.86234118.2091081002.8716.1433.023270.1914834.6615767.212426.9142.0836.17262.50217.96110.04219.5816.0923.8110.85107.8525123.21109.1147.4991661053.299.076628551.9040.0914.7332.633197.683267.81OpenBenchmarking.org

Apache Benchmark

Static Web Page Serving

OpenBenchmarking.orgRequests Per Second, More Is BetterApache Benchmark 2.2.21Static Web Page ServingGCC 4.6.3GCC 4.7.0LLVM-Clang 3.0LLVM-Clang 3.1 SVN3K6K9K12K15KSE +/- 14.58, N = 3SE +/- 59.62, N = 3SE +/- 62.06, N = 3SE +/- 131.26, N = 314290.9914322.0514867.1014834.661. (CC) gcc options: -pthread -O3 -march=native -lm -lexpat -lrt -lcrypt -lpthread -ldl

NGINX Benchmark

Static Web Page Serving

OpenBenchmarking.orgRequests Per Second, More Is BetterNGINX Benchmark 1.0.11Static Web Page ServingGCC 4.6.3GCC 4.7.0LLVM-Clang 3.0LLVM-Clang 3.1 SVN3K6K9K12K15KSE +/- 89.02, N = 3SE +/- 54.72, N = 3SE +/- 184.13, N = 3SE +/- 141.05, N = 315482.0814956.3015559.9615767.211. (CC) gcc options: -lpthread -lcrypt -lcrypto -lz

PostgreSQL pgbench

TPC-B Transactions Per Second

OpenBenchmarking.orgTPS, More Is BetterPostgreSQL pgbench 8.4.11TPC-B Transactions Per SecondGCC 4.6.3GCC 4.7.0LLVM-Clang 3.1 SVN5001000150020002500SE +/- 12.24, N = 3SE +/- 10.83, N = 3SE +/- 16.75, N = 32375.182405.912426.911. (CC) gcc options: -O3 -march=native -fno-strict-aliasing -fwrapv -lpgport -lpq -lcrypt -ldl -lm

OpenSSL

RSA 4096-bit Performance

OpenBenchmarking.orgSigns Per Second, More Is BetterOpenSSL 1.0.0eRSA 4096-bit PerformanceGCC 4.6.3GCC 4.7.0LLVM-Clang 3.1 SVN1020304050SE +/- 0.10, N = 4SE +/- 0.03, N = 4SE +/- 0.05, N = 442.2342.0842.081. (CC) gcc options: -m64 -O3 -lssl -lcrypto -ldl

Tachyon

Total Time

OpenBenchmarking.orgSeconds, Fewer Is BetterTachyon 0.98.9Total TimeGCC 4.6.3GCC 4.7.0LLVM-Clang 3.1 SVN918273645SE +/- 0.02, N = 3SE +/- 0.02, N = 3SE +/- 0.02, N = 336.0537.2136.171. (CC) gcc options: -m32 -O3 -fomit-frame-pointer -ffast-math -ltachyon -lm -lpthread

Open FMM Nero2D

Total Time

OpenBenchmarking.orgSeconds, Fewer Is BetterOpen FMM Nero2D 2.0.2Total TimeGCC 4.6.3GCC 4.7.0140280420560700640.17638.601. (CXX) g++ options: -O3 -march=native -lfftw3 -llapack -lblas -lgfortran -lm

Minion

Benchmark: Quasigroup

OpenBenchmarking.orgSeconds, Fewer Is BetterMinion 0.12Benchmark: QuasigroupGCC 4.6.3GCC 4.7.0LLVM-Clang 3.0LLVM-Clang 3.1 SVN60120180240300SE +/- 0.25, N = 3SE +/- 0.04, N = 3SE +/- 0.27, N = 3SE +/- 0.21, N = 3255.83253.16277.69262.50-mdynamic-no-pic -lz -lbz2-mdynamic-no-pic -lz -lbz21. (CXX) g++ options: -O3 -fomit-frame-pointer -rdynamic -lboost_iostreams-mt

Minion

Benchmark: Solitaire

OpenBenchmarking.orgSeconds, Fewer Is BetterMinion 0.12Benchmark: SolitaireGCC 4.6.3GCC 4.7.0LLVM-Clang 3.0LLVM-Clang 3.1 SVN50100150200250SE +/- 0.36, N = 3SE +/- 0.22, N = 3SE +/- 0.44, N = 3SE +/- 0.41, N = 3203.00211.57224.90217.96-mdynamic-no-pic -lz -lbz2-mdynamic-no-pic -lz -lbz21. (CXX) g++ options: -O3 -fomit-frame-pointer -rdynamic -lboost_iostreams-mt

Minion

Benchmark: Graceful

OpenBenchmarking.orgSeconds, Fewer Is BetterMinion 0.12Benchmark: GracefulGCC 4.6.3GCC 4.7.0LLVM-Clang 3.0LLVM-Clang 3.1 SVN306090120150SE +/- 0.27, N = 3SE +/- 0.33, N = 3SE +/- 0.08, N = 3SE +/- 0.31, N = 3111.35122.41110.30110.04-mdynamic-no-pic -lz -lbz2-mdynamic-no-pic -lz -lbz21. (CXX) g++ options: -O3 -fomit-frame-pointer -rdynamic -lboost_iostreams-mt

Minion

Benchmark: Bibd

OpenBenchmarking.orgSeconds, Fewer Is BetterMinion 0.12Benchmark: BibdGCC 4.6.3GCC 4.7.0LLVM-Clang 3.0LLVM-Clang 3.1 SVN50100150200250SE +/- 0.63, N = 3SE +/- 0.27, N = 3SE +/- 0.43, N = 3SE +/- 0.37, N = 3206.67217.34223.86219.58-mdynamic-no-pic -lz -lbz2-mdynamic-no-pic -lz -lbz21. (CXX) g++ options: -O3 -fomit-frame-pointer -rdynamic -lboost_iostreams-mt

FFmpeg

AVI To NTSC VCD

OpenBenchmarking.orgSeconds, Fewer Is BetterFFmpeg 0.10AVI To NTSC VCDGCC 4.6.3GCC 4.7.0LLVM-Clang 3.1 SVN48121620SE +/- 0.01, N = 3SE +/- 0.02, N = 3SE +/- 0.01, N = 315.8715.7316.091. (CC) gcc options: -lavdevice -lavfilter -lavformat -lavcodec -lswresample -lswscale -lavutil -ldl -lasound -lSDL -lm -pthread -lbz2

LAME MP3 Encoding

WAV To MP3

OpenBenchmarking.orgSeconds, Fewer Is BetterLAME MP3 Encoding 3.99.3WAV To MP3GCC 4.6.3GCC 4.7.0LLVM-Clang 3.1 SVN612182430SE +/- 0.04, N = 5SE +/- 0.02, N = 5SE +/- 0.04, N = 523.5823.1023.81

FLAC Audio Encoding

WAV To FLAC

OpenBenchmarking.orgSeconds, Fewer Is BetterFLAC Audio Encoding 1.2.1WAV To FLACGCC 4.6.3GCC 4.7.0LLVM-Clang 3.1 SVN3691215SE +/- 0.01, N = 5SE +/- 0.02, N = 5SE +/- 0.02, N = 59.979.3210.851. (CXX) g++ options: -O3 -march=native -lm

Crafty

Elapsed Time

OpenBenchmarking.orgSeconds, Fewer Is BetterCrafty 23.4Elapsed TimeGCC 4.6.3GCC 4.7.0LLVM-Clang 3.1 SVN20406080100SE +/- 0.11, N = 3SE +/- 0.05, N = 3SE +/- 0.06, N = 3109.88108.29107.851. (CC) gcc options: -lstdc++ -lm

Smallpt

Global Illumination Renderer; 100 Samples

OpenBenchmarking.orgSeconds, Fewer Is BetterSmallpt 1.0Global Illumination Renderer; 100 SamplesGCC 4.6.3GCC 4.7.0LLVM-Clang 3.0LLVM-Clang 3.1 SVN50100150200250SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.67, N = 369682342511. (CXX) g++ options: -fopenmp -O3 -march=native

Parallel BZIP2 Compression

256MB File Compression

OpenBenchmarking.orgSeconds, Fewer Is BetterParallel BZIP2 Compression 1.0.5256MB File CompressionGCC 4.6.3GCC 4.7.0LLVM-Clang 3.1 SVN612182430SE +/- 0.05, N = 3SE +/- 0.03, N = 3SE +/- 0.03, N = 319.3422.3023.211. (CXX) g++ options: -O2 -pthread -lpthread -lbz2

C-Ray

Total Time

OpenBenchmarking.orgSeconds, Fewer Is BetterC-Ray 1.1Total TimeGCC 4.6.3GCC 4.7.0LLVM-Clang 3.0LLVM-Clang 3.1 SVN306090120150SE +/- 12.48, N = 6SE +/- 3.00, N = 6SE +/- 3.60, N = 6SE +/- 4.36, N = 6139.0191.18118.20109.111. (CC) gcc options: -lm -lpthread -O3 -march=native

Timed PHP Compilation

Time To Compile

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed PHP Compilation 5.2.9Time To CompileGCC 4.6.3GCC 4.7.0LLVM-Clang 3.1 SVN1224364860SE +/- 0.07, N = 3SE +/- 0.05, N = 3SE +/- 0.06, N = 350.4254.7447.49-lpthread1. (CC) gcc options: -O3 -march=native -pedantic -ldl -lz -lm

7-Zip Compression

Compress Speed Test

OpenBenchmarking.orgMIPS, More Is Better7-Zip Compression 9.20.1Compress Speed TestGCC 4.6.3GCC 4.7.0LLVM-Clang 3.0LLVM-Clang 3.1 SVN2K4K6K8K10KSE +/- 65.12, N = 3SE +/- 42.67, N = 3SE +/- 11.50, N = 3SE +/- 7.55, N = 388498890910891661. (CXX) g++ options: -pipe -lpthread

Himeno Benchmark

Poisson Pressure Solver

OpenBenchmarking.orgMFLOPS, More Is BetterHimeno Benchmark 3.0Poisson Pressure SolverGCC 4.6.3GCC 4.7.0LLVM-Clang 3.0LLVM-Clang 3.1 SVN2004006008001000SE +/- 16.23, N = 3SE +/- 2.04, N = 3SE +/- 5.12, N = 3SE +/- 9.10, N = 31060.591142.971002.871053.291. (CC) gcc options: -O3 -march=native

x264

H.264 Video Encoding

OpenBenchmarking.orgFrames Per Second, More Is Betterx264 2011-12-06H.264 Video EncodingGCC 4.6.3GCC 4.7.01326395265SE +/- 0.05, N = 3SE +/- 0.12, N = 358.4658.26

VP8 libvpx Encoding

vpxenc

OpenBenchmarking.orgFrames Per Second, More Is BetterVP8 libvpx Encoding 0.9.7-p1vpxencGCC 4.6.3GCC 4.7.0LLVM-Clang 3.1 SVN3691215SE +/- 0.09, N = 3SE +/- 0.07, N = 3SE +/- 0.06, N = 39.939.769.071. (CC) gcc options: -m64 -lvpx -lm -lpthread

TTSIOD 3D Renderer

Phong Rendering With Soft-Shadow Mapping

OpenBenchmarking.orgFPS, More Is BetterTTSIOD 3D Renderer 2.2wPhong Rendering With Soft-Shadow MappingGCC 4.6.3GCC 4.7.01428425670SE +/- 0.04, N = 3SE +/- 0.12, N = 363.3259.501. (CXX) g++ options: -O3 -march=native -fomit-frame-pointer -ffast-math -mtune=native -flto -msse -mrecip -mfpmath=sse -msse2 -mssse3 -lSDL -lstdc++

John The Ripper

Test: Blowfish

OpenBenchmarking.orgReal C/S, More Is BetterJohn The Ripper 1.7.9Test: BlowfishGCC 4.6.3GCC 4.7.0LLVM-Clang 3.1 SVN5001000150020002500SE +/- 1.67, N = 3SE +/- 1.67, N = 3SE +/- 1.53, N = 3221522116621. (CC) gcc options: -fopenmp -lcrypt

BYTE Unix Benchmark

Computational Test: Dhrystone 2

OpenBenchmarking.orgLPS, More Is BetterBYTE Unix Benchmark 3.6Computational Test: Dhrystone 2GCC 4.6.3GCC 4.7.04M8M12M16M20MSE +/- 36800.75, N = 3SE +/- 14064.68, N = 318737961.2718075520.171. (CC) gcc options: -O3 -march=native

Fhourstones

Complex Connect-4 Solving

OpenBenchmarking.orgKpos / sec, More Is BetterFhourstones 3.1Complex Connect-4 SolvingGCC 4.6.3GCC 4.7.0LLVM-Clang 3.1 SVN2K4K6K8K10KSE +/- 22.37, N = 3SE +/- 5.11, N = 3SE +/- 5.30, N = 38643.408631.438551.901. (CC) gcc options: -O3

GMPbench

Total Time

OpenBenchmarking.orgGMPbench Score, More Is BetterGMPbench 0.2Total TimeGCC 4.6.3GCC 4.7.04008001200160020001739.001751.201. (CC) gcc options: -O3 -march=native

Timed MrBayes Analysis

Primate Phylogeny Analysis

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed MrBayes Analysis 3.1.2Primate Phylogeny AnalysisGCC 4.6.3GCC 4.7.0LLVM-Clang 3.1 SVN918273645SE +/- 0.03, N = 3SE +/- 0.09, N = 3SE +/- 0.25, N = 337.0732.3840.09

Timed MAFFT Alignment

Multiple Sequence Alignment

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed MAFFT Alignment 6.864Multiple Sequence AlignmentGCC 4.6.3GCC 4.7.0LLVM-Clang 3.0LLVM-Clang 3.1 SVN48121620SE +/- 0.18, N = 6SE +/- 0.04, N = 3SE +/- 0.28, N = 4SE +/- 0.07, N = 313.7313.6016.1414.731. (CC) gcc options: -O3 -lm -lpthread

Timed HMMer Search

Pfam Database Search

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed HMMer Search 2.3.2Pfam Database SearchGCC 4.6.3GCC 4.7.0LLVM-Clang 3.0LLVM-Clang 3.1 SVN816243240SE +/- 0.03, N = 3SE +/- 0.01, N = 3SE +/- 0.04, N = 3SE +/- 0.06, N = 326.5226.6333.0232.631. (CC) gcc options: -O3 -march=native -pthread -lhmmer -lsquid -lm

FFTE

Test: N=64, 1D Complex FFT Routine

OpenBenchmarking.orgMFLOPS, More Is BetterFFTE 5.0Test: N=64, 1D Complex FFT RoutineGCC 4.6.3GCC 4.7.0LLVM-Clang 3.0LLVM-Clang 3.1 SVNOpen64 5.07001400210028003500SE +/- 11.98, N = 3SE +/- 48.14, N = 3SE +/- 7.30, N = 3SE +/- 29.94, N = 3SE +/- 6.76, N = 33276.193156.923270.193197.683267.811. (F9X) gfortran options: -O3 -fomit-frame-pointer -fopenmp -pthread -lmpi_f90 -lmpi_f77 -lmpi -lopen-rte -lopen-pal -ldl -lnsl -lutil -lm


Phoronix Test Suite v10.8.5