Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
68957b27
Commit
68957b27
authored
Mar 01, 2014
by
Ilya Lavrenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added some new performance tests
parent
37580687
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
87 additions
and
2 deletions
+87
-2
perf_gemm.cpp
modules/core/perf/opencl/perf_gemm.cpp
+2
-1
perf_matop.cpp
modules/core/perf/opencl/perf_matop.cpp
+84
-0
ts_perf.cpp
modules/ts/src/ts_perf.cpp
+1
-1
No files found.
modules/core/perf/opencl/perf_gemm.cpp
View file @
68957b27
...
...
@@ -59,7 +59,8 @@ typedef TestBaseWithParam<GemmParams> GemmFixture;
OCL_PERF_TEST_P
(
GemmFixture
,
Gemm
,
::
testing
::
Combine
(
::
testing
::
Values
(
Size
(
1000
,
1000
),
Size
(
1500
,
1500
)),
Values
((
int
)
cv
::
GEMM_3_T
,
(
int
)
cv
::
GEMM_3_T
|
(
int
)
cv
::
GEMM_2_T
)))
Values
((
int
)
cv
::
GEMM_3_T
,
(
int
)
cv
::
GEMM_3_T
|
(
int
)
cv
::
GEMM_2_T
,
(
int
)
cv
::
GEMM_1_T
,
(
int
)
cv
::
GEMM_1_T
|
(
int
)
cv
::
GEMM_2_T
)))
{
GemmParams
params
=
GetParam
();
const
Size
srcSize
=
get
<
0
>
(
params
);
...
...
modules/core/perf/opencl/perf_matop.cpp
0 → 100644
View file @
68957b27
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
// Copyright (C) 2014, Advanced Micro Devices, Inc., all rights reserved.
// Third party copyrights are property of their respective owners.
#include "perf_precomp.hpp"
#include "opencv2/ts/ocl_perf.hpp"
#ifdef HAVE_OPENCL
namespace
cvtest
{
namespace
ocl
{
///////////// SetTo ////////////////////////
typedef
Size_MatType
SetToFixture
;
OCL_PERF_TEST_P
(
SetToFixture
,
SetTo
,
::
testing
::
Combine
(
OCL_TEST_SIZES
,
OCL_TEST_TYPES
))
{
const
Size_MatType_t
params
=
GetParam
();
const
Size
srcSize
=
get
<
0
>
(
params
);
const
int
type
=
get
<
1
>
(
params
);
const
Scalar
s
=
Scalar
::
all
(
17
);
checkDeviceMaxMemoryAllocSize
(
srcSize
,
type
);
UMat
src
(
srcSize
,
type
);
declare
.
in
(
src
,
WARMUP_RNG
).
out
(
src
);
OCL_TEST_CYCLE
()
src
.
setTo
(
s
);
SANITY_CHECK
(
src
);
}
///////////// ConvertTo ////////////////////////
typedef
Size_MatType
ConvertToFixture
;
OCL_PERF_TEST_P
(
ConvertToFixture
,
ConvertTo
,
::
testing
::
Combine
(
OCL_TEST_SIZES
,
OCL_TEST_TYPES
))
{
const
Size_MatType_t
params
=
GetParam
();
const
Size
srcSize
=
get
<
0
>
(
params
);
const
int
type
=
get
<
1
>
(
params
),
ddepth
=
CV_MAT_DEPTH
(
type
)
==
CV_8U
?
CV_32F
:
CV_8U
,
cn
=
CV_MAT_CN
(
type
),
dtype
=
CV_MAKE_TYPE
(
ddepth
,
cn
);
checkDeviceMaxMemoryAllocSize
(
srcSize
,
type
);
checkDeviceMaxMemoryAllocSize
(
srcSize
,
dtype
);
UMat
src
(
srcSize
,
type
),
dst
(
srcSize
,
dtype
);
declare
.
in
(
src
,
WARMUP_RNG
).
out
(
dst
);
OCL_TEST_CYCLE
()
src
.
convertTo
(
dst
,
dtype
);
SANITY_CHECK
(
dst
);
}
///////////// CopyTo ////////////////////////
typedef
Size_MatType
CopyToFixture
;
OCL_PERF_TEST_P
(
CopyToFixture
,
CopyTo
,
::
testing
::
Combine
(
OCL_TEST_SIZES
,
OCL_TEST_TYPES
))
{
const
Size_MatType_t
params
=
GetParam
();
const
Size
srcSize
=
get
<
0
>
(
params
);
const
int
type
=
get
<
1
>
(
params
);
checkDeviceMaxMemoryAllocSize
(
srcSize
,
type
);
UMat
src
(
srcSize
,
type
),
dst
(
srcSize
,
type
);
declare
.
in
(
src
,
WARMUP_RNG
).
out
(
dst
);
OCL_TEST_CYCLE
()
src
.
copyTo
(
dst
);
SANITY_CHECK
(
dst
);
}
}
}
// namespace cvtest::ocl
#endif // HAVE_OPENCL
modules/ts/src/ts_perf.cpp
View file @
68957b27
...
...
@@ -1618,7 +1618,7 @@ namespace cv {
void
PrintTo
(
const
String
&
str
,
::
std
::
ostream
*
os
)
{
*
os
<<
str
;
*
os
<<
"
\"
"
<<
str
<<
"
\"
"
;
}
void
PrintTo
(
const
Size
&
sz
,
::
std
::
ostream
*
os
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment