Skip to content

tokusumi/python-web-framework-benchmark-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages