<div dir="ltr"><div><br></div>Very nice job James.<div>Thanks to give us these details. </div><div>Numbers give sometimes more than tons of words !</div><div><br></div><div> Lionel.<br><div class="gmail_extra"><br><div class="gmail_quote">2015-04-08 18:00 GMT+02:00 <span dir="ltr"><<a href="mailto:devel-request@lists.laptop.org" target="_blank">devel-request@lists.laptop.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Date: Wed, 8 Apr 2015 13:47:27 +1000<br>
From: James Cameron <<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>><br>
To: <a href="mailto:support-gang@lists.laptop.org">support-gang@lists.laptop.org</a>, <a href="mailto:devel@lists.laptop.org">devel@lists.laptop.org</a>,<br>
<a href="mailto:sugar-devel@lists.sugarlabs.org">sugar-devel@lists.sugarlabs.org</a><br>
Subject: Re: XO-1 vs Sugar 0.104 performance, and swap to NAND Flash<br>
Message-ID: <<a href="mailto:20150408034727.GI9935@us.netrek.org">20150408034727.GI9935@us.netrek.org</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Browse is one of the most heavily used activities when internet or<br>
local content is available.<br>
<br>
Tests were run over many hours on several XO-1 laptops. The XO-1 is<br>
an old design which is slow enough to give useful statistics.<br>
<br>
The results show a continued improvement to startup time over the<br>
recent versions of Sugar, and a very small advantage to using swap<br>
memory.<br>
<br>
--<br>
<br>
The first test was to reboot, wait for Sugar to start, then<br>
automatically start the Browse activity, and time how long it took to<br>
start. Then the results of hundreds of tests were averaged.<br>
<br>
Browse-140 on 12.1.0 with Sugar 0.94 took 25 seconds.<br>
<br>
Browse-149.4 on 13.2.1 with Sugar 0.98 took 23 seconds.<br>
<br>
Browse-157 on 13.2.4 with Sugar 0.104 and no swap took 21 seconds.<br>
<br>
Browse-157 on 13.2.4 with Sugar 0.104 and NAND swap took 20 seconds.<br>
<br>
This shows continued improvement to Browse startup time, in the<br>
scenario where the libraries have to be loaded into memory.<br>
<br>
(Reference: test #8, and #9)<br>
<br>
--<br>
<br>
Another test started and stopped the Browse activity 25 times without<br>
rebooting. Then the results were averaged.<br>
<br>
Browse-140 on 12.1.0 with Sugar 0.94 took 14 seconds.<br>
<br>
Browse-149.4 on 13.2.1 with Sugar 0.98 took 15 seconds.<br>
<br>
Browse-157 on 13.2.4 with Sugar 0.104 and NAND swap took 13 seconds.<br>
<br>
This shows some improvement to Browse startup time, in the scenario<br>
where the needed libraries are already loaded into memory.<br>
<br>
(Reference: test #6)<br>
<br>
--<br>
<br>
The same test also started and stopped most of the other activities<br>
25 times without rebooting. Then the results were averaged.<br>
<br>
For Sugar 0.96 the average startup time was 15 seconds the first time,<br>
and 11 seconds each subsequent time.<br>
<br>
For Sugar 0.98 the average startup time was 17 seconds the first time,<br>
and 13 seconds each subsequent time.<br>
<br>
For Sugar 0.104 the average startup time was 14 seconds the first<br>
time, and 11 seconds each subsequent time.<br>
<br>
Detailed results by activity below. The key for these tables is:<br>
<br>
cold = startup time for first start after sugar restart.<br>
warm = average of startup time for subsequence starts.<br>
std = population standard deviation for warm starts.<br>
ratio = a ratio comparing warm start to cold start times.<br>
tests = number of warm start tests recorded.<br>
<br>
For Sugar 0.96 the results by activity were:<br>
<br>
bundle_id cold warm std ratio tests<br>
<br>
com.garycmartin.Moon 10.595 10.643 0.531 1.005 24<br>
com.jotaro.ImplodeActivity 6.691 6.486 0.045 0.969 24<br>
org.laptop.AbiWordActivity 19.474 14.459 0.804 0.743 24<br>
org.laptop.AcousticMeasure 11.984 7.761 0.045 0.648 24<br>
org.laptop.Calculate 9.809 9.560 0.065 0.975 24<br>
org.laptop.HelpActivity 19.487 11.342 0.688 0.582 24<br>
org.laptop.MeasureActivity 12.478 10.246 0.085 0.821 24<br>
org.laptop.Memorize 16.229 13.243 0.539 0.816 24<br>
org.laptop.Oficina 10.421 9.490 0.431 0.911 24<br>
org.laptop.Pippy 6.421 6.150 0.050 0.958 24<br>
org.laptop.RecordActivity 12.563 11.179 0.346 0.890 24<br>
org.laptop.TamTamMini 16.676 14.414 0.338 0.864 24<br>
org.laptop.WebActivity 23.335 14.260 0.241 0.611 24<br>
tv.alterna.Clock 8.782 8.631 0.067 0.983 24<br>
vu.lux.olpc.Maze 11.699 8.731 0.269 0.746 24<br>
vu.lux.olpc.Speak 15.187 11.460 0.261 0.755 24<br>
<br>
For Sugar 0.98 the results by activity were:<br>
<br>
bundle_id cold warm std ratio tests<br>
<br>
com.garycmartin.Moon 12.946 11.039 0.372 0.853 24<br>
com.jotaro.ImplodeActivity 11.494 11.352 0.499 0.988 24<br>
org.laptop.AbiWordActivity 26.611 21.501 1.041 0.808 24<br>
org.laptop.AcousticMeasure 14.865 12.949 0.351 0.871 24<br>
org.laptop.Calculate 12.063 10.220 0.207 0.847 24<br>
org.laptop.HelpActivity 18.378 11.101 0.311 0.604 24<br>
org.laptop.MeasureActivity 19.566 13.791 0.308 0.705 24<br>
org.laptop.Memorize 20.977 14.462 0.791 0.689 24<br>
org.laptop.Oficina 14.216 13.948 0.246 0.981 24<br>
org.laptop.Pippy 11.793 10.983 0.141 0.931 24<br>
org.laptop.RecordActivity 18.459 13.165 0.514 0.713 24<br>
org.laptop.sugar.Jukebox 16.346 11.466 0.292 0.701 24<br>
org.laptop.sugar.ReadActivity 16.407 13.253 0.597 0.808 24<br>
org.laptop.TamTamMini 20.218 16.475 0.638 0.815 24<br>
org.laptop.WebActivity 22.427 14.587 0.329 0.650 24<br>
tv.alterna.Clock 9.943 7.377 0.264 0.742 24<br>
vu.lux.olpc.Maze 14.243 10.198 0.785 0.716 24<br>
vu.lux.olpc.Speak 22.032 13.281 1.150 0.603 24<br>
<br>
For Sugar 0.104 the results by activity were:<br>
<br>
bundle_id cold warm std ratio tests<br>
<br>
com.garycmartin.Moon 11.928 10.294 0.492 0.863 24<br>
com.jotaro.ImplodeActivity 9.084 9.017 0.498 0.993 24<br>
org.laptop.AbiWordActivity 20.868 16.862 0.376 0.808 24<br>
org.laptop.AcousticMeasure 12.330 10.513 0.137 0.853 24<br>
org.laptop.Calculate 11.591 9.920 0.120 0.856 24<br>
org.laptop.HelpActivity 14.654 8.981 0.329 0.613 24<br>
org.laptop.MeasureActivity 16.381 11.364 0.135 0.694 24<br>
org.laptop.Memorize 17.961 14.550 0.183 0.810 24<br>
org.laptop.Oficina 12.231 12.029 0.351 0.983 24<br>
org.laptop.Pippy 8.752 8.202 0.128 0.937 24<br>
org.laptop.RecordActivity 16.956 12.652 0.145 0.746 24<br>
org.laptop.sugar.Jukebox 9.666 8.986 0.108 0.930 24<br>
org.laptop.sugar.ReadActivity 11.296 10.477 0.165 0.928 24<br>
org.laptop.TamTamMini 18.628 14.734 0.576 0.791 24<br>
org.laptop.WebActivity 19.425 12.527 0.217 0.645 24<br>
tv.alterna.Clock 10.061 7.124 0.123 0.708 24<br>
vu.lux.olpc.Maze 8.366 8.265 0.120 0.988 24<br>
vu.lux.olpc.Speak 24.555 12.075 0.208 0.492 24<br>
<br>
(Reference: test #6)<br>
<br>
--<br>
<br>
The testing scripts can be made available if anybody else would like<br>
to replicate the results.<br>
<br>
--<br>
James Cameron<br>
<a href="http://quozl.linux.org.au/" target="_blank">http://quozl.linux.org.au/</a><br>
<br></blockquote></div></div></div></div>