An open API service indexing awesome lists of open source software.

https://github.com/tokusumi/python-web-framework-benchmark-test

Python WEB Framework Benchmark Test
https://github.com/tokusumi/python-web-framework-benchmark-test

django fastapi flask japronto responder wrk2

Last synced: 5 months ago
JSON representation

Python WEB Framework Benchmark Test

Awesome Lists containing this project

README

          

# 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,
- https://github.com/giltene/wrk2/wiki
### 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](https://github.com/wg/wrk#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