diff --git a/perf/thread_lat.lua b/perf/thread_lat.lua index 93ed691..01e4451 100644 --- a/perf/thread_lat.lua +++ b/perf/thread_lat.lua @@ -64,6 +64,8 @@ local msg = zmq.zmq_msg_t.init_size(message_size) print(string.format("message size: %i [B]", message_size)) print(string.format("roundtrip count: %i", roundtrip_count)) +zmq.sleep(2) -- wait for child thread to connect. + local timer = zmq.stopwatch_start() for i = 1, roundtrip_count do