Skip to content

Instantly share code, notes, and snippets.

@mironovdm
Last active August 8, 2019 21:14
Show Gist options
  • Save mironovdm/1324ea0e9b71eb10fe3c77175296fec4 to your computer and use it in GitHub Desktop.
Save mironovdm/1324ea0e9b71eb10fe3c77175296fec4 to your computer and use it in GitHub Desktop.
Python web servers performance
"Hello world" web server benchmarks
HW: Intel Core i7-4700HQ, 8Gb DDR3
Ubuntu 18.04.2 LTS WSL, Python 3.6.7
w= - workers
lat= - avg. latency
SERVER ~RPS
-------------------------------------------
flask dev werkzeug 400
gunicorn sync flask 700
gunicorn sync wsgi 800
CherryPy 1 700
bjoern flask 7 000
gunicorn flask eventlet 8 500
gunicorn wsgi gthread 10 500
w=8 lat=1.92
uWSGI wsgi flask 11 600
debian 10, --process 4
gunicorn wsgi gevent 14 000
gunicorn wsgi eventlet 14 200
gunicorn flask meinheld 15 600
gunicorn aiohttp 15 000
w=8 lat=6.51
gunicorn aiohttp uvloop 22 000
w=8 lat=4.42ms
aiohttp built-in server 5 200
with uvloop 6 500
sanic built-in server 13 200
bjoern wsgi 25 000
gunicorn wsgi meinheld 36 000
Go net/http 33 000
Go fasthttp 45 000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment