add multiruns to fix "unreliable results" error

This commit is contained in:
Sergei Nosov
2013-06-13 21:14:42 +04:00
parent 98f6a4a615
commit c90abb6a03
6 changed files with 14 additions and 9 deletions

View File

@@ -165,7 +165,8 @@ PERF_TEST_P(Path_Idx_Cn_NPoints_WSize_Deriv, OpticalFlowPyrLK_self, testing::Com
declare.in(pyramid1, pyramid2, inPoints).out(outPoints);
declare.time(400);
TEST_CYCLE()
int runs = 3;
TEST_CYCLE_MULTIRUN(runs)
{
calcOpticalFlowPyrLK(pyramid1, pyramid2, inPoints, outPoints, status, err,
Size(winSize, winSize), maxLevel, criteria,
@@ -217,4 +218,4 @@ PERF_TEST_P(Path_Win_Deriv_Border_Reuse, OpticalFlowPyrLK_pyr, testing::Combine(
}
SANITY_CHECK(pyramid);
}
}