mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 05:06:29 +08:00
Merge pull request #1197 from apavlenko:fix_unstable_perf_tests
This commit is contained in:
commit
76a938c7ef
@ -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);
|
||||
|
@ -28,14 +28,14 @@ PERF_TEST_P(Size_Source, calcHist1d,
|
||||
int dims = 1;
|
||||
int numberOfImages = 1;
|
||||
|
||||
const float r[] = {rangeLow, rangeHight};
|
||||
const float* ranges[] = {r};
|
||||
const float range[] = {rangeLow, rangeHight};
|
||||
const float* ranges[] = {range};
|
||||
|
||||
randu(source, rangeLow, rangeHight);
|
||||
|
||||
declare.in(source);
|
||||
|
||||
TEST_CYCLE()
|
||||
TEST_CYCLE_MULTIRUN(3)
|
||||
{
|
||||
calcHist(&source, numberOfImages, channels, Mat(), hist, dims, histSize, ranges);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user