Skip to content
Snippets Groups Projects
Commit 1610b369 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

Merge branch 'echo_client_additionally_output_stats' into 'master'

[EchClient] calculate and output experiment totals

See merge request !171
parents 676e93e3 bc0b193b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment