LWN.net Logo

Piël: Benchmark of Python Web Servers

Here is an extensive set of performance benchmark results from 14 Python web application servers, done by Nicholas Piël. "The top performers are clearly FAPWS3, uWSGI and Gevent. FAPWS3 has been designed to be fast and lives up the expectations, this has been noted by others as well as it looks like it is being used in production at Ebay. uWSGI is used successfully in production at (and in development by) the Italian ISP Unbit. Gevent is a relatively young project but already very successful. Not only did it perform great in the previous async server benchmark but its reliance on the Libevent HTTP gives it a performance beyond the other asynchronous frameworks."
(Log in to post comments)

PostgreSQL?

Posted Mar 16, 2010 17:32 UTC (Tue) by dmarti (subscriber, #11625) [Link]

Async web servers look k3wl. But in a threaded framework such as CherryPy you can just open a PostgreSQL connection per thread and use it with no* worries. But "Psycopg support for asynchronous queries is still experimental". Anyone using one of the async servers with PostgreSQL and making it work?

PostgreSQL?

Posted Mar 16, 2010 17:39 UTC (Tue) by hazmat (subscriber, #668) [Link]

you can use one of the pure python postgresql adapters (pg8000, bpgsql,
etc), the greenlet frameworks typically end up patching the socket module,
so the pure python adapters should work fine for them. the gevent lists has
an example of someone doing this with the pure python mysql adapter.

PostgreSQL?

Posted Mar 16, 2010 18:04 UTC (Tue) by nteon (subscriber, #53899) [Link]

python postgres was discussed a couple weeks ago here,
http://lwn.net/Articles/374627/

Copyright © 2010, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds