[rabbitmq-discuss] Huge latency in Linux, compared with Leopard

Martin Sustrik sustrik at imatix.com
Fri Sep 26 18:42:57 BST 2008


I would say you are actually measuring how long printing of timestamp 
takes rather than latency of RabbitMQ itself :)

Try to acquire timestamp first, then send the message then print the 
timestamp.

Martin

Bogon Choi wrote:
> I tested very basic end-to-end latency of RabbitMQ 1.4.0 on Mac OS X Leopard
> and RHET Linux.
> 
> A publisher prints out a timestamp right before it publishes a message, and
> a subscriber receives the messages and prints out a timestamp. Every 3
> second one process published a 1KB message. This is the very basic and easy
> latency test I am always doing before I deploy systems.
> 
> But, the result was surprisingly comic.
> 
> Mac OS X Leopard: 4 milliseconds average latency from a publisher to a
> subscriber
> RHET5 Linux: 40.55 milliseconds average latency from a publisher to a
> subscriber
> 
> I am using Erlang R12B-4, and compiled it from "./configure" and "make".
> There was an error like a "JInterface" and "ODBC" stuffs at configuring from
> Linux. I just ignored it.
> All publisher, server, and subscriber were running at the same machine. So,
> we can ignore the network delay on this test.
> 
> I tried also from Ubuntu 8.1 and its latency was also 40.55 milliseconds.
> What is wrong with between Linux and Erlang?





More information about the rabbitmq-discuss mailing list