<div class="gmail_quote">On Tue, Sep 15, 2009 at 5:35 PM, David Greene <span dir="ltr"><<a href="mailto:dag@cray.com">dag@cray.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Remember, the goal here isn't to show how great LLVM is. It's to get an<br>
honest assessment of where we are at. Phoronix did us a big favor. Getting<br>
more details about his tests would help us even more.<br></blockquote><div><br>It's exactly what I'm trying to do. I'm not even a LLVM contributor, so I don't feel responsible for a good or bad performances of LLVM. :)<br>
Anyway, thanks for pointing this target differences. After some hours at recompiling gcc, here we are :<br><br>Some information on the test platform :<br>
<br>cat /etc/lsb-release<br>DISTRIB_ID=Ubuntu<br>DISTRIB_RELEASE=9.04<br>DISTRIB_CODENAME=jaunty<br>DISTRIB_DESCRIPTION="Ubuntu 9.04"<br><br>uname -a<br>Linux zaraki 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 i686 GNU/Linux<br>
<br>/proc/cpuinfo<br>dual core Intel(R) Core(TM)2 CPU X6800 @ 2.93GHz (cache size 4096)<br><br>llvm-gcc -v<br>Using built-in specs.<br>Target: i686-pc-linux-gnu<br>Configured with: ../llvm-gcc4.2-2.5.source/configure --prefix=/mounts/zion/disks/0/localhome/tbrethou/2.5/prerelease2/llvm-gcc/obj/../install --program-prefix=llvm- --enable-llvm=/localhome/tbrethou/2.5/prerelease2/llvm-2.5/ --disable-bootstrap --enable-languages=c,c++,fortran<br>
Thread model: posix<br>gcc version 4.2.1 (Based on Apple Inc. build 5636) (LLVM build 2.5)<br>(Binary from official x86 2.5 release)<br></div></div><br>gcc -v<br>Using built-in specs.<br>Target: i686-pc-linux-gnu<br>Configured with: ./configure --prefix=/usr/local<br>
Thread model: posix<br>gcc version 4.4.1 (GCC)<br><br>The compilation line are :<br>gcc -o bin src.c -O3<br>llvm-gcc -o bin src.c -O3<br><br><br>Results :<br>LLVM average : 13553161.95<br>gcc average : 14624441.45<br>Average : gcc is better with 8%<br>
<br>The full report :<br> "LLVM" "GCC" "Difference" "Difference %"<br><br>"Run 1" 13842616 14693115.8 -850499.8 -6.14<br>"Run 2" 13773202.9 14785734.9 -1012532 -7.35<br>
"Run 3" 13671309.3 14985114 -1313804.7 -9.61<br>"Run 4" 12916939 14640392.9 -1723453.9 -13.34<br>"Run 5" 13572133.3 14425575 -853441.7 -6.29<br>
"Run 6" 13810096.5 14694240.6 -884144.1 -6.4<br>"Run 7" 13427435.8 14695094.6 -1267658.8 -9.44<br>"Run 8" 14056659.9 14468968.4 -412308.5 -2.93<br>
"Run 9" 13699125.3 14373360.9 -674235.6 -4.92<br>"Run 10 12762101.5 14482817.4 -1720715.9 -13.48<br><br>"Average" 13553161.95 14624441.45 -1071279.5 -7.99<br>
"Standard deviation" 412810.77 187898.68 430895.31 3.46<br><br>Is there again something wrong on this test ?<br><br>Olivier.<br>