concurrent-load-testing-pattern
CommunityFind LLM/API capacity with p50/p95/p99.
Authorsaintgo7
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Concurrency load testing for APIs/LLM gateways often produces misleading results if you only look at average latency or hit rate limits, making it hard to know where the real throughput ceiling is.
Core Features & Use Cases
- Async concurrency measurement (asyncio.gather + httpx): run deterministic, CI-friendly benchmarks to compute p50/p95/p99 latency and RPS precisely.
- Locust-based distributed verification: produce dashboard-friendly reports and validate results against the asyncio method.
- Key distribution + RPS ceiling methodology: use multiple keys to avoid RPM throttling and ramp concurrency to detect the throughput “knee”.
- Capacity decision metrics: combine RPS/TPS, success rate, p99 latency, and basic GPU/memory signals to decide sustainable concurrency.
Quick Start
Run a targeted concurrent load test and generate a benchmark report by providing multiple API keys via KEY_LIST and setting a target concurrency and requests-per-user.
Dependency Matrix
Required Modules
asynciohttpxlocust
Components
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: concurrent-load-testing-pattern Download link: https://github.com/saintgo7/claude-skills/archive/main.zip#concurrent-load-testing-pattern Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.