GCC 6.2 vs. LLVM Clang 3.9 compiler benchmarks on Clear Linux. Tests by Michael Larabel for a future article.
Compare your own system(s) to this result file with the
Phoronix Test Suite by running the command:
phoronix-test-suite benchmark 1611113-TA-COMPILERB05 Compiler Benchmarks On Clear Linux OS - Phoronix Test Suite Compiler Benchmarks On Clear Linux OS GCC 6.2 vs. LLVM Clang 3.9 compiler benchmarks on Clear Linux. Tests by Michael Larabel for a future article.
HTML result view exported from: https://openbenchmarking.org/result/1611113-TA-COMPILERB05&grs&sor&export=pdf .
Compiler Benchmarks On Clear Linux OS Processor Motherboard Chipset Memory Disk Graphics Audio Monitor Network OS Kernel Desktop Display Server Display Driver OpenGL Vulkan Compiler File-System Screen Resolution GCC 6.2.0 Clang 3.9.0 Intel Core i5-7200U @ 3.10GHz (4 Cores) MSI MS-B1421 v1.0 Intel Device 5904 8192MB 256GB CORSAIR FORCE LX Intel Device 5916 (1000MHz) Realtek ALC887-VD DELL P2415Q Realtek RTL8111/8168/8411 + Intel Device 24fb Clear Linux 11620 4.8.6-272.native (x86_64) Xfce 4.12 X Server 1.18.4 intel 2.99.917 4.5 Mesa 13.0.0 1.0.3 GCC 6.2.0 + clang (Clear Linux OS for Intel Architecture) 6.2.0 + LLVM 3.9.0 ext4 1920x1080 Clang 3.9.0 + LLVM 3.9.0 3840x2160 OpenBenchmarking.org Compiler Details - GCC 6.2.0: --build=x86_64-generic-linux --disable-libunwind-exceptions --disable-multiarch --disable-vtable-verify --enable-__cxa_atexit --enable-bootstrap --enable-clocale=gnu --enable-gnu-indirect-function --enable-languages=c,c++,fortran,go --enable-ld=default --enable-libmpx --enable-libstdcxx-pch --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --exec-prefix=/usr --includedir=/usr/include --target=x86_64-generic-linux --with-arch=westmere --with-glibc-version=2.19 --with-gnu-ld --with-isl --with-ppl=yes --with-tune=haswell - Clang 3.9.0: Optimized build with assertions; Default target: x86_64-unknown-linux-gnu; Host CPU: broadwell Processor Details - Scaling Governor: intel_pstate performance
Compiler Benchmarks On Clear Linux OS c-ray: Total Time build-php: Time To Compile scimark2: Composite build-imagemagick: Time To Compile scimark2: Jacobi Successive Over-Relaxation crafty: Elapsed Time openssl: RSA 4096-bit Performance tscp: AI Chess Performance himeno: Poisson Pressure Solver fftw: Float + SSE - 2D FFT Size 2048 mafft: Multiple Sequence Alignment scimark2: Fast Fourier Transform encode-mp3: WAV To MP3 ebizzy: Phoronix Test Suite v6.8.0m1 scimark2: Dense LU Matrix Factorization scimark2: Sparse Matrix Multiply scimark2: Monte Carlo GCC 6.2.0 Clang 3.9.0 37.85 60.49 1057.55 142.55 875.62 95.77 243.97 1011505 2018.59 14179 12.11 247.07 14.34 85079 1834.34 1835.85 520.86 60.17 95.31 1603.19 189.60 1162.92 78.57 289.57 1131426 1816.77 13568 11.61 253.57 14.16 87880 4165.72 2204.96 228.76 OpenBenchmarking.org
C-Ray Total Time OpenBenchmarking.org Seconds, Fewer Is Better C-Ray 1.1 Total Time GCC 6.2.0 Clang 3.9.0 13 26 39 52 65 SE +/- 0.00, N = 3 SE +/- 0.01, N = 3 37.85 60.17 1. (CC) gcc options: -lm -lpthread -O3 -march=native
Timed PHP Compilation Time To Compile OpenBenchmarking.org Seconds, Fewer Is Better Timed PHP Compilation 5.2.9 Time To Compile GCC 6.2.0 Clang 3.9.0 20 40 60 80 100 SE +/- 0.19, N = 3 SE +/- 0.07, N = 3 60.49 95.31 1. (CC) gcc options: -O3 -march=native -pedantic -ldl -lz -lm
SciMark Computational Test: Composite OpenBenchmarking.org Mflops, More Is Better SciMark 2.0 Computational Test: Composite Clang 3.9.0 GCC 6.2.0 300 600 900 1200 1500 SE +/- 1.47, N = 4 SE +/- 20.84, N = 8 1603.19 1057.55 1. (CXX) g++ options: -O3 -march=native
Timed ImageMagick Compilation Time To Compile OpenBenchmarking.org Seconds, Fewer Is Better Timed ImageMagick Compilation 6.9.0 Time To Compile GCC 6.2.0 Clang 3.9.0 40 80 120 160 200 SE +/- 0.47, N = 3 SE +/- 2.26, N = 3 142.55 189.60
SciMark Computational Test: Jacobi Successive Over-Relaxation OpenBenchmarking.org Mflops, More Is Better SciMark 2.0 Computational Test: Jacobi Successive Over-Relaxation Clang 3.9.0 GCC 6.2.0 300 600 900 1200 1500 SE +/- 2.83, N = 4 SE +/- 3.00, N = 4 1162.92 875.62 1. (CXX) g++ options: -O3 -march=native
Crafty Elapsed Time OpenBenchmarking.org Seconds, Fewer Is Better Crafty 23.4 Elapsed Time Clang 3.9.0 GCC 6.2.0 20 40 60 80 100 SE +/- 0.02, N = 3 SE +/- 0.59, N = 3 78.57 95.77 1. (CC) gcc options: -lstdc++ -lm
OpenSSL RSA 4096-bit Performance OpenBenchmarking.org Signs Per Second, More Is Better OpenSSL 1.0.1g RSA 4096-bit Performance Clang 3.9.0 GCC 6.2.0 60 120 180 240 300 SE +/- 0.03, N = 3 SE +/- 3.03, N = 3 289.57 243.97 1. (CC) gcc options: -m64 -O3 -lssl -lcrypto -ldl
TSCP AI Chess Performance OpenBenchmarking.org Nodes Per Second, More Is Better TSCP 1.81 AI Chess Performance Clang 3.9.0 GCC 6.2.0 200K 400K 600K 800K 1000K SE +/- 465.60, N = 5 SE +/- 14580.21, N = 10 1131426 1011505 1. (CC) gcc options: -O3 -march=native
Himeno Benchmark Poisson Pressure Solver OpenBenchmarking.org MFLOPS, More Is Better Himeno Benchmark 3.0 Poisson Pressure Solver GCC 6.2.0 Clang 3.9.0 400 800 1200 1600 2000 SE +/- 14.90, N = 3 SE +/- 27.22, N = 6 2018.59 1816.77 1. (CC) gcc options: -O3 -march=native -mavx2
FFTW Build: Float + SSE - Size: 2D FFT Size 2048 OpenBenchmarking.org Mflops, More Is Better FFTW 3.3.4 Build: Float + SSE - Size: 2D FFT Size 2048 GCC 6.2.0 Clang 3.9.0 3K 6K 9K 12K 15K SE +/- 170.87, N = 8 SE +/- 40.29, N = 5 14179 13568 1. (CC) gcc options: -O3 -march=native -lm
Timed MAFFT Alignment Multiple Sequence Alignment OpenBenchmarking.org Seconds, Fewer Is Better Timed MAFFT Alignment 6.864 Multiple Sequence Alignment Clang 3.9.0 GCC 6.2.0 3 6 9 12 15 SE +/- 0.17, N = 6 SE +/- 0.22, N = 6 11.61 12.11 1. (CC) gcc options: -O3 -lm -lpthread
SciMark Computational Test: Fast Fourier Transform OpenBenchmarking.org Mflops, More Is Better SciMark 2.0 Computational Test: Fast Fourier Transform Clang 3.9.0 GCC 6.2.0 60 120 180 240 300 SE +/- 3.91, N = 4 SE +/- 4.73, N = 4 253.57 247.07 1. (CXX) g++ options: -O3 -march=native
LAME MP3 Encoding WAV To MP3 OpenBenchmarking.org Seconds, Fewer Is Better LAME MP3 Encoding 3.99.3 WAV To MP3 Clang 3.9.0 GCC 6.2.0 4 8 12 16 20 SE +/- 0.02, N = 5 SE +/- 0.15, N = 5 14.16 14.34 1. (CC) gcc options: -O3 -ffast-math -funroll-loops -fschedule-insns2 -fbranch-count-reg -fforce-addr -pipe -march=native -lncurses -lm
ebizzy Phoronix Test Suite v6.8.0m1 OpenBenchmarking.org Records/s, More Is Better ebizzy 0.3 Phoronix Test Suite v6.8.0m1 Clang 3.9.0 GCC 6.2.0 20K 40K 60K 80K 100K SE +/- 1718.02, N = 3 SE +/- 2461.36, N = 6 87880 85079 1. (CC) gcc options: -pthread -lpthread -O3 -march=native
SciMark Computational Test: Dense LU Matrix Factorization OpenBenchmarking.org Mflops, More Is Better SciMark 2.0 Computational Test: Dense LU Matrix Factorization Clang 3.9.0 GCC 6.2.0 900 1800 2700 3600 4500 SE +/- 2.21, N = 4 SE +/- 88.86, N = 4 4165.72 1834.34 1. (CXX) g++ options: -O3 -march=native
SciMark Computational Test: Sparse Matrix Multiply OpenBenchmarking.org Mflops, More Is Better SciMark 2.0 Computational Test: Sparse Matrix Multiply Clang 3.9.0 GCC 6.2.0 500 1000 1500 2000 2500 SE +/- 1.44, N = 4 SE +/- 78.96, N = 4 2204.96 1835.85 1. (CXX) g++ options: -O3 -march=native
SciMark Computational Test: Monte Carlo OpenBenchmarking.org Mflops, More Is Better SciMark 2.0 Computational Test: Monte Carlo GCC 6.2.0 Clang 3.9.0 110 220 330 440 550 SE +/- 25.09, N = 4 SE +/- 0.01, N = 4 520.86 228.76 1. (CXX) g++ options: -O3 -march=native
Phoronix Test Suite v10.8.4