adding/tuning multiple run for perf tests failing due to big deviation (functions...
authorAndrey Pavlenko <andrey.pavlenko@itseez.com>
Fri, 26 Jul 2013 13:27:31 +0000 (17:27 +0400)
committerAndrey Pavlenko <andrey.pavlenko@itseez.com>
Fri, 26 Jul 2013 13:27:31 +0000 (17:27 +0400)
modules/imgproc/perf/perf_cvt_color.cpp
modules/imgproc/perf/perf_histogram.cpp
modules/imgproc/perf/perf_resize.cpp

index 601beb8..966a442 100644 (file)
@@ -258,7 +258,7 @@ PERF_TEST_P(Size_CvtMode, cvtColor8u,
     declare.time(100);
     declare.in(src, WARMUP_RNG).out(dst);
 
-    int runs = sz.width <= 320 ? 70 : 5;
+    int runs = sz.width <= 320 ? 100 : 5;
     TEST_CYCLE_MULTIRUN(runs) cvtColor(src, dst, mode, ch.dcn);
 
     SANITY_CHECK(dst, 1);
index 92db3be..fc6a5cc 100644 (file)
@@ -35,7 +35,7 @@ PERF_TEST_P(Size_Source, calcHist1d,
 
     declare.in(source);
 
-    TEST_CYCLE()
+    TEST_CYCLE_MULTIRUN(3)
     {
         calcHist(&source, numberOfImages, channels, Mat(), hist, dims, histSize, ranges);
     }
index ea959a6..7634644 100644 (file)
@@ -25,7 +25,7 @@ PERF_TEST_P(MatInfo_Size_Size, resizeUpLinear,
     cvtest::fillGradient(src);
     declare.in(src).out(dst);
 
-    TEST_CYCLE() resize(src, dst, to);
+    TEST_CYCLE_MULTIRUN(10) resize(src, dst, to);
 
 #ifdef ANDROID
     SANITY_CHECK(dst, 5);
@@ -52,7 +52,7 @@ PERF_TEST_P(MatInfo_Size_Size, resizeDownLinear,
     cvtest::fillGradient(src);
     declare.in(src).out(dst);
 
-    TEST_CYCLE() resize(src, dst, to);
+    TEST_CYCLE_MULTIRUN(10) resize(src, dst, to);
 
 #ifdef ANDROID
     SANITY_CHECK(dst, 5);