Skip to content

Benchmarks

Queen MQ performance benchmarks.

Test Environment

  • Hardware: Apple M4 Air
  • Server: 4 workers, 95 DB connections
  • Database: PostgreSQL in Docker

Results

TestModeMessagesBatchThroughputBandwidth
T4Producer10,0001,00085,862 msg/s24.57 MB/s
T4Consumer10,0001,000488,650 msg/s247.87 MB/s
T5Producer100,0001,00090,601 msg/s25.92 MB/s
T5Consumer100,0001,00084,530 msg/s42.96 MB/s

Key Observations

  • ✅ Batch size matters: 1,000x better than batch=1
  • ✅ Consumer peak: 488K msg/s
  • ✅ Producer peak: 90K msg/s
  • ✅ Scales with message volume

Run Your Own

bash
cd benchmark
make
./bin/benchmark producer --threads 10 --count 1000000 --batch 1000
./bin/benchmark consumer --threads 10 --batch 1000

Complete benchmarks

Built with ❤️ by Smartness