diff --git a/apps/EchoClient.cpp b/apps/EchoClient.cpp index ae9a8dcd3a08575a446ca04ca1f98dbc173545a6..72c70e057e0a3252d1d0d3a34c1eb3fcaf128f20 100644 --- a/apps/EchoClient.cpp +++ b/apps/EchoClient.cpp @@ -427,10 +427,26 @@ auto main(int argc, char* argv[]) -> int { } } + uint64_t total_iterations = 0; + uint64_t total_reconnects = 0; + uint64_t total_unexpected_echos = 0; + RunningAverage avg_ns; + for (size_t i = 0; i < nclients; ++i) { + auto* client = clients[i]; + total_iterations += client->iteration; + total_reconnects += client->reconnects; + total_unexpected_echos += client->unexpectedEchos; + avg_ns.update(client->avg_ns.getAverage()); + } + std::stringstream sst; sst << "[global]" << std::endl; sst << "clients = " << nclients << std::endl; sst << "size = " << size << std::endl; + sst << "total_iterations = " << total_iterations << std::endl; + sst << "total_reconnects = " << total_reconnects << std::endl; + sst << "total_unexpected_echos = " << total_unexpected_echos << std::endl; + sst << "avg_ns = " << avg_ns.getAverage() << std::endl; sst << "connect_duration = " << connect_duration << std::endl; sst << "echo_duration = " << echo_duration << std::endl; sst << "total_duration = " << total_duration << std::endl;