llvm faster than gcc

2011/03/12

Compared gcc and llvm on my macbook air after upgrading to xcode 4.

tar zxf bind-9.8.0.tar.gz
cd bind-9.8.0
CC=/usr/bin/gcc ./configure -q && time make -s # (gcc)
real    2m13.978s
user    1m54.667s
sys     0m11.008s

tar zxf bind-9.8.0.tar.gz
cd bind-9.8.0
CC=/usr/bin/cc ./configure -q && time make -s # (llvm)
real    1m42.342s
user    1m26.033s
sys     0m10.685s

Comments