[Python-ideas] Async API: some code to review

Carlo Pires carlopires at gmail.com
Tue Oct 30 21:33:12 CET 2012


2012/10/30 Guido van Rossum <guido at python.org>

>
> Here's another unscientific benchmark: I wrote a stupid "http" server
> (stupider than echosvr.py actually) that accepts HTTP requests and
> responds with the shortest possible "200 Ok" response. This should
> provide an adequate benchmark of how fast the event loop, scheduler,
> and transport are at accepting and closing connections (and reading
> and writing small amounts). On my linux box at work, over localhost,
> it seems I can handle 10K requests (sent using 'ab' over localhost) in
> 1.6 seconds. Is that good or bad? The box has insane amounts of memory
> and 12 cores (?) and rates at around 115K pystones.
>

Take a look at

http://nichol.as/benchmark-of-python-web-servers

It is a bit outdated but can be useful to get some insight.
-- 
  Carlo Pires
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20121030/5d714397/attachment.html>


More information about the Python-ideas mailing list