perf: compute average throughput correctly
commitb4a4ad94c3d7ad6fa71dcde992e2d70bfa5ee211
authorVojtech Horky <vojtech.horky@gmail.com>
Wed, 2 Jan 2019 21:10:03 +0000 (2 22:10 +0100)
committerVojtech Horky <vojtech.horky@gmail.com>
Wed, 2 Jan 2019 21:17:05 +0000 (2 22:17 +0100)
tree0e9fef5764f5224841b76de597c36942207994b3
parent79bb48e29700cebe4c047377d62d33cff0357a43
perf: compute average throughput correctly

The correct way to compute average throughput is to use geometric mean.
See comment in the source code for an example why it gives more
meaningful results.

Also added a simplified square root approximation (using Babylonian
method) to compute standard deviation.

Note that the diff is awful as the context did not catch on the
compute_stats() function.
uspace/app/perf/perf.c