FreeBSD 9.1: LLVM/Clang Battling GCC

Published on February 07, 2013
Written by Michael Larabel
Page 1 of 4
Discuss This Article

With LLVM/Clang having become the default FreeBSD x86 compiler as of last year and the recent FreeBSD 9.1 release shipping not only LLVM/Clang but also the libc++ library, new benchmarks were carried out of FreeBSD 9.1 looking at its two stock compilers.

FreeBSD 9.1 bundles in LLVM/Clang 3.1 and it also has present GCC 4.2.1. The GNU Compiler Collection is still present in the FreeBSD world since Clang doesn't yet build all of the available packages present and there's other CPU architectures besides x86/x86_64 where Clang doesn't work too well. GCC 4.2.1 was the last GPLv2 release of the Free Software Foundation compiler before re-licensed to GPLv3, which is why the stock compiler hasn't been upgraded and one of the key reasons the BSD camps have been promoting Clang and other alternatives like the Portable C Compiler. There's other versions of GCC available from the FreeBSD ports collection, but the benchmarking in this article is just looking at the stock GCC vs. LLVM/Clang on FreeBSD/PC-BSD 9.1. The PC-BSD 9.1 "Isotope" amd64 image was used during testing.

While FreeBSD 9.1 already has Clang and libc++ present, FreeBSD 10 moves ahead with the GCC deprecation. Aside from liking the more permissive license of LLVM and Clang, developers have also become fond of Clang for faster compile times while using less RAM. In the Linux world there's been similar efforts within Gentoo and even Debian experiments. The broad effort to build the Linux kernel with LLVM/Clang continues as well though there's still work ahead for both x86 and ARM architectures.

Comparing the GCC 4.2.1 and LLVM Clang 3.1 compilers as found on PC-BSD 9.1 was from an Intel Core i7 3770K "Ivy Bridge" system. Benchmarks were done with the latest Phoronix Test Suite 4.4-Forsand development code, which features enhanced BSD benchmarking support.

For those just interested in the compiler performance using the latest releases of LLVM/Clang and GCC, read LLVM/Clang 3.2 Compiler Competing With GCC. This article is just about the out-of-the-box FreeBSD 9.1 compiler binary performance.

<< Previous Page
1
Latest Hardware Reviews
  1. Sumo Lounge Emperor
  2. Gallium3D Continues Improving OpenGL For Older Radeon GPUs
  3. 15-Way Open vs. Closed Source NVIDIA/AMD Linux GPU Comparison
  4. Nouveau vs. NVIDIA Linux Comparison Shows Shortcomings
Latest Software Articles
  1. Intel Linux OpenGL Driver Leading Over Apple OS X
  2. The Cost Of Ubuntu Disk Encryption
  3. Btrfs vs. EXT4 vs. XFS vs. F2FS On Linux 3.10
  4. AMD Radeon R600 GPU LLVM 3.3 Back-End Testing
Latest Linux News
  1. Microsoft Releases Skype For Linux 4.2, Has Bug-Fixes
  2. Qt For Tizen Launches, Based On Qt 5.1
  3. KTAP Released For Linux Kernel Dynamic Tracing
  4. Linux 3.10-rc2 Kernel Takes In A Few Extra Pulls
  5. QEMU 1.5 Supports VGA Passthrough, Better USB 3.0
  6. Handbrake 0.9.9 Supports OpenCL Offloading
  7. Freedreno Gallium3D Now Banging The Adreno A3XX
  8. Jolla Announces Their First Phone
  9. Mageia 3 Released, Still Using Legacy GRUB
  10. NetBSD 6.1 Brings In More Features
  11. Using Six Monitors With AMD's Open-Source Linux Driver
Latest Forum Talk
  1. Intel Linux OpenGL Driver Leading Over Apple OS X
  2. QEMU 1.5 Supports VGA Passthrough, Better USB 3.0
  3. Microsoft Releases Skype For Linux 4.2, Has...
  4. Will Unreal Engine 4 Games Come To Linux?
  5. Jolla Announces Their First Phone
  6. Modern Intel Gallium3D Driver Still Being Toyed...
  1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Motherboards
  5. Peripherals
  6. Processors
  7. Software
  8. Operating Systems
  9. All Articles
  1. Linux Benchmarking
  2. OpenBenchmarking.org
  3. Phoronix Test Suite