[python-uk] urllib latency

Giorgio Zoppi giorgio.zoppi at gmail.com
Mon Dec 20 15:04:12 CET 2010


2010/12/20 Matt Hamilton <matth at netsight.co.uk>:
> Ok, here's a non job related post...
>
> Anyone know why urllib.urlopen() can be so much slower than using ab to do the same thing? I seem to be getting an extra 100ms latency on a simple HTTP GET request of a static, small image.
> I've tried it repeatedly and get consistent results. The server under test is a cluster of Plone instances behind haproxy. The client and server are connected via 100Mbit fairly lightly loaded network.
>
> I've tried taking the read() part out, still the same... I've tried using urllib2 and still pretty much the same.

How does work twisted in this case?

-- 
Quiero ser el rayo de sol que cada día te despierta
para hacerte respirar y vivir en me.
"Favola -Moda".


More information about the python-uk mailing list