https://github.com/mirecl/benchhttpapi
bench for Actix-web (Rust) and Gorilla mux (Golang)
https://github.com/mirecl/benchhttpapi
Last synced: about 1 year ago
JSON representation
bench for Actix-web (Rust) and Gorilla mux (Golang)
- Host: GitHub
- URL: https://github.com/mirecl/benchhttpapi
- Owner: mirecl
- Created: 2021-04-09T10:40:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-09T13:27:42.000Z (over 4 years ago)
- Last Synced: 2025-01-19T10:33:09.925Z (over 1 year ago)
- Language: Jupyter Notebook
- Size: 6.61 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```bash
# Проверка сервиса Rust
curl -d '{"date":"31.12.2021","amount":10000,"rate":3.5,"periods":60}' -H "Content-Type: application/json" -X POST http://localhost:8080/deposit
# Проверка сервиса Golang
curl -d '{"date":"31.12.2021","amount":10000,"rate":3.5,"periods":60}' -H "Content-Type: application/json" -X POST http://localhost:8081/deposit
```
```bash
# Запуск сервиса locust (запуск нагрузки осуществляется через WEB-интерфейс http://127.0.0.1:8089)
./run.sh http://127.0.0.1:8080 nt.py 5
```
For check code use most popular linter:
+ flake8
```bash
pip install flake8
pip install flake8-bugbear
pip install flake8-eradicate
pip install flake8-fastapi # for only FastAPI
pip install flake8-functions-names
pip install pep8-naming
pip install flake8-docstrings
pip install flake8-pytest
pip install flake8-annotations
pip install flake8-black
pip install flake8-variables-names
```
+ pylint
```bash
pip install pylint
```
+ mypy
```bash
pip install mypy
```
```bash
# Запуск тестов
pytest -xs
```