Re: prelink performance gains

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 15 Oct 2013 21:10:34 +0200, Chris Adams wrote:
> Do you really run "gnome-open --help" 1000 times per reasonable unit of
> time (or ever)?  Please stop using bogus comparisons and highly
> contrived tests.  They do nothing to help your argument.

The goal of this example was to show that in a special case of shell script
prelink does bring very significant performance improvements.
Real world cases would have expectedly lower but still valid improvement.

I have tested a possibly real world script:
	rm *;sync;(time for i in `seq 0 89`;do mplayer &>/dev/null -nosound -vo png -ss $i -endpos 0 video.mp4;mv 00000001.png $i.png;done) 2>&1|grep ^real|tee -a /tmp/times

without prelink:
6.220s 6.212s 6.218s 7.463s 6.277s 6.216s 6.203s 6.255s 6.209s 6.205s

with prelink:
6.560s 6.496s 6.501s 6.530s 6.583s 6.616s 6.511s 6.498s 6.489s 6.915s

I do not think these numbers need too deep statistical analysis.

-=without prelink
+=with prelink
 runtime linker statistics:
-  total startup time in dynamic loader: 28010379 clock cycles
+  total startup time in dynamic loader: 34141440 clock cycles
-	    time needed for relocation: 19069899 clock cycles (68.0%)
+	    time needed for relocation: 25601766 clock cycles (74.9%)
-        number of relative relocations: 73592
+        number of relative relocations: 0
-	   time needed to load objects: 8138088 clock cycles (29.0%)
+	   time needed to load objects: 7724814 clock cycles (22.6%)

>From some looking at it I do not understand now what happens there.
It should be debugged and fixed.


Jan
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux