<br><div class="gmail_quote">Hi all,<br><br>I am trying to compare the performance of gcc , llvm-gcc , clang and lli(with JIT) on x86. i have attached the performance comparision spreadsheet as well as the source which i used for performing these test. i ran this code for 10000 iterations and the time of execution is as follows<br>


<br>for -O3 results refer attachment.<br><b>time                      clang (-O0)                                 llvm-gcc(-O0)                   gcc(-O0)</b><br>real                      0m10.247s                                   0m11.324s                         0m10.963s<br>

user                     0m2.644s                                     0m2.478s                          0m2.263s<br>sys                      0m5.949s                                     0m6.000s                          0m5.953s   <br>

<b><br>llvm-jit </b><br>i used clang-cc -O0 -emit-llvm-bc to emit llvm bytecode and then passed it to opt tool and then linked all bytecode files to single bytecode using llvm-ld, i used lli tool to run this single bytecode file and noticed the following output<br>

<span style="color: rgb(153, 0, 0);">real      6m33.786s</span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);">user      5m12.612s</span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);">sys       1m1.205s</span><br>

<br>why is lli taking such a loooong time to execute this particular piece of code.?? <br><br clear="all"><br>Thanks and Regards,<br><font color="#888888">Prasanth J<br><br><br><br>
</font></div><br>