Ruby Compiled With Clang Is Noticeably Faster Than GCC
Written by Michael Larabel in LLVM on 12 December 2014 at 09:36 AM EST. 14 Comments
LLVM --
While in our benchmark runs the performance of generated binaries between GCC and LLVM's Clang C/C++ compilers are generally quite close, there are exceptions. When it comes to real-world usage of Clang, most companies tend to just utilize Clang for now when producing debug builds due to its faster compile times and better diagnostics than GCC, but GCC still ends up getting used for producing release/production builds.

Recently, Google switched to Clang for production builds of their Chrome web browser. As more good news for the future of Clang, it seems that Ruby when built under Clang is measurably faster than GCC.

BrĂ¡ulio Bhavamitra shared that Ruby compiled with Clang 3.5 is 8% faster than GCC 4.9. However, more impressive is that the lead jumps to 44% faster when Clang 3.5 is compared to GCC 4.7.2 as packaged in Debian 7 Wheezy. Details on this Ruby performance accomplishment for Clang can be found via this blog post.
Related News
About The Author
Author picture

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 or contacted via MichaelLarabel.com.

Popular News This Week