[cfe-dev] Parsing benchmark: LibTomMath
Neil Booth
neil at daikokuya.co.uk
Fri Nov 16 19:50:52 PST 2007
Sanghyeon Seo wrote:-
> 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
Are there any reasons this may not be a fair comparison?
Neil.
More information about the cfe-dev
mailing list