dependabot[bot] bf6f0a92bf Bump ujson from 4.0.2 to 5.1.0 in /frameworks/Python/flask (#7058) hace 3 años
..
templates 8d34aff41c [Flask] Some additional clean-up and tuning (#6712) hace 4 años
README.md 8d34aff41c [Flask] Some additional clean-up and tuning (#6712) hace 4 años
app.py 8d34aff41c [Flask] Some additional clean-up and tuning (#6712) hace 4 años
app_raw.py 8d34aff41c [Flask] Some additional clean-up and tuning (#6712) hace 4 años
benchmark_config.json 3b2474212d Improved Flask code (#6688) hace 4 años
config.toml 3b2474212d Improved Flask code (#6688) hace 4 años
flask-nginx-uwsgi.dockerfile 3b2474212d Improved Flask code (#6688) hace 4 años
flask-pypy-raw.dockerfile 3b2474212d Improved Flask code (#6688) hace 4 años
flask-pypy.dockerfile 3b2474212d Improved Flask code (#6688) hace 4 años
flask-raw.dockerfile 8d34aff41c [Flask] Some additional clean-up and tuning (#6712) hace 4 años
flask.dockerfile 3b2474212d Improved Flask code (#6688) hace 4 años
gunicorn_conf.py 8d34aff41c [Flask] Some additional clean-up and tuning (#6712) hace 4 años
helpers.py 8d34aff41c [Flask] Some additional clean-up and tuning (#6712) hace 4 años
nginx.conf e332050c3b python: Use /var/tmp instead of /tmp for unix socket. hace 8 años
requirements-pypy.txt bf6f0a92bf Bump ujson from 4.0.2 to 5.1.0 in /frameworks/Python/flask (#7058) hace 3 años
requirements.base 8d4060677a Update python and some frameworks. (#3245) hace 7 años
requirements.txt bf6f0a92bf Bump ujson from 4.0.2 to 5.1.0 in /frameworks/Python/flask (#7058) hace 3 años
uwsgi.ini e332050c3b python: Use /var/tmp instead of /tmp for unix socket. hace 8 años

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-Pony

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