kombu-pyamqp-threadsafe Benchmarks
Comprehensive benchmark suite for evaluating performance and reliability of kombu-pyamqp-threadsafe.
What is this?
kombu-pyamqp-threadsafe is a thread-safe implementation of the pyamqp transport for kombu. This documentation contains:
- Benchmarking methodology — what and how we measure
- Test results — current performance metrics
- Reproduction guide — how to run benchmarks yourself
Key Metrics
Benchmark Categories
| Category | Description | Key Metric |
|---|---|---|
| Throughput | Message publishing throughput | msg/s |
| Scalability | Scaling with consumer count | consumers → throughput |
| Recovery | Recovery time after failures | ms to recovery |
| Stability | Deadlock and data loss prevention | 0 errors |
Quick Start
# Start RabbitMQ and Toxiproxy
docker compose -f docker-compose.test.yml up -d
# Run benchmarks
python scripts/run_benchmarks.py
# Generate report
python scripts/run_benchmarks.py --report
Test Architecture
tests/benchmarks/
├── conftest.py # pytest fixtures
├── bench_throughput.py # Throughput tests
├── bench_realistic.py # Realistic scenarios
├── bench_recovery_latency.py # Recovery tests
├── bench_race_conditions.py # Chaos testing
└── bench_comprehensive.py # Comprehensive tests
Tools
- pytest — testing framework
- Toxiproxy — network failure simulation
- RabbitMQ — AMQP broker
- matplotlib — result visualization