GCC vs. LLVM Clang vs. AOCC Compilers On AMD Threadripper

Written by Michael Larabel in Software on 23 May 2018 at 11:00 AM EDT. Page 5 of 5. 15 Comments.
LLVM Clang vs. GCC vs. AOCC - AMD Threadripper

The LLVM compilers were slightly faster than GCC for the FLAC audio encoding performance.

LLVM Clang vs. GCC vs. AOCC - AMD Threadripper

But that was flipped when it came to GCC yielding a faster LAME for MP3 encoding.

LLVM Clang vs. GCC vs. AOCC - AMD Threadripper

GCC yielded a faster PostgreSQL build.

LLVM Clang vs. GCC vs. AOCC - AMD Threadripper

While under the NGINX web server the compiler ended up having little impact on the resulting server performance.

LLVM Clang vs. GCC vs. AOCC - AMD Threadripper

It was a similar story as well with Apache.

Of the 37 benchmarks ran in total on this AMD Threadripper 1950X system running Ubuntu Linux x86_64, GCC 8.1 was fastest for 16 of the tests followed by GCC 7.3.0 in first place seven times. In third was AMD's AOCC 1.2 compiler with four wins followed by the various LLVM Clang builds occupying the rest. To little surprise Clang 5.0.1 was the slowest compiler tested considering it had just the very initial Znver1 support in that release series and since then has been greatly improved.

If you enjoyed this article consider joining Phoronix Premium to view this site ad-free, multi-page articles on a single page, and other benefits. PayPal or Stripe tips are also graciously accepted. Thanks for your support.


Related Articles
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.