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

@@ -19,7 +19,8 @@ PERF_TEST_P(Size_MatType, erode, TYPICAL_MATS_MORPH)
declare.in(src, WARMUP_RNG).out(dst);
TEST_CYCLE() erode(src, dst, noArray());
int runs = (sz.width <= 320) ? 15 : 1;
TEST_CYCLE_MULTIRUN(runs) erode(src, dst, noArray());
SANITY_CHECK(dst);
}