Slow startup?

Alec Berryman alec at thened.net
Thu Apr 14 20:14:24 BST 2005


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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050414/2be93de5/attachment.pgp 


More information about the bazaar mailing list