Alexander Schneider 0bb3773de6 Merge pull request #900 from hamiltont/install_box 11 anos atrás
..
templates 8753f4831a verify Fixed flask's fortunes test 11 anos atrás
README.md 96d0e605b1 Add description to README.md 12 anos atrás
__init__.py 736c409282 rough in flask based test 12 anos atrás
app.py 7626b81149 895 all changes work 11 anos atrás
benchmark_config c2fe5ff786 flask-pypy: Remove gunicorn. 11 anos atrás
install.sh fc1d35470c Fixing obvious fw_depends errors in install.sh files 11 anos atrás
requirements.txt 6f51fecb52 Add missing file. 11 anos atrás
setup.py 316bbf680c flask: json: 5k => 7k req/sec 11 anos atrás
setup_nginxuwsgi.py f532415394 master Should only kill with 15 11 anos atrás
setup_py3.py 5546131dc7 flask-py3: Remove gunicorn. 11 anos atrás
setup_pypy.py f7b3f2082c Downgrade gunicorn for tornado worker 11 anos atrás
source_code 66e46ee08e codeLineCount Create source_code file for each framework. Modify count_sloc to use gather_frameworks instead of a large list 12 anos atrás

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