completionCounter.await();
long diff = System.currentTimeMillis() - startTime;
// Poison pill to subscribers.
jedis.publish(CHANNEL, "unsubscribe");
print("Published "+MESSAGES_TO_PUBLISH+" messages and confirmed receival in "+SUBSCRIBER_AMOUNT+" subscribers in " + diff + " ms.");
double publishedMessagesPerSecond = MESSAGES_TO_PUBLISH / (diff/1000d);
print("Throughput (to confirmed delivery) with "+SUBSCRIBER_AMOUNT+" subscribers was about " + formatDouble(publishedMessagesPerSecond) + " published messages per second.");