l.await(30, TimeUnit.SECONDS);
System.out.println("OK, all Connected: " + clientNum);
Socket socket = client.create(client.newOptionsBuilder().runtime(c).build());
socket.open(request.build());
for (int i = 0; i < messageNum; i++) {
socket.fire("message" + i);
}
messages.await(1, TimeUnit.HOURS);
socket.close();
for (int i = 0; i < clientCount; i++) {
sockets[i].close();
}
count += (total.get() / clientCount);
System.out.println("Run " + r + " => Total run : " + (total.get() / clientCount));