Clang'ed FreeBSD: Builds Quicker, Uses Way Less RAM
A FreeBSD developer has carried out a series of performance tests to explore the impact that LLVM/Clang as the default FreeBSD compiler has on FreeBSD 10 in its current form. The Clang compiler performance was compared to GCC 4.2.1 and GCC 4.7.1. Clang mostly comes out ahead of GCC on FreeBSD.
With the yet-to-be-released FreeBSD 10, Clang is the default compiler with GCC being deprecated from this popular BSD operating system. The simple conclusion from Dimitry Andric that did the compiler testing on FreeBSD 10.0-CURRENT is that Clang compiles mostly faster than GCC (sometimes by a wide margin) and that Clang uses "significantly less" memory during the compilation process.
This testing was looking at the compilation speed as opposed to the speed of the result binaries, which is where Phoronix compiler benchmarks are mostly focused on.
Below are the key remarks from Dimitry's FreeBSD 10 amd64 compiler testing between GCC and LLVM/Clang.
Summary:So the Clang C/C++ compiler is doing very good in the FreeBSD world for building packages faster while using less memory. The only negative news towards Clang from these results is that the currently-in-development LLVM 3.2 is slightly slower than LLVM 3.1, but hopefully the build-time performance regressions can be worked out prior to the official 3.2 release and isn't becoming a trend of Clang slowing down as more functionality is introduced into the Apple-sponsored compiler.
The compiler testing data in full is available from this mailing list post.
Latest Linux News
Latest Articles & Reviews
Most Viewed News This Week