mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
perf: update message
This commit is contained in:
parent
27cddfb8e9
commit
47998c03f8
@ -1693,9 +1693,10 @@ void TestBase::validateMetrics()
|
|||||||
{
|
{
|
||||||
double mean = metrics.mean * 1000.0f / metrics.frequency;
|
double mean = metrics.mean * 1000.0f / metrics.frequency;
|
||||||
double median = metrics.median * 1000.0f / metrics.frequency;
|
double median = metrics.median * 1000.0f / metrics.frequency;
|
||||||
|
double min_value = metrics.min * 1000.0f / metrics.frequency;
|
||||||
double stddev = metrics.stddev * 1000.0f / metrics.frequency;
|
double stddev = metrics.stddev * 1000.0f / metrics.frequency;
|
||||||
double percents = stddev / mean * 100.f;
|
double percents = stddev / mean * 100.f;
|
||||||
printf("[ PERFSTAT ] (samples = %d, mean = %.2f, median = %.2f, stddev = %.2f (%.1f%%))\n", (int)metrics.samples, mean, median, stddev, percents);
|
printf("[ PERFSTAT ] (samples=%d mean=%.2f median=%.2f min=%.2f stddev=%.2f (%.1f%%))\n", (int)metrics.samples, mean, median, min_value, stddev, percents);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user