[zeromq-dev] 2ms roundtrip with python bindings

Mark markreed99 at gmail.com
Thu Mar 27 18:36:07 CET 2014


Mark <markreed99 <at> gmail.com> writes:

> 
> I modified the hello world client to time a single send and recv across 
> my network and get 1.6ms:

Note that I removed the sleep from hwserver.py. 

import time
import zmq

context = zmq.Context()
socket = context.socket(zmq.REP)
socket.bind("tcp://*:port")

while True:
    message = socket.recv()
    socket.send(b"World")




More information about the zeromq-dev mailing list