urllib slow on FreeBSD 4.7? sockets too

Roberto Amorim wolfoxbr at hotmail.com
Fri Nov 22 07:37:12 EST 2002


> On the FreeBSD 4.7-STABLE machine, you need 2 to 17 chunks each time, and
> this is what the receiving end looks like:
> read 501760 bytes in 0.053s (9160 KB/s)
> read 512000 bytes in 0.041s (12338 KB/s)
> read 522240 bytes in 0.059s (8707 KB/s)
> read 532480 bytes in 0.064s (8092 KB/s)
> read 542720 bytes in 0.058s (9163 KB/s)
> read 552960 bytes in 0.068s (7927 KB/s)
> read 563200 bytes in 0.070s (7879 KB/s)
> read 573440 bytes in 0.054s (10460 KB/s)
> read 583680 bytes in 0.065s (8770 KB/s)
> read 593920 bytes in 0.074s (7788 KB/s)
> read 604160 bytes in 0.078s (7520 KB/s)

I got similar results to the FreeBSD times running your server/client
scripts on a Windows 2000 machine with Python 2.2.2.

I've noticed the Python versions are different (2.1.1 on Mandrake,
2.2.1 on FreeBSD). Perhaps you should try the same version? Python 2.2
introduced the new type/class structure and perhaps sockets were
affected (for some unknown reason).

It's really odd, since FreeBSD sockets usually have very good
performance. Did you try wget on FreeBSD? Is it normal?

Roberto



More information about the Python-list mailing list