[cfe-dev] Parsing benchmark: LibTomMath

Sanghyeon Seo sanxiyn at gmail.com
Fri Nov 16 16:59:26 PST 2007


I did a little parsing benchmark with Clang.

You can download LibTomMath 0.41 from http://libtom.org/

Intel(R) Core(TM)2 CPU T7200
LLVM and Clang SVN trunk r44196, optimized build
LibTomMath 0.41
Debian GNU/Linux Sid up-to-date 2007-11-17
GCC (Debian 4.2.2-3)

Result:

tinuviel at debian:~/src$ tar jxf ltm-0.41.tar.bz2
tinuviel at debian:~/src$ cd libtommath-0.41

tinuviel at debian:~/src/libtommath-0.41$ time gcc -fsyntax-only -Wall -I. *.c
real	0m3.174s
user	0m2.820s
sys	0m0.360s
tinuviel at debian:~/src/libtommath-0.41$ time clang -fsyntax-only -I. *.c
real	0m1.015s
user	0m1.004s
sys	0m0.012s

tinuviel at debian:~/src/libtommath-0.41$ cat *.c > all.c

tinuviel at debian:~/src/libtommath-0.41$ time gcc -fsyntax-only -I. all.c
real	0m0.118s
user	0m0.112s
sys	0m0.008s
tinuviel at debian:~/src/libtommath-0.41$ time clang -fsyntax-only -I. all.c
real	0m0.024s
user	0m0.020s
sys	0m0.004s

-- 
Seo Sanghyeon



More information about the cfe-dev mailing list