Skip to content
Snippets Groups Projects
Commit 85e3c018 authored by Tomasz Grabiec's avatar Tomasz Grabiec Committed by Pekka Enberg
Browse files

tests: print average transfer rate after test

parent c4a31f24
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,8 @@ int main(int argc, char const *argv[])
auto test_end = s_clock.now();
_stat_printer.stop();
printf("Wrote %.3f MB in %.2f s\n", (float) total / MB, to_seconds(test_end - test_start));
auto actual_test_duration = to_seconds(test_end - test_start);
printf("Wrote %.3f MB in %.2f s = %.3f Mb/s\n", (float) total / MB, actual_test_duration,
(float) total / MB / actual_test_duration);
return 0;
}
}
\ No newline at end of file
......@@ -77,7 +77,10 @@ int main(int argc, char const *argv[])
auto test_end = s_clock.now();
_stat_printer.stop();
printf("Wrote %.3f MB in %.2f s\n", (float) total / MB, to_seconds(test_end - test_start));
auto actual_test_duration = to_seconds(test_end - test_start);
printf("Wrote %.3f MB in %.2f s = %.3f Mb/s\n", (float) total / MB, actual_test_duration,
(float)total / MB / actual_test_duration);
printf("\n");
print_distribution(samples);
......
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