urllib slow on FreeBSD 4.7? sockets too

Mike Brown mike at skew.org
Sat Nov 23 03:42:30 EST 2002


"Roberto Amorim" <wolfoxbr at hotmail.com> wrote:
> I got similar results to the FreeBSD times running your server/client
> scripts on a Windows 2000 machine with Python 2.2.2.

Using 2.2.1 on a Windows 2000 machine, I got similar results as well.

> 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).

Using 2.1.1 on FreeBSD, the results are the same as they were under 2.2.1.

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

FreeBSD doesn't come with wget, though it's easy to install. fetch, as used
by the ports collection, is functionally equivalent. And yes, it's normal...

/usr/bin/time fetch http://localhost/4MBfile
Receiving 4MBfile (4343332 bytes): 100%
4343332 bytes transferred in 0.7 seconds (6.20 MBps)
        0.79 real         0.01 user         0.06 sys

Off to try some of the other suggestions...





More information about the Python-list mailing list