This is a tool to benchmark RabbitMQ (AMQP 0-9-1) server performance.
It supports measuring the throughput and latency for publishing and consuming messages.
One of the most important metrics is the worst-case time, which quantifies the deterministic consistent performance that can be expected.
-
Start RabbitMQ server
docker compose up -d
-
Run the benchmark for 30 seconds. One publisher and one consumer. The default test mode
cargo run -r -- --server amqp://guest:guest@localhost:8491/ --duration 10 --interval 0.05 basic
-
This will report on the latency (round-trip time) and the throughput.
Task 0: sent 201 messages, recieved 201 messages ## Task 0 results Total message count: 201 Throughput: 20.1 msg/s, 2009 bytes/s Response time (ms): P0 (min): 0.4 P25: 0.9 P50: 1.1 P75: 1.3 P90: 1.4 P99: 1.4 P99.9: 1.7 P100 (max): 1.7 mean: 0.4 stdev: 0.3 # Overall results Total message count: 201 Throughput: 19.9 msg/s, 1988 bytes/s