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
d34eec3a
Commit
d34eec3a
authored
Jul 31, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9278 from alalek:ts_perf_threads
parents
3786d303
50b9a5af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
ts_perf.cpp
modules/ts/src/ts_perf.cpp
+14
-0
No files found.
modules/ts/src/ts_perf.cpp
View file @
d34eec3a
...
...
@@ -1212,6 +1212,18 @@ int64 TestBase::_calibrate()
}
};
// Initialize ThreadPool
class
_dummyParallel
:
public
ParallelLoopBody
{
public
:
void
operator
()(
const
cv
::
Range
&
range
)
const
{
// nothing
CV_UNUSED
(
range
);
}
};
parallel_for_
(
cv
::
Range
(
0
,
1000
),
_dummyParallel
());
_timeadjustment
=
0
;
_helper
h
;
h
.
PerfTestBody
();
...
...
@@ -1838,6 +1850,8 @@ void TestBase::SetUp()
if
(
param_threads
>=
0
)
cv
::
setNumThreads
(
param_threads
);
else
cv
::
setNumThreads
(
-
1
);
#ifdef __ANDROID__
if
(
param_affinity_mask
)
...
...
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