tests: reduce iterations, input sizes and perf grids of slow tests

Signed-off-by: abhishek-gola <abhishek@opencv.org>
This commit is contained in:
abhishek-gola
2026-11-18 15:49:05 +05:30
committed by Abhishek Gola
parent 8a1083b85a
commit 0cfdeb800f
26 changed files with 142 additions and 73 deletions

View File

@@ -235,7 +235,10 @@ PERF_TEST_P(Encode, animation, testing::ValuesIn(exts_anim))
SANITY_CHECK_NOTHING();
}
PERF_TEST_P(Encode, multi_page, testing::ValuesIn(exts_multi))
#ifdef HAVE_TIFF
// Only TIFF has its own writemulti(); for the other formats multi-page I/O goes through
// writeanimation() and the same reader, which Encode.animation / Decode.animation measure.
PERF_TEST_P(Encode, multi_page, testing::Values(".tiff"))
{
Animation animation = makeCirclesAnimation();
@@ -247,6 +250,7 @@ PERF_TEST_P(Encode, multi_page, testing::ValuesIn(exts_multi))
SANITY_CHECK_NOTHING();
}
#endif // HAVE_TIFF
PERF_TEST_P(Decode, animation, testing::ValuesIn(exts_anim))
{
@@ -263,7 +267,8 @@ PERF_TEST_P(Decode, animation, testing::ValuesIn(exts_anim))
SANITY_CHECK_NOTHING();
}
PERF_TEST_P(Decode, multi_page, testing::ValuesIn(exts_multi))
#ifdef HAVE_TIFF
PERF_TEST_P(Decode, multi_page, testing::Values(".tiff"))
{
Animation animation = makeCirclesAnimation();
vector<uchar> buf;
@@ -277,5 +282,6 @@ PERF_TEST_P(Decode, multi_page, testing::ValuesIn(exts_multi))
SANITY_CHECK_NOTHING();
}
#endif // HAVE_TIFF
} // namespace