This project demonstrates how to perform load testing on REST APIs using the Locust framework.
The API Performance Profiler simulates multiple concurrent users sending requests to an API endpoint and measures performance metrics such as response time, throughput, and failure rate.
- Simulates concurrent users hitting an API
- Measures response time and latency
- Tracks request throughput (RPS)
- Displays results on an interactive dashboard
- Python
- Locust
- REST API Testing
- Install dependencies
pip install locust
- Run Locust
locust
- Open browser
- Enter test parameters and start load testing.
Tested endpoint: https://jsonplaceholder.typicode.com/posts
Users simulated: 10
Spawn rate: 2 users/sec
- Requests per second
- Average response time
- Failure rate
- Performance statistics dashboard