tests: Print average outer-loop iteration time in cpu-test

This commit is contained in:
Arun Raghavan 2012-10-29 13:26:25 +05:30
parent 17b5a36130
commit 2ec891d892

View file

@ -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 */