tfb 13e621ef5d Fixed flask's app.py to have DBHOSTNAME 12 vuotta sitten
..
templates 4c48171bfb Add fortunes.html 12 vuotta sitten
README.md 96d0e605b1 Add description to README.md 12 vuotta sitten
__init__.py 736c409282 rough in flask based test 12 vuotta sitten
app.py 13e621ef5d Fixed flask's app.py to have DBHOSTNAME 12 vuotta sitten
benchmark_config 1478780140 Fix webserver name. 12 vuotta sitten
setup.py 4d6bfb9258 Further updates to a few py2 setup.py scripts 12 vuotta sitten
setup_nginxuwsgi.py 4d6bfb9258 Further updates to a few py2 setup.py scripts 12 vuotta sitten
setup_py3.py 401575b600 bottle, flask: Increase process. 12 vuotta sitten
setup_pypy.py 401575b600 bottle, flask: Increase process. 12 vuotta sitten
source_code 66e46ee08e codeLineCount Create source_code file for each framework. Modify count_sloc to use gather_frameworks instead of a large list 12 vuotta sitten

README.md

Flask Benchmark Test

Single file test, app.py

Description

Flask + Flask-SQLAlchemy

Interpreter

  • CPython 2.7.4
  • PyPy 2.0

Database

MySQL (MySQL-python on CPython, PyMySQL on PyPy)

Server

  • gunicorn+meinheld on CPython
  • Tornado on PyPy

Test URLs

JSON Encoding

http://localhost:8080/json

Single Row Random Query

With ORM:

http://localhost:8080/dbs

Without ORM (raw):

http://localhost:8080/dbsraw

Variable Row Query Test

With ORM:

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

Without ORM (raw):

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