[cfe-dev] Parsing benchmark: LibTomMath

Chris Lattner clattner at apple.com
Fri Nov 16 20:25:03 PST 2007


It would be better to run the gcc test 3  times then the clang test 3  
times and take the minimum of each.  That said, we should be  
significantly faster... 3x is awesome!

-Chris

http://nondot.org/sabre
http://llvm.org

On Nov 16, 2007, at 7:50 PM, Neil Booth <neil at daikokuya.co.uk> wrote:

> 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.
> _______________________________________________
> 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