Skip to content

rbagunas/api-load-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ§ͺ API Load Testing with Locust

This project demonstrates how to simulate API traffic and measure performance using Locust, a modern load testing tool for Python.

πŸ” What It Does

  • Sends concurrent requests to a sample API endpoint
  • Measures latency, throughput, and request failures
  • Provides a real-time web dashboard for monitoring

🧰 Stack

  • Python 3
  • Locust

πŸ“‚ Project Structure

api-load-testing/
β”œβ”€β”€ locustfile.py
β”œβ”€β”€ requirements.txt
└── README.md

πŸš€ Usage

1. Install dependencies

pip install -r requirements.txt

2. Run Locust

locust

3. Open Web UI

Visit: 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.

About

Simulate traffic to a sample API and visualize test results.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages