Slow startup?

Jo Vermeulen jo at lumumba.luc.ac.be
Thu Apr 14 23:06:56 BST 2005


Op 14-apr-05 om 21:14 heeft Alec Berryman het volgende geschreven:

> Jo Vermeulen on 2005-04-14 20:34:38 +0200:
>
>> It seems on our (Ubuntu Linux) server this code is less slow (equally
>> fast as socket.gehostname()):
>>
>> $ time python hostname.py
>> real    0m0.179s
>> user    0m0.121s
>> sys     0m0.028s
>>
>> $ time python fqdn.py
>> real    0m0.174s
>> user    0m0.120s
>> sys     0m0.035s
>>
>> Which is quite weird. This is btw a fairly old system (P-II 233 MHz).
>
> As another datapoint, FreeBSD 5.4-STABLE, also an old system (Celeron
> 1000MHz):
>
> $ time python fqdn.py
> python fqdn.py  0.06s user 0.03s system 95% cpu 0.091 total
> $ time python hostname.py
> python hostname.py  0.05s user 0.03s system 96% cpu 0.085 total
> $ time bzr
> [usage: bzr COMMAND
>   try "bzr help"
> bzr  0.30s user 0.05s system 44% cpu 0.774 total
>
> (no .pyc's)

Thanks for your tests!

Cheers,

-- 
Jo Vermeulen <jo at lumumba.luc.ac.be>
http://lumumba.luc.ac.be/jo/





More information about the bazaar mailing list