/frameworks/Python/flask/README.md

https://github.com/quangIO/FrameworkBenchmarks · Markdown · 46 lines · 29 code · 17 blank · 0 comment · 0 complexity · 8df6c762d1f234bf89ea538b81482861 MD5 · raw file

  1. # [Flask](http://flask.pocoo.org/) Benchmark Test
  2. The information below is specific to Flask. For further guidance,
  3. review the [documentation](http://frameworkbenchmarks.readthedocs.org/en/latest/).
  4. Also note that there is additional information that's provided in
  5. the [Python README](../).
  6. This is the Python Flask portion of a [benchmarking tests suite](../../)
  7. comparing a variety of frameworks.
  8. All test implementations are located within a single file
  9. ([app.py](app.py)).
  10. ## Description
  11. Flask + Flask-SQLAlchemy
  12. ### Database
  13. MySQL (mysqlclient on CPython, PyMySQL on PyPy)
  14. ### Server
  15. * gunicorn+meinheld on CPython
  16. * Tornado on PyPy
  17. ## Test URLs
  18. ### JSON Encoding
  19. http://localhost:8080/json
  20. ### Single Row Random Query
  21. With ORM:
  22. http://localhost:8080/dbs
  23. Without ORM (raw):
  24. http://localhost:8080/dbsraw
  25. ### Variable Row Query Test
  26. With ORM:
  27. http://localhost:8080/db?queries=2
  28. Without ORM (raw):
  29. http://localhost:8080/dbraw?queries=2