diff options
author | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2012-10-29 13:26:25 +0530 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2012-10-29 14:37:18 +0530 |
commit | 2ec891d892d995f09f119fb0a36b976d3a53e013 (patch) | |
tree | ff1d2879ee161a0eb29f918736bee8e77e440ac3 /src/tests | |
parent | 17b5a3613022837525fe853de55df7fa6897ce50 (diff) |
tests: Print average outer-loop iteration time in cpu-test
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/cpu-test.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tests/cpu-test.c b/src/tests/cpu-test.c index b791e7fe4..f3308d9dc 100644 --- a/src/tests/cpu-test.c +++ b/src/tests/cpu-test.c @@ -55,8 +55,12 @@ _s1 += _stop - _start; \ _s2 += (_stop - _start) * (_stop - _start); \ } \ - pa_log_debug("%s: %llu usec (min = %llu, max = %llu, stddev = %g).", _label, (long long unsigned int)_s1, \ - (long long unsigned int)_min, (long long unsigned int)_max, sqrt(_times2 * _s2 - _s1 * _s1) / _times2); \ + pa_log_debug("%s: %llu usec (avg: %g, min = %llu, max = %llu, stddev = %g).", _label, \ + (long long unsigned int)_s1, \ + ((double)_s1 / _times2), \ + (long long unsigned int)_min, \ + (long long unsigned int)_max, \ + sqrt(_times2 * _s2 - _s1 * _s1) / _times2); \ } /* Common defines for svolume tests */ |