/python-web-framework-benchmark-test

Python WEB Framework Benchmark Test

Primary LanguageJupyter Notebook

performance check of Python web frameworks

Basic Usage

  1. run web server
  2. use wrk2
  3. visualize

1. run web server

see /*/README.md
this repository includes the follows,

  • Django 2.X
  • Flask
  • japronto
  • responder
  • FastAPI

2. use wrk2

install wrk2

see,

use wrk2

ex) measure responder server

$ cd wrk2
$ . ./responder.sh

if you measure others, call followings,

  • Django 2.X: django.sh
  • Flask: flask.sh
  • japronto: japronto.sh
  • responder: responder.sh
  • FastAPI: fastapi.sh

Customize Options

Default options is defined in /wrk2/attack.sh. They are simple lines of command line for wrk2. You can change each lines you want, referring to command line options

3. visualize

pip install

$ python -m venv env
$ source env/bin/activate
$ pip install -r requirements.txt

visualization with jupyter notebook

$ jupyter notebook

then, open visualize.ipynb