This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kostja
Recipients Thorben, ggenellina, giampaolo.rodola, kostja, pitrou, samslists, thorben
Date 2010-12-31.11:58:09
SpamBayes Score 1.0009773e-08
Marked as misclassified No
Message-id <1293796692.25.0.742783860843.issue3766@psf.upfronthosting.co.za>
In-reply-to
Content
I was able to observe the same issue:

I'm using Python 2.6.5 on Ubuntu 10.0.4 LTS. My system is 64 bit Intel Core I7, Quad core, Linux kernel 2.6.32-generic x86_64, Ubuntu EGLIBC 2.11.1-0ubuntu7.5.

A simple client TCP socket, which sends 35 bytes over to a server on localhost and receives 20 bytes in response, produces only 22 RPS. An identical application written in C gives me 7000 RPS. TCP_NODELAY is on on the server side. Turning on TCP_NODELAY on the client gives me ~500 RPS in Python (which I'm satisfied with, 'cause I think I then hit other bottlenecks). 
Still, such low performance on by default can be surprising and hard to debug.
History
Date User Action Args
2010-12-31 11:58:12kostjasetrecipients: + kostja, ggenellina, pitrou, giampaolo.rodola, Thorben, thorben, samslists
2010-12-31 11:58:12kostjasetmessageid: <1293796692.25.0.742783860843.issue3766@psf.upfronthosting.co.za>
2010-12-31 11:58:09kostjalinkissue3766 messages
2010-12-31 11:58:09kostjacreate