Skip to content

AMQP (RabbitMQ) performance benchmark tool - measure throughput and latency of publish and consume

Notifications You must be signed in to change notification settings

cdbennett/rabbitbench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rabbitbench

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.

Example

  1. Start RabbitMQ server

    docker compose up -d
    
  2. 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
    
  3. 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
    

About

AMQP (RabbitMQ) performance benchmark tool - measure throughput and latency of publish and consume

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages