Looking for a high performance web server written in Python, and supports CGI/FastCGI

Jack nospam at invalid.com
Fri Jul 7 12:39:08 EDT 2006


I wrote the last posting at late late night and I didn't know what I was
typing at that time ;-p

I didn't mean the test with CherryPy was not concurrent
connections, or the test with lighttpd was all concurrent
connections. I actually tried both concurrent (-c in ab command line)
and non-concurrent (without -c in ab command line) and I tried
the threading and threadpooling in CherryPy. The result did not
vary much.

This article http://www.cherrypy.org/wiki/CherryPySpeed says CherryPy
can process around 400-500 requests/second. It's set up is:

  Pentium M 1.6, 1G RAM, Windows XP2 laptop, test done with apache 2.0.41 
ab.

I have a slightly better hardware set up:

  Pentium M 1.7MHz, 1.5G RAM on Windows XP2 laptop, test done with Apache 
2.2 ab

However, I don't get even close. The best I get is around 140
requests/second. I'm using the same test script as the CherryPy test
with slight modification just to make it run. As a matter of fact,
the Cygwin build of lighttpd only gets around 430 requests/second for
a 2-byte static file. I disabled firewall and antivirus on the box when
tests were done. Any idea about the huge difference? It would be very
interesting if some CherryPy (or python) users can post their performance
benchmarks.

Jack

"Jack" <nospam at invalid.com> wrote in message 
news:rbWdnY8e6_awpTPZnZ2dnUVZ_vadnZ2d at comcast.com...
>I just did some testing between CherryPy's web server and lighttpd.
> My test was very simple and I used ab.exe for this purpose.
> CherryPy web server can serve about 140 simple request / second, while
> lighttpd can handle around 400 concurrent requests.
>
>> You haven't really said much about your requirements though.  Perhaps
>> if you describe them in more detail (for example, what does "high
>> performance" mean to you?) someone can make a more useful recommendation.
>>
>> Jean-Paul
>
> 





More information about the Python-list mailing list