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 <[EMAIL PROTECTED]> 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: >> >> [EMAIL PROTECTED]:~/src$ tar jxf ltm-0.41.tar.bz2 >> [EMAIL PROTECTED]:~/src$ cd libtommath-0.41 >> >> [EMAIL PROTECTED]:~/src/libtommath-0.41$ time gcc -fsyntax-only -Wall >> -I. *.c >> real 0m3.174s >> user 0m2.820s >> sys 0m0.360s >> [EMAIL PROTECTED]:~/src/libtommath-0.41$ time clang -fsyntax-only -I. >> *.c >> real 0m1.015s >> user 0m1.004s >> sys 0m0.012s >> >> [EMAIL PROTECTED]:~/src/libtommath-0.41$ cat *.c > all.c >> >> [EMAIL PROTECTED]:~/src/libtommath-0.41$ time gcc -fsyntax-only -I. >> all.c >> real 0m0.118s >> user 0m0.112s >> sys 0m0.008s >> [EMAIL PROTECTED]:~/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 > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev _______________________________________________ cfe-dev mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
