[python-uk] urllib latency

Jon Ribbens jon+python-uk at unequivocal.co.uk
Tue Dec 21 14:31:06 CET 2010

On Tue, Dec 21, 2010 at 10:39:23AM +0000, Matt Hamilton wrote:
> And then re-running the tests from the same python prompt that was
> open just before I wrote that email and I now have the 100ms delay
> back again... yet not still in ab. Quitting and starting a new
> python process and I still have the delay.

Trying it here with a web server on localhost I get ~1.7ms with urllib
and 0.4ms with ab, or a remote web server gives 9ms with urllib and
8ms with ab - which I guess is kinda what I would expect. So it
doesn't appear to be a generic problem with urllib. (Python 2.6.5)

More information about the python-uk mailing list