Built for Engineers • Designed for Scale • Optimized for Performance
Overview • Features • Engine • Metrics • Installation • Quick Start • CLI • Reports • Legal • Contributing • License
BSB Havoc is a modern asynchronous load testing engine built to simulate real-world traffic patterns and measure system performance under pressure.
It provides high concurrency, low resource overhead, and accurate performance analytics — making it ideal for:
- API performance testing
- Backend stress testing
- Infrastructure benchmarking
- CI/CD performance validation
| Category | Capability | Benefit |
|---|---|---|
| ⚡ Performance | Massive async concurrency | Realistic traffic simulation |
| 📊 Monitoring | Live RPS & latency tracking | Instant performance insight |
| 📈 Analytics | Percentiles & distributions | Deep performance visibility |
| 🛡 Control | Safe ramp-up & stop controls | Prevent accidental overload |
| 📁 Reporting | JSON export support | Easy integration with tools |
BSB Havoc is powered by a non-blocking async architecture:
- Built using asyncio + aiohttp
- Efficient connection pooling
- Persistent sessions for realistic load
- Minimal CPU & memory footprint
This allows high request throughput while keeping the testing environment stable.
During a test run, the CLI dashboard displays:
- Requests Per Second (RPS)
- Average / Min / Max Latency
- P50 / P90 / P95 / P99 Percentiles
- Success vs Failure Counts
- HTTP Status Code Distribution
All metrics update live in the terminal.
pip install bsb-havoc --upgradegit clone https://github.com/Shawpon2/bsb-havoc.git
cd bsb-havoc
pip install -r requirements.txt
python setup.py installbsb-havoc --versionRun a simple performance test against your own test server:
bsb-havoc https://your-server.com -c 500 -d 60This will:
- Launch 500 concurrent virtual users
- Run for 60 seconds
- Show live performance metrics
| Option | Description |
|---|---|
-c, --connections |
Number of concurrent users |
-d, --duration |
Test duration in seconds |
-t, --timeout |
Request timeout value |
--ramp |
Gradually increase load |
--output |
Export results to JSON |
bsb-havoc https://staging.example.com -c 1000 -d 120bsb-havoc https://api.example.com -c 3000 -d 180 --ramp