[cfe-dev] Parsing benchmark: LibTomMath
Evan Cheng
evan.cheng at apple.com
Sat Nov 17 00:17:54 PST 2007
Do you think it'll make a suitable compiler codegen benchmark? I'd
like to add it to llvm-test test suite.
Thanks,
Evan
On Nov 16, 2007, at 4:59 PM, 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
>
> --
> Seo Sanghyeon
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list