Skip to content

Instantly share code, notes, and snippets.

@phatboyg
Last active April 4, 2018 16:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phatboyg/ec7ee70d66aedd2ce627 to your computer and use it in GitHub Desktop.
Save phatboyg/ec7ee70d66aedd2ce627 to your computer and use it in GitHub Desktop.
MassTransit 3 RabbitMQ Message Throughput

The message throughput of MassTransit using RabbitMQ, compared to the "one-way" RPC used in the test published at RestBus.

The send rate of MassTransit doing non-durable messages to RabbitMQ is 8,881 per second The consume rate of those same messages is 8,881 per second.

That's a sustained message throughput over 100,000 messages (5,000 per client thread, the same as the test linked above).

So, to be fair, there is no performance difference between the two in practice.

Test Machine

Tests were run from the console on a 2015 Razor Blade 14, quad-core i7 with 16GB of RAM and a 256GB SSD.

MassTransit Benchmark
Transport: RabbitMQ
Host: localhost
Virtual Host: /
Username: guest
Password: *****
Heartbeat: 0
Running Message Latency Benchmark
Message Count: 100000
Clients: 20
Durable: False
Prefetch Count: 100
Concurrency Limit: 32
Total send duration: 0:00:11.2593596
Send message rate: 8881.50 (msg/s)
Total consume duration: 0:00:11.2595069
Consume message rate: 8881.38 (msg/s)
Avg Ack Time: 2ms
Min Ack Time: 0ms
Max Ack Time: 149ms
Med Ack Time: 2ms
95t Ack Time: 4ms
Avg Consume Time: 3ms
Min Consume Time: 0ms
Max Consume Time: 284ms
Med Consume Time: 2ms
95t Consume Time: 5ms
0ms ************************************************************ ( 99954)
113ms ( 25)
142ms ( 19)
256ms ( 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment