Commit 2446c932 authored by Andrey Kamaev's avatar Andrey Kamaev

Remove bad perf test for cvRound

parent 8c8ebd9c
...@@ -6,27 +6,10 @@ using namespace perf; ...@@ -6,27 +6,10 @@ using namespace perf;
using std::tr1::make_tuple; using std::tr1::make_tuple;
using std::tr1::get; using std::tr1::get;
#define TYPICAL_MAT_SIZES_CORE_ARITHM TYPICAL_MAT_SIZES #define TYPICAL_MAT_SIZES_CORE_ARITHM TYPICAL_MAT_SIZES
#define TYPICAL_MAT_TYPES_CORE_ARITHM CV_8UC1, CV_8SC1, CV_16SC1, CV_16SC2, CV_16SC3, CV_16SC4, CV_8UC4, CV_32SC1, CV_32FC1 #define TYPICAL_MAT_TYPES_CORE_ARITHM CV_8UC1, CV_8SC1, CV_16SC1, CV_16SC2, CV_16SC3, CV_16SC4, CV_8UC4, CV_32SC1, CV_32FC1
#define TYPICAL_MATS_CORE_ARITHM testing::Combine( testing::Values( TYPICAL_MAT_SIZES_CORE_ARITHM ), testing::Values( TYPICAL_MAT_TYPES_CORE_ARITHM ) ) #define TYPICAL_MATS_CORE_ARITHM testing::Combine( testing::Values( TYPICAL_MAT_SIZES_CORE_ARITHM ), testing::Values( TYPICAL_MAT_TYPES_CORE_ARITHM ) )
#ifdef ANDROID
PERF_TEST(convert, cvRound)
{
double number = theRNG().uniform(-100, 100);
int result = 0;
TEST_CYCLE_N(1000)
{
for (int i = 0; i < 500000; ++i)
result += cvRound(number);
}
SANITY_CHECK(result);
}
#endif
PERF_TEST_P(Size_MatType, min, TYPICAL_MATS_CORE_ARITHM) PERF_TEST_P(Size_MatType, min, TYPICAL_MATS_CORE_ARITHM)
{ {
Size sz = get<0>(GetParam()); Size sz = get<0>(GetParam());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment