new Random().nextBytes(payload);
final int siz = H2O.CLOUD.size();
double[] times = new double[siz];
for (int i = 0; i < siz; ++i) { //loop over compute nodes
H2ONode node = H2O.CLOUD._memary[i];
Timer t = new Timer();
for (int l = 0; l < repeats; ++l) {
PingPongTask ppt = new PingPongTask(payload); //same payload for all nodes
new RPC<>(node, ppt).call().get(); //blocking send
}
times[i] = (double) t.nanos() / repeats;
}
return times;
}