diff --git a/apps/EchoClient.cpp b/apps/EchoClient.cpp index a7e5ffebac7c6e92fde5aa32f87a27bd59fdc730..bfd2f2d311dd05a27f9e31794f65ae60b00572fa 100644 --- a/apps/EchoClient.cpp +++ b/apps/EchoClient.cpp @@ -338,12 +338,15 @@ auto main(int argc, char* argv[]) -> int { uint64_t avg_ns = clientResults[0].avg_ns; uint64_t avg_iterations = clientResults[0].iterations; + uint64_t total_iterations = 0; for (size_t i = 1; i < clients; ++i) { avg_ns += clientResults[i].avg_ns; avg_ns /= 2; avg_iterations += clientResults[i].iterations; avg_iterations /= 2; + + total_iterations += clientResults[i].iterations; } auto connect_duration = duration_cast<nanoseconds>(echo_start - connect_start).count(); @@ -369,10 +372,11 @@ auto main(int argc, char* argv[]) -> int { } if (!exists) { - sst << "clients,iterations,size,avg_ns,connect,echo,total" << std::endl; + sst << "clients,iterations,total_iterations,size,avg_ns,connect,echo,total" << std::endl; } - sst << clients << "," << avg_iterations << "," << size << "," << avg_ns << "," - << connect_duration << "," << echo_duration << "," << total_duration << std::endl; + sst << clients << "," << avg_iterations << "," << total_iterations << "," << size << "," + << avg_ns << "," << connect_duration << "," << echo_duration << "," << total_duration + << std::endl; auto output = sst.str(); if (emper::io::writeFileAndWait(out_fd, output.c_str(), output.size()) < 0) {