This project demonstrates how to simulate API traffic and measure performance using Locust, a modern load testing tool for Python.
- Sends concurrent requests to a sample API endpoint
- Measures latency, throughput, and request failures
- Provides a real-time web dashboard for monitoring
- Python 3
- Locust
api-load-testing/
βββ locustfile.py
βββ requirements.txt
βββ README.md
pip install -r requirements.txtlocustVisit: http://localhost:8089
Enter:
- Host: your API base URL (e.g.,
http://localhost:5000) - Number of users and spawn rate
Ideal for testing performance of REST APIs, microservices, and web apps.