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
- Host: GitHub
- URL: https://github.com/tokusumi/python-web-framework-benchmark-test
- Owner: tokusumi
- Created: 2020-01-02T00:45:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-10T22:27:24.000Z (almost 5 years ago)
- Last Synced: 2025-04-06T14:39:03.630Z (about 1 year ago)
- Topics: django, fastapi, flask, japronto, responder, wrk2
- Language: Jupyter Notebook
- Homepage:
- Size: 991 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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