TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Benchmark of Python web servers

86 pointsby nichol4sabout 15 years ago
A benchmark of 14 different Python WSGI web servers.

8 comments

delanoabout 15 years ago
<i>Ruby might be full with all kinds of rockstar programmers (whatever that might mean) but if i have to nominate just one Python programmer with some sort of ‘rockstar award’ i would definitely nominate Chad Whitacre. Its not only the great tools he created; Testosterone, Aspen, Stephane. But mostly how he promotes them with the most awesome screencasts i have ever seen.</i><p>It's true. I'm not sure if the first 30 seconds of any technical screencast can get any better than this:<p><a href="http://www.zetadev.com/software/testosterone/screencast.html" rel="nofollow">http://www.zetadev.com/software/testosterone/screencast.html</a>
ubernostrumabout 15 years ago
Unfortunately there are several problems being pointed out with this benchmark:<p>* Some of the servers tested aren't designed to interact directly with clients over a network, and are meant instead to run proxied over a local socket behind something else like nginx. The benchmark is inconsistent in whether it actually does this, though, which makes the numbers useless for comparison purposes.<p>* Several of these servers use preforking architectures which assume the ability to have multiple workers available to service requests. Yet the benchmark deliberately limited them to only one worker, which makes the numbers useless for gauging actual peformance under concurrent load.
评论 #1197028 未加载
swannodetteabout 15 years ago
I love CherryPy because I like simple software. That it can hold it's own on benchmarks is icing on the cake.<p>I admit that getting your head around configuration for the first time is an hour or two of staring at documentation, but once you get past that you'll <i>love</i> how simple it is. Getting it running under Apache via mod_wsgi is also a refreshing breeze.<p>Where Django is great for building websites, the beautiful transparency of CherryPy is excellent for building webservices (no cryptic errors).<p>We're using CherryPy with Routes, CouchDB, couchdb-python, couchdb-lucene, and lxml for a web annotation project and we couldn't be happier.
benoitcabout 15 years ago
Like said david in comments of this post, gunicorn is specifically designed to run behind a proxy like nginx. You should use 2x or 2x+1 numbers of cores.<p>Also limiting its use to one worker is constraining any possibilities for concurrency in its responses. (grainbows built over gunicorn and using gevent or eventlet is better for that).<p>Some other servers in the tests have same kind of specifications.
reynoldsabout 15 years ago
What I really love about CherryPy is that I can use its web server without having to use the framework itself.
megaman821about 15 years ago
Thanks to the author for a thorough and well-written benchmark article.<p>I have been following the development of gevent lately, I am glad it did so well in these benchmarks.
mark_l_watsonabout 15 years ago
Interesting and I liked the CherryPy results. I used CherryPy a lot 5 to 6 years ago back in my Python using days -- simple and does the job.<p>That said, database access, network latency, caching, etc. are so important that you might as well just use the framework you like, then tune if required.
评论 #1197412 未加载
joshuabout 15 years ago
Is it just me or is the the first graph almost impossible to read?