GCC vs. Clang Compiler Performance On NVIDIA Xavier's Carmel ARMv8 Cores

Written by Michael Larabel in Software on 13 January 2019 at 10:15 AM EST. Page 3 of 3. 6 Comments.
Xavier Carmel CPU Ubuntu Linux Compiler Tests

While years ago Clang would almost always compile code faster than GCC, more recent releases of the GNU Compiler Collection have put up a tougher fight and with the PHP compilation test actually was faster than Clang 6.0 by a considerable margin.

Xavier Carmel CPU Ubuntu Linux Compiler Tests

Similar to on x86_64, C-Ray saw much faster performance when built by GCC.

Xavier Carmel CPU Ubuntu Linux Compiler Tests
Xavier Carmel CPU Ubuntu Linux Compiler Tests

Primesieve and FLAC were a toss-up for performance.

Xavier Carmel CPU Ubuntu Linux Compiler Tests
Xavier Carmel CPU Ubuntu Linux Compiler Tests
Xavier Carmel CPU Ubuntu Linux Compiler Tests
Xavier Carmel CPU Ubuntu Linux Compiler Tests
Xavier Carmel CPU Ubuntu Linux Compiler Tests

The Redis performance on the NVIDIA Tegra Xavier SoC was slightly faster with the Clang-generated binaries.

Xavier Carmel CPU Ubuntu Linux Compiler Tests

The Apache web-server performance was similar between the compilers.

Xavier Carmel CPU Ubuntu Linux Compiler Tests

When looking at the wins and losses across all of the tests, GCC on Ubuntu 18.04 LTS won 55% of the tests to Clang winning 45% of the tests with these stock compilers from the current Ubuntu Long Term Support release on this Tegra Xavier SoC. When looking at the geometric mean of all the test results, it was also a pretty even fight between these compilers on this octal-core ARMv8 SoC. The results aren't all that surprising considering the many ARM vendors relying upon Clang in production and overall a great deal of interest from LLVM within the mobile/embedded space has resulted in a lot of tuning.

With the GCC 9 and Clang 8 releases around the corner, larger ARMv8 compiler benchmark comparisons will be coming up soon on Phoronix from different 64-bit ARM developer boards to complement all of our ongoing and frequent Linux x86_64 compiler benchmarks.

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.