public void ZeroMq(int messageSize, long numberOfMessages) { Console.WriteLine("ZMQ Version: {0}", MQShootout.ZeroMq.GetZmqVersion()); using(var zeroMq = new ZeroMq()) { new ShootoutTest(zeroMq, zeroMq).Run(messageSize, numberOfMessages); } }
// Sent 1000000 messages in 4121 ms / 1000 bytes // 242659 per second // 1000000 messages received in 11274 ms // Received 88699 per second public void ZeroMq() { const long numberOfMessages = 1000000; Console.WriteLine("ZMQ Version: {0}", MQShootout.ZeroMq.GetZmqVersion()); using(var zeroMq = new ZeroMq()) { new ShootoutTest(zeroMq, zeroMq).Run(1000, numberOfMessages); } }