FreeBSD 9.1 Compilers: GCC vs. LLVM/Clang

With FreeBSD/PC-BSD 9.1 comparing the performance of the stock compilers: GCC 4.2.1 versus LLVM/Clang 3.1 on an Intel Core i7 3960X Extreme Edition system. FreeBSD/PC-BSD 9.1 x64/amd64 with stock packages/settings. Testing for a future article on Phoronix.com.

Compare your own system(s) to this result file with the Phoronix Test Suite by running the command: phoronix-test-suite benchmark 1301299-FO-CLANGFREE98
Jump To Table - Results

View

Do Not Show Noisy Results
Do Not Show Results With Incomplete Data
Do Not Show Results With Little Change/Spread
List Notable Results

Limit displaying results to tests within:

Bioinformatics 2 Tests
C/C++ Compiler Tests 9 Tests
CPU Massive 12 Tests
Creator Workloads 3 Tests
Cryptography 2 Tests
Disk Test Suite 2 Tests
HPC - High Performance Computing 2 Tests
Common Kernel Benchmarks 2 Tests
Multi-Core 6 Tests
Scientific Computing 2 Tests
Server 2 Tests
Server CPU Tests 5 Tests
Single-Threaded 3 Tests

Statistics

Show Overall Harmonic Mean(s)
Show Overall Geometric Mean
Show Geometric Means Per-Suite/Category
Show Wins / Losses Counts (Pie Chart)
Normalize Results
Remove Outliers Before Calculating Averages

Graph Settings

Force Line Graphs Where Applicable
Convert To Scalar Where Applicable
Prefer Vertical Bar Graphs

Multi-Way Comparison

Condense Multi-Option Tests Into Single Result Graphs

Table

Show Detailed System Result Table

Run Management

Highlight
Result
Hide
Result
Result
Identifier
View Logs
Performance Per
Dollar
Date
Run
  Test
  Duration
GCC 4.2.1
January 29 2013
 
LLVM Clang 3.1
January 29 2013
 
Invert Hiding All Results Option
 
Only show results matching title/arguments (delimit multiple options with a comma):
Do not show results matching title/arguments (delimit multiple options with a comma):


FreeBSD 9.1 Compilers: GCC vs. LLVM/ClangOpenBenchmarking.orgPhoronix Test SuiteIntel Core i7-3770K @ 3.50GHz (8 Cores)ECS Z77H2-A2X 1.08192MBOCZ VERTEX2 1.10NVIDIA GeForce GTX 460 768MB (675/1800MHz)NVIDIA GT104 HDAFreeBSD9.1-RELEASE (x86_64)KDE 4.9.3X Server 1.10.6NVIDIA 304.644.2.0 NVIDIA 304.64GCC 4.2.1 20070831 + Clang 3.1 (SVN 156863)Clang 3.1 (SVN 156863)zfs1920x1080ProcessorMotherboardMemoryDiskGraphicsAudioOSKernelDesktopDisplay ServerDisplay DriverOpenGLCompilersFile-SystemScreen ResolutionFreeBSD 9.1 Compilers: GCC Vs. LLVM/Clang BenchmarksSystem Logs- Python 2.7.3.

GCC 4.2.1 vs. LLVM Clang 3.1 ComparisonPhoronix Test SuiteBaseline+116.2%+116.2%+232.4%+232.4%+348.6%+348.6%42.9%30.8%30.3%29.6%18.9%17.1%12.5%9.7%8.3%6%4.3%2.8%Elapsed Time464.7%1.P.N.G304.4%L.A.T166.7%Sharpen80%Blur56.8%Resizing53.6%J.S.O.RHWB Color Space39.4%D.L.M.FInitial CreateCompileCAST-256TigerP.P.SKASUMI11.4%Total TimeS.M.MX9.19-MAC7.1%Monte CarloReadTwofish3.1%D.T.P2.9%P.D.SC.S.T2.6%N-QueensPrimesieveGraphicsMagickGraphicsMagickGraphicsMagickGraphicsMagickSciMarkGraphicsMagickSciMarkCompile BenchCompile BenchBotanBotanHimeno BenchmarkBotanC-RaySciMarkBotanSciMarkBlogBenchBotanPostMarkTimed HMMer Search7-Zip CompressionGCC 4.2.1LLVM Clang 3.1

FreeBSD 9.1 Compilers: GCC vs. LLVM/Clangblogbench: Readblogbench: Writecompilebench: Compilecompilebench: Initial Createpostmark: Disk Transaction Performancehmmer: Pfam Database Searchbotan: Tigerbotan: KASUMIbotan: AES-256botan: Twofishbotan: CAST-256botan: X9.19-MACscimark2: Monte Carloscimark2: Fast Fourier Transformscimark2: Sparse Matrix Multiplyscimark2: Dense LU Matrix Factorizationscimark2: Jacobi Successive Over-Relaxationgraphics-magick: Blurgraphics-magick: Sharpengraphics-magick: Resizinggraphics-magick: HWB Color Spacegraphics-magick: Local Adaptive Thresholdinghimeno: Poisson Pressure Solvercompress-7zip: Compress Speed Testbuild-php: Time To Compilec-ray: Total Timeprimesieve: 1e12 Prime Number Generationencode-mp3: WAV To MP3n-queens: Elapsed Timeopenssl: RSA 4096-bit PerformanceGCC 4.2.1LLVM Clang 3.16557902065141.21112.3139013.05314.2568.48175.12189.4489.0783.50552.24329.662175.482232.781114.8611690149177112792.301905925.3944.4792.0414.9038.64122.806839832027182.96146.3837912.70368.1461.49174.50183.68105.8877.99585.47329.922355.302920.541592.8274509712742891.341857625.3840.52372.2214.94218.21123.07OpenBenchmarking.org

BlogBench

OpenBenchmarking.orgFinal Score, More Is BetterBlogBench 1.0Test: ReadGCC 4.2.1LLVM Clang 3.1150K300K450K600K750KSE +/- 13571.88, N = 6SE +/- 23658.25, N = 66557906839831. (CC) gcc options: -O2 -pthread
OpenBenchmarking.orgFinal Score, More Is BetterBlogBench 1.0Test: ReadGCC 4.2.1LLVM Clang 3.1120K240K360K480K600KMin: 622739 / Avg: 655789.83 / Max: 702333Min: 628890 / Avg: 683983.17 / Max: 7803621. (CC) gcc options: -O2 -pthread

OpenBenchmarking.orgFinal Score, More Is BetterBlogBench 1.0Test: WriteGCC 4.2.1LLVM Clang 3.1400800120016002000SE +/- 17.19, N = 3206520271. (CC) gcc options: -O2 -pthread
OpenBenchmarking.orgFinal Score, More Is BetterBlogBench 1.0Test: WriteGCC 4.2.1LLVM Clang 3.1400800120016002000Min: 2031 / Avg: 2065.33 / Max: 20841. (CC) gcc options: -O2 -pthread

Compile Bench

OpenBenchmarking.orgMB/s, More Is BetterCompile Bench 0.6Test: CompileGCC 4.2.1LLVM Clang 3.14080120160200SE +/- 4.06, N = 6SE +/- 25.32, N = 6141.21182.96
OpenBenchmarking.orgMB/s, More Is BetterCompile Bench 0.6Test: CompileGCC 4.2.1LLVM Clang 3.1306090120150Min: 129.4 / Avg: 141.21 / Max: 157.77Min: 127.64 / Avg: 182.96 / Max: 280.11

OpenBenchmarking.orgMB/s, More Is BetterCompile Bench 0.6Test: Initial CreateGCC 4.2.1LLVM Clang 3.1306090120150SE +/- 1.85, N = 3SE +/- 2.58, N = 3112.31146.38
OpenBenchmarking.orgMB/s, More Is BetterCompile Bench 0.6Test: Initial CreateGCC 4.2.1LLVM Clang 3.1306090120150Min: 108.78 / Avg: 112.31 / Max: 115.02Min: 141.98 / Avg: 146.38 / Max: 150.9

PostMark

This is a test of NetApp's PostMark benchmark designed to simulate small-file testing similar to the tasks endured by web and mail servers. This test profile will set PostMark to perform 25,000 transactions with 500 files simultaneously with the file sizes ranging between 5 and 512 kilobytes. Learn more via the OpenBenchmarking.org test page.

OpenBenchmarking.orgTPS, More Is BetterPostMark 1.51Disk Transaction PerformanceGCC 4.2.1LLVM Clang 3.180160240320400SE +/- 2.60, N = 3SE +/- 2.00, N = 33903791. (CC) gcc options: -O3
OpenBenchmarking.orgTPS, More Is BetterPostMark 1.51Disk Transaction PerformanceGCC 4.2.1LLVM Clang 3.170140210280350Min: 386 / Avg: 390.33 / Max: 395Min: 377 / Avg: 379 / Max: 3831. (CC) gcc options: -O3

Timed HMMer Search

This test searches through the Pfam database of profile hidden markov models. The search finds the domain structure of Drosophila Sevenless protein. Learn more via the OpenBenchmarking.org test page.

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed HMMer Search 2.3.2Pfam Database SearchGCC 4.2.1LLVM Clang 3.13691215SE +/- 0.31, N = 6SE +/- 0.29, N = 613.0512.701. (CC) gcc options: -O2 -pthread -lhmmer -lsquid -lm
OpenBenchmarking.orgSeconds, Fewer Is BetterTimed HMMer Search 2.3.2Pfam Database SearchGCC 4.2.1LLVM Clang 3.148121620Min: 12.72 / Avg: 13.05 / Max: 14.58Min: 12.39 / Avg: 12.7 / Max: 14.171. (CC) gcc options: -O2 -pthread -lhmmer -lsquid -lm

Botan

OpenBenchmarking.orgMbytes/s, More Is BetterBotan 1.10.3Test: TigerGCC 4.2.1LLVM Clang 3.180160240320400314.25368.141. (CXX) g++ options: -m64 -pthread -lpthread

OpenBenchmarking.orgMbytes/s, More Is BetterBotan 1.10.3Test: KASUMIGCC 4.2.1LLVM Clang 3.1153045607568.4861.491. (CXX) g++ options: -m64 -pthread -lpthread

OpenBenchmarking.orgMbytes/s, More Is BetterBotan 1.10.3Test: AES-256GCC 4.2.1LLVM Clang 3.14080120160200175.12174.501. (CXX) g++ options: -m64 -pthread -lpthread

OpenBenchmarking.orgMbytes/s, More Is BetterBotan 1.10.3Test: TwofishGCC 4.2.1LLVM Clang 3.14080120160200189.44183.681. (CXX) g++ options: -m64 -pthread -lpthread

OpenBenchmarking.orgMbytes/s, More Is BetterBotan 1.10.3Test: CAST-256GCC 4.2.1LLVM Clang 3.12040608010089.07105.881. (CXX) g++ options: -m64 -pthread -lpthread

OpenBenchmarking.orgMbytes/s, More Is BetterBotan 1.10.3Test: X9.19-MACGCC 4.2.1LLVM Clang 3.12040608010083.5077.991. (CXX) g++ options: -m64 -pthread -lpthread

SciMark

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Monte CarloGCC 4.2.1LLVM Clang 3.1130260390520650SE +/- 0.28, N = 4SE +/- 0.36, N = 4552.24585.47
OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Monte CarloGCC 4.2.1LLVM Clang 3.1100200300400500Min: 551.96 / Avg: 552.24 / Max: 553.07Min: 584.85 / Avg: 585.47 / Max: 586.09

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Fast Fourier TransformGCC 4.2.1LLVM Clang 3.170140210280350SE +/- 1.48, N = 4SE +/- 1.81, N = 4329.66329.92
OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Fast Fourier TransformGCC 4.2.1LLVM Clang 3.160120180240300Min: 325.96 / Avg: 329.66 / Max: 332.89Min: 325.96 / Avg: 329.92 / Max: 333.91

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Sparse Matrix MultiplyGCC 4.2.1LLVM Clang 3.15001000150020002500SE +/- 2.61, N = 4SE +/- 14.73, N = 42175.482355.30
OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Sparse Matrix MultiplyGCC 4.2.1LLVM Clang 3.1400800120016002000Min: 2170.96 / Avg: 2175.48 / Max: 2179.99Min: 2340.57 / Avg: 2355.3 / Max: 2399.49

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Dense LU Matrix FactorizationGCC 4.2.1LLVM Clang 3.16001200180024003000SE +/- 3.49, N = 4SE +/- 5.99, N = 42232.782920.54
OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Dense LU Matrix FactorizationGCC 4.2.1LLVM Clang 3.15001000150020002500Min: 2223.67 / Avg: 2232.78 / Max: 2238.25Min: 2911.16 / Avg: 2920.54 / Max: 2936.2

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Jacobi Successive Over-RelaxationGCC 4.2.1LLVM Clang 3.130060090012001500SE +/- 0.00, N = 4SE +/- 0.81, N = 41114.861592.82
OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Jacobi Successive Over-RelaxationGCC 4.2.1LLVM Clang 3.130060090012001500Min: 1114.86 / Avg: 1114.86 / Max: 1114.86Min: 1592.01 / Avg: 1592.82 / Max: 1595.24

GraphicsMagick

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: BlurGCC 4.2.1LLVM Clang 3.1306090120150SE +/- 0.00, N = 3SE +/- 0.33, N = 311674-std=gnu99 -fopenmp -lgomp1. (CC) gcc options: -O2 -pthread -llcms2 -ljbig -lrpcsvc -llzma -lbz2 -lz -lm -lpthread
OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: BlurGCC 4.2.1LLVM Clang 3.120406080100Min: 116 / Avg: 116 / Max: 116Min: 73 / Avg: 73.67 / Max: 741. (CC) gcc options: -O2 -pthread -llcms2 -ljbig -lrpcsvc -llzma -lbz2 -lz -lm -lpthread

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: SharpenGCC 4.2.1LLVM Clang 3.120406080100SE +/- 0.00, N = 3SE +/- 0.00, N = 39050-std=gnu99 -fopenmp -lgomp1. (CC) gcc options: -O2 -pthread -llcms2 -ljbig -lrpcsvc -llzma -lbz2 -lz -lm -lpthread
OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: SharpenGCC 4.2.1LLVM Clang 3.120406080100Min: 90 / Avg: 90 / Max: 90Min: 50 / Avg: 50 / Max: 501. (CC) gcc options: -O2 -pthread -llcms2 -ljbig -lrpcsvc -llzma -lbz2 -lz -lm -lpthread

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: ResizingGCC 4.2.1LLVM Clang 3.1306090120150SE +/- 0.00, N = 3SE +/- 0.00, N = 314997-std=gnu99 -fopenmp -lgomp1. (CC) gcc options: -O2 -pthread -llcms2 -ljbig -lrpcsvc -llzma -lbz2 -lz -lm -lpthread
OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: ResizingGCC 4.2.1LLVM Clang 3.1306090120150Min: 149 / Avg: 149 / Max: 149Min: 97 / Avg: 97 / Max: 971. (CC) gcc options: -O2 -pthread -llcms2 -ljbig -lrpcsvc -llzma -lbz2 -lz -lm -lpthread

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: HWB Color SpaceGCC 4.2.1LLVM Clang 3.14080120160200SE +/- 0.00, N = 3SE +/- 0.00, N = 3177127-std=gnu99 -fopenmp -lgomp1. (CC) gcc options: -O2 -pthread -llcms2 -ljbig -lrpcsvc -llzma -lbz2 -lz -lm -lpthread
OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: HWB Color SpaceGCC 4.2.1LLVM Clang 3.1306090120150Min: 177 / Avg: 177 / Max: 177Min: 127 / Avg: 127 / Max: 1271. (CC) gcc options: -O2 -pthread -llcms2 -ljbig -lrpcsvc -llzma -lbz2 -lz -lm -lpthread

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Local Adaptive ThresholdingGCC 4.2.1LLVM Clang 3.1306090120150SE +/- 0.00, N = 3SE +/- 0.00, N = 311242-std=gnu99 -fopenmp -lgomp1. (CC) gcc options: -O2 -pthread -llcms2 -ljbig -lrpcsvc -llzma -lbz2 -lz -lm -lpthread
OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Local Adaptive ThresholdingGCC 4.2.1LLVM Clang 3.120406080100Min: 112 / Avg: 112 / Max: 112Min: 42 / Avg: 42 / Max: 421. (CC) gcc options: -O2 -pthread -llcms2 -ljbig -lrpcsvc -llzma -lbz2 -lz -lm -lpthread

Himeno Benchmark

The Himeno benchmark is a linear solver of pressure Poisson using a point-Jacobi method. Learn more via the OpenBenchmarking.org test page.

OpenBenchmarking.orgMFLOPS, More Is BetterHimeno Benchmark 3.0Poisson Pressure SolverGCC 4.2.1LLVM Clang 3.12004006008001000SE +/- 6.52, N = 3SE +/- 7.29, N = 3792.30891.341. (CC) gcc options: -O3
OpenBenchmarking.orgMFLOPS, More Is BetterHimeno Benchmark 3.0Poisson Pressure SolverGCC 4.2.1LLVM Clang 3.1160320480640800Min: 784.59 / Avg: 792.3 / Max: 805.26Min: 876.77 / Avg: 891.34 / Max: 898.991. (CC) gcc options: -O3

7-Zip Compression

OpenBenchmarking.orgMIPS, More Is Better7-Zip Compression 9.20.1Compress Speed TestGCC 4.2.1LLVM Clang 3.14K8K12K16K20KSE +/- 177.11, N = 3SE +/- 308.37, N = 619059185761. (CXX) g++ options: -pipe -lpthread
OpenBenchmarking.orgMIPS, More Is Better7-Zip Compression 9.20.1Compress Speed TestGCC 4.2.1LLVM Clang 3.13K6K9K12K15KMin: 18832 / Avg: 19059 / Max: 19408Min: 17463 / Avg: 18575.83 / Max: 193341. (CXX) g++ options: -pipe -lpthread

Timed PHP Compilation

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed PHP Compilation 5.2.9Time To CompileGCC 4.2.1LLVM Clang 3.1612182430SE +/- 0.14, N = 3SE +/- 0.11, N = 325.3925.381. (CC) gcc options: -O2 -pedantic -lpthread -lz -lm
OpenBenchmarking.orgSeconds, Fewer Is BetterTimed PHP Compilation 5.2.9Time To CompileGCC 4.2.1LLVM Clang 3.1612182430Min: 25.21 / Avg: 25.39 / Max: 25.66Min: 25.2 / Avg: 25.38 / Max: 25.571. (CC) gcc options: -O2 -pedantic -lpthread -lz -lm

C-Ray

This is a test of C-Ray, a simple raytracer designed to test the floating-point CPU performance. This test is multi-threaded (16 threads per core), will shoot 8 rays per pixel for anti-aliasing, and will generate a 1600 x 1200 image. Learn more via the OpenBenchmarking.org test page.

OpenBenchmarking.orgSeconds, Fewer Is BetterC-Ray 1.1Total TimeGCC 4.2.1LLVM Clang 3.11020304050SE +/- 0.08, N = 3SE +/- 0.05, N = 344.4740.521. (CC) gcc options: -lm -lpthread -O3
OpenBenchmarking.orgSeconds, Fewer Is BetterC-Ray 1.1Total TimeGCC 4.2.1LLVM Clang 3.1918273645Min: 44.36 / Avg: 44.47 / Max: 44.62Min: 40.43 / Avg: 40.52 / Max: 40.591. (CC) gcc options: -lm -lpthread -O3

Primesieve

OpenBenchmarking.orgSeconds, Fewer Is BetterPrimesieve 4.01e12 Prime Number GenerationGCC 4.2.1LLVM Clang 3.180160240320400SE +/- 0.04, N = 3SE +/- 0.03, N = 392.04372.22-fopenmp1. (CXX) g++ options: -O2
OpenBenchmarking.orgSeconds, Fewer Is BetterPrimesieve 4.01e12 Prime Number GenerationGCC 4.2.1LLVM Clang 3.170140210280350Min: 91.98 / Avg: 92.04 / Max: 92.12Min: 372.16 / Avg: 372.22 / Max: 372.271. (CXX) g++ options: -O2

LAME MP3 Encoding

LAME is an MP3 encoder licensed under the LGPL. This test measures the time required to encode a WAV file to MP3 format. Learn more via the OpenBenchmarking.org test page.

OpenBenchmarking.orgSeconds, Fewer Is BetterLAME MP3 Encoding 3.99.3WAV To MP3GCC 4.2.1LLVM Clang 3.148121620SE +/- 0.11, N = 5SE +/- 0.11, N = 514.9014.94
OpenBenchmarking.orgSeconds, Fewer Is BetterLAME MP3 Encoding 3.99.3WAV To MP3GCC 4.2.1LLVM Clang 3.148121620Min: 14.78 / Avg: 14.9 / Max: 15.36Min: 14.82 / Avg: 14.94 / Max: 15.4

N-Queens

This is a test of the OpenMP version of a test that solves the N-queens problem. The board problem size is 18. Learn more via the OpenBenchmarking.org test page.

OpenBenchmarking.orgSeconds, Fewer Is BetterN-Queens 1.0Elapsed TimeGCC 4.2.1LLVM Clang 3.150100150200250SE +/- 0.01, N = 3SE +/- 0.02, N = 338.64218.211. (CC) gcc options: -static -fopenmp -O3
OpenBenchmarking.orgSeconds, Fewer Is BetterN-Queens 1.0Elapsed TimeGCC 4.2.1LLVM Clang 3.14080120160200Min: 38.63 / Avg: 38.64 / Max: 38.65Min: 218.18 / Avg: 218.21 / Max: 218.251. (CC) gcc options: -static -fopenmp -O3

OpenSSL

OpenBenchmarking.orgSigns Per Second, More Is BetterOpenSSL 1.0.1cRSA 4096-bit PerformanceGCC 4.2.1LLVM Clang 3.1306090120150SE +/- 0.10, N = 3SE +/- 0.09, N = 3122.80123.071. (CC) gcc options: -pthread -O3 -lssl -lcrypto
OpenBenchmarking.orgSigns Per Second, More Is BetterOpenSSL 1.0.1cRSA 4096-bit PerformanceGCC 4.2.1LLVM Clang 3.120406080100Min: 122.6 / Avg: 122.8 / Max: 122.9Min: 122.9 / Avg: 123.07 / Max: 123.21. (CC) gcc options: -pthread -O3 -lssl -lcrypto