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
70da780c
Commit
70da780c
authored
Dec 28, 2011
by
Kirill Kornyakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added perf test for dot product (8U, 32S, 32F)
parent
457b8d7b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
3 deletions
+35
-3
perf_dft.cpp
modules/core/perf/perf_dft.cpp
+1
-1
perf_dot.cpp
modules/core/perf/perf_dot.cpp
+32
-0
perf_minmax.cpp
modules/core/perf/perf_minmax.cpp
+2
-2
No files found.
modules/core/perf/perf_dft.cpp
View file @
70da780c
...
...
@@ -25,4 +25,4 @@ PERF_TEST_P(Size_MatType, dft, TEST_MATS_DFT)
}
SANITY_CHECK
(
dst
,
1e-5
);
}
}
modules/core/perf/perf_dot.cpp
0 → 100644
View file @
70da780c
#include "perf_precomp.hpp"
using
namespace
std
;
using
namespace
cv
;
using
namespace
perf
;
typedef
tr1
::
tuple
<
int
,
int
>
MatType_Length_t
;
typedef
TestBaseWithParam
<
MatType_Length_t
>
MatType_Length
;
PERF_TEST_P
(
MatType_Length
,
dot
,
testing
::
Combine
(
testing
::
Values
(
CV_8UC1
,
CV_32SC1
,
CV_32FC1
),
testing
::
Values
(
32
,
64
,
128
,
256
,
512
,
1024
)
))
{
unsigned
int
type
=
std
::
tr1
::
get
<
0
>
(
GetParam
());
unsigned
int
size
=
std
::
tr1
::
get
<
1
>
(
GetParam
());
Mat
a
(
size
,
size
,
type
);
Mat
b
(
size
,
size
,
type
);
declare
.
in
(
a
,
WARMUP_RNG
);
declare
.
in
(
b
,
WARMUP_RNG
);
double
product
;
TEST_CYCLE
(
100
)
{
product
=
a
.
dot
(
b
);
}
SANITY_CHECK
(
product
,
1e-5
);
}
modules/core/perf/perf_minmax.cpp
View file @
70da780c
...
...
@@ -8,7 +8,7 @@ using namespace perf;
#define TYPICAL_MAT_TYPES_MINMAX CV_8SC1, CV_8SC4, CV_32SC1, CV_32FC1
#define TYPICAL_MATS_MINMAX testing::Combine( testing::Values( TYPICAL_MAT_SIZES_MINMAX), testing::Values( TYPICAL_MAT_TYPES_MINMAX) )
PERF_TEST_P
(
Size_MatType
,
min_double
,
TYPICAL_MATS_MINMAX
)
PERF_TEST_P
(
Size_MatType
,
min_double
,
TYPICAL_MATS_MINMAX
)
{
Size
sz
=
std
::
tr1
::
get
<
0
>
(
GetParam
());
int
type
=
std
::
tr1
::
get
<
1
>
(
GetParam
());
...
...
@@ -23,7 +23,7 @@ PERF_TEST_P(Size_MatType, min_double, TYPICAL_MATS_MINMAX)
SANITY_CHECK
(
c
);
}
PERF_TEST_P
(
Size_MatType
,
max_double
,
TYPICAL_MATS_MINMAX
)
PERF_TEST_P
(
Size_MatType
,
max_double
,
TYPICAL_MATS_MINMAX
)
{
Size
sz
=
std
::
tr1
::
get
<
0
>
(
GetParam
());
int
type
=
std
::
tr1
::
get
<
1
>
(
GetParam
());
...
...
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