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

Merge branch 'echo_client_collect_total_unexpected_echos' into 'master'

[EchoClient] collect the total amount of unexpected echos

See merge request i4/manycore/emper!157
parents 879e57ce 592f72d1
No related branches found
No related tags found
No related merge requests found
......@@ -365,12 +365,12 @@ auto main(int argc, char* argv[]) -> int {
RunningAverage avg_ns;
RunningAverage avg_iterations;
RunningAverage avg_unexpectedEchos;
uint64_t unexpectedEchos = 0;
uint64_t total_iterations = 0;
for (size_t i = 0; i < clients; ++i) {
avg_ns.update(clientResults[i].avg_ns);
avg_iterations.update(clientResults[i].iterations);
avg_unexpectedEchos.update(clientResults[i].unexpectedEchos);
unexpectedEchos += clientResults[i].unexpectedEchos;
total_iterations += clientResults[i].iterations;
}
......@@ -401,8 +401,8 @@ auto main(int argc, char* argv[]) -> int {
<< std::endl;
}
sst << clients << "," << avg_iterations.getAverage() << "," << total_iterations << "," << size
<< "," << avg_ns.getAverage() << "," << avg_unexpectedEchos.getAverage() << ","
<< connect_duration << "," << echo_duration << "," << total_duration << std::endl;
<< "," << avg_ns.getAverage() << "," << unexpectedEchos << "," << connect_duration << ","
<< echo_duration << "," << total_duration << std::endl;
auto output = sst.str();
if (emper::io::writeFileAndWait(out_fd, output.c_str(), output.size()) < 0) {
......
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