Switched to TEST_CYCLE_MULTIRUN for fast tests
This commit is contained in:
@@ -18,7 +18,8 @@ PERF_TEST_P(Size_MatType, Mat_Eye,
|
||||
|
||||
declare.out(diagonalMatrix);
|
||||
|
||||
TEST_CYCLE()
|
||||
int runs = (size.width <= 640) ? 15 : 5;
|
||||
TEST_CYCLE_MULTIRUN(runs)
|
||||
{
|
||||
diagonalMatrix = Mat::eye(size, type);
|
||||
}
|
||||
@@ -38,7 +39,8 @@ PERF_TEST_P(Size_MatType, Mat_Zeros,
|
||||
|
||||
declare.out(zeroMatrix);
|
||||
|
||||
TEST_CYCLE()
|
||||
int runs = (size.width <= 640) ? 15 : 5;
|
||||
TEST_CYCLE_MULTIRUN(runs)
|
||||
{
|
||||
zeroMatrix = Mat::zeros(size, type);
|
||||
}
|
||||
|
Reference in New Issue
Block a user