Benchmarks Of LLVM Clang 6.0 Through Clang 10.0 Compilers

Written by Michael Larabel in LLVM on 12 January 2020 at 03:00 PM EST. 5 Comments
LLVM
At the end of 2019 I ran some GCC 5 through GCC 10 compiler benchmarks while here are the similar tests conducted on the LLVM side for seeing how the Clang C/C++ compiler performance has evolved over the past few years.

This round of testing was done on LLVM Clang 6.0 through LLVM Clang 9.0 while building in the release modes and also testing with LLVM Clang 10.0 as the development code as of December. All the CFLAGS/CXXFLAGS remained the same throughout testing.
2019 Intel LLVM Clang Compiler Comparison

Testing was done on the same Intel Core i7 5960X Haswell-E system that was used in the GCC testing, given the mature Haswell state in these compilers going back to the oldest releases tested.
2019 Intel LLVM Clang Compiler Comparison

The performance of Clang 6 through Clang 10 of the generated binaries was a lot less eventful on this Core i7 system than during the GCC testing. Compiler times are noticeably higher as expected due to the additional compiler passes with newer compilers.
2019 Intel LLVM Clang Compiler Comparison

Of more than 50 tests, Clang 9 was the fastest followed by Clang 10.
2019 Intel LLVM Clang Compiler Comparison

The numbers aren't too exciting overall, but there are a few standouts. You can see all those numbers via this OpenBenchmarking.org result file.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week