Rodolfo Carvalho a22c6bfc8f Fix typo (#6704) 4 年之前
..
templates fbcdb3118a Name python properly 11 年之前
README.md a22c6bfc8f Fix typo (#6704) 4 年之前
app.py 3b2474212d Improved Flask code (#6688) 4 年之前
app_raw.py 3b2474212d Improved Flask code (#6688) 4 年之前
benchmark_config.json 3b2474212d Improved Flask code (#6688) 4 年之前
config.toml 3b2474212d Improved Flask code (#6688) 4 年之前
flask-nginx-uwsgi.dockerfile 3b2474212d Improved Flask code (#6688) 4 年之前
flask-pypy-raw.dockerfile 3b2474212d Improved Flask code (#6688) 4 年之前
flask-pypy.dockerfile 3b2474212d Improved Flask code (#6688) 4 年之前
flask-raw.dockerfile 3b2474212d Improved Flask code (#6688) 4 年之前
flask.dockerfile 3b2474212d Improved Flask code (#6688) 4 年之前
gunicorn_conf.py 3b2474212d Improved Flask code (#6688) 4 年之前
nginx.conf e332050c3b python: Use /var/tmp instead of /tmp for unix socket. 8 年之前
requirements-pypy.txt 3b2474212d Improved Flask code (#6688) 4 年之前
requirements.base 8d4060677a Update python and some frameworks. (#3245) 7 年之前
requirements.txt 3b2474212d Improved Flask code (#6688) 4 年之前
uwsgi.ini e332050c3b python: Use /var/tmp instead of /tmp for unix socket. 8 年之前

README.md

Flask Benchmark Test

The information below is specific to Flask. For further guidance, review the documentation. Also note that there is additional information that's provided in the Python README.

This is the Python Flask portion of a benchmarking tests suite comparing a variety of frameworks.

All test implementations are located within a single file (app.py).

Description

Flask + Flask-SQLAlchemy

Database

PostgresQL (psycopg2 on CPython, psycopg2cffi on PyPy)

Server

  • gunicorn+meinheld on CPython
  • gunicorn on PyPy

Test URLs

JSON Encoding

http://localhost:8080/json

Single Row Random Query

With ORM (app.py):

http://localhost:8080/db

Without ORM (app_raw.py):

http://localhost:8080/db

Variable Row Query Test

With ORM (app.py):

http://localhost:8080/query?queries=2

Without ORM (app_raw.py):

http://localhost:8080/query?queries=2