<div dir="ltr">Hi All,<br><br>Im pretty new to RMQ, been messing about with it and noticed that publishing messages via pika seems quite slow.<br><br>Im using a default configuration of the broker, all produces and consumers running on the same machine as the broker.<br><br>What I'm noticing is that its (relatively) extremely slow to publish messages to the broker, but the once the broker has them, it goes blazingly fast in getting them to various consumers.<br><br>For example, the below code (ripped off from then RMQ tutorials) can publish messages at around 250-300 messages per second, this is both in an ubuntu vm and on a 'bare metal' Mac running OS X 10.8 ( I can provide more detailed hardware info if needed)<br><br>http://pastebin.com/JNXwmYx7<br><br>The consumer, on the other hand (which doesn't do anything with them really, this is just testing), can receive them at up to 20k messages a second if I let the queue build up. <br><br>When I profiled my message producer, it seems to be spending the vast majority of its time polling. cProf sees:<br><br>ncalls&nbsp; tottime&nbsp; percall&nbsp; cumtime&nbsp; percall filename:lineno(function)<br>----<br>308&nbsp;&nbsp;&nbsp; 3.202&nbsp;&nbsp;&nbsp; 0.010&nbsp;&nbsp;&nbsp; 3.202&nbsp;&nbsp;&nbsp; 0.010 {built-in method poll}<br>----<br><br>Is there some configuration I'm missing? Or am I abusing some functionality? Im making sure that there is no acks, and no durability so it should be the disk at least.<br><br>Thanks guys!<br><br><br></div>