<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 21, 2017 at 9:14 AM, George Rimar via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">>>Not sure. I would recommend doing another benchmark run. We have to<br>
>>compare the delta from lld to lld --gdb-index to the delta from gold to<br>
>>gold --gdb-index.<br>
>><br>
>>Cheers,<br>
>>Rafael<br>
><br>
>I can do these benchmarks tomorrow.<br>
><br>
>Also  going to look in profiler to check where it is<br>
>slow downs now.<br>
><br>
>George.<br>
<br>
</span>I did these benchmarks today, used clang objects and reproduce from clang-gdb-index folder<br>
of lld-speed-test.tar.xz archive you posted earlier (thanks, btw !) and results are below:<br>
<br>
* ld.gold with --gdb-index: 26.54s<br>
* ld.lld     with --gdb-index: 15.33s<br>
* ld.gold w/o --gdb-index: 21.65s<br>
* ld.lld     w/o --gdb-index: 10.14s<br>
<br>
Both LLD and ld.gold spends about 5 seconds for building gdb-index.<br></blockquote><div><br></div><div>This is awesome!</div><div><br></div><div>At least in these rough measurements, we still seem to be 5.2 vs 4.9 seconds, so LLD is about 6% slower, which suggests that there's still some opportunities for single-thread speedup (unless gold's implementation is of gdb-index is hyperoptimized, though I doubt it). We generally have found that with decent profiling, we can generally be measurably faster than gold in the single-threaded case. Or in other words, say we target being at least 10% faster than gold than gdb-index as reasonable to achieve with some profiling. Then we have 6+10 = 16% speedup on the table, which is fairly significant. </div><div><br></div><div>-- Sean Silva </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
George.<br>
______________________________<wbr>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div></div>