https://github.com/midnighter/starlette-delay
Experiment with internal delay of asynchronous tasks caused by the event loop.
https://github.com/midnighter/starlette-delay
Last synced: 11 months ago
JSON representation
Experiment with internal delay of asynchronous tasks caused by the event loop.
- Host: GitHub
- URL: https://github.com/midnighter/starlette-delay
- Owner: Midnighter
- License: agpl-3.0
- Created: 2020-06-11T20:09:49.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-05-19T07:10:35.000Z (about 2 years ago)
- Last Synced: 2025-01-04T20:15:03.492Z (over 1 year ago)
- Language: Jupyter Notebook
- Size: 1.41 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Measuring Starlette Delay
A minimal [Starlette](https://www.starlette.io/) application running on
[uvicorn](https://www.uvicorn.org/) and benchmarking provided by
[Locust](https://locust.io/).
## Usage
If you want to repeat the experiment, for example, with modified parameters, you
first need to start all services. Locust is configured to run a two minutes
benchmark.
```
docker-compose up
```
After the Locust manager exists, please end the stack (by pressing Ctrl + C).
You can then look at the [Jupyter
notebook](notebooks/response_times_and_delay.ipynb) for inspiration how to
analyze the outcomes.
## Copyright
* Copyright © 2020, Moritz E. Beber.
* Free software licensed under the [GNU Affero General Public License version
3](LICENSE).