I modified the hello world client to time a single send and recv across
my network and get 1.6ms:
python hwclient.py
Connecting to hello world server...
1.62792205811
World
Running the perf latency test I get:
message size: 1 [B]
roundtrip count: 10000
average latency: 113.799 [us]
I've built 4.04 from source on an ubuntu server and did a pip install pyzmq.
I can't imagine python is the source of this problem?
import zmq
import time
context = zmq.Context()
# Socket to talk to server
print("Connecting to hello world server...")
socket = context.socket(zmq.REQ)
#socket.connect("tcp://remote_ip:port")
start = time.time()
socket.send(b"Hello")
# Get the reply.
message = socket.recv()
end = time.time()
print (end-start)*1000.0
print message
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev