On 06/19/2011 06:39 AM, Timo Teräs wrote:
> On 06/19/2011 05:54 AM, Denys Vlasenko wrote:
>> On Saturday 18 June 2011 17:56, Timo Teräs wrote:
>>> Speeds up considerably config file parsing.
>>>
>>> Signed-off-by: Timo Teräs <[email protected]>
>>
>> # time ./z ./busybox_old 2>/dev/null
>> real    0m5.337s
>> user    0m4.655s
>> sys     0m0.393s
>>
>> # time ./z ./busybox 2>/dev/null
>> real    0m5.150s
>> user    0m4.291s
>> sys     0m0.379s
>>
>> Again, some win, but it's small. However, I use uclibc configured without 
>> threads.
> 
> For both patches 1 and 3.
> 
> The speed up depends on the size of your modules.dep and the amount of
> aliases in /etc/modprobe.d.
> 
> I was testing with stock Ubuntu kernel modules data, and speed up was
> enough to justify the byte addition.

For reference.

Loop of 100 runs.

Original:

real    0m5.234s
user    0m4.824s
sys     0m0.172s

Both patches applied:

real    0m2.065s
user    0m1.648s
sys     0m0.188s

Did your script really run the right busybox?

- Timo
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to