Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
folly
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
folly
Commits
7c22b071
Commit
7c22b071
authored
Oct 16, 2018
by
Kirk Shoop
Committed by
Facebook Github Bot
Oct 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use make_single to avoid deduction guide issue
fbshipit-source-id: 7790bfb069ba355a9280892feda8642926b40f99
parent
acee8396
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
folly/experimental/pushmi/benchmarks/PushmiBenchmarks.cpp
folly/experimental/pushmi/benchmarks/PushmiBenchmarks.cpp
+7
-5
No files found.
folly/experimental/pushmi/benchmarks/PushmiBenchmarks.cpp
View file @
7c22b071
...
...
@@ -22,7 +22,7 @@ struct countdownsingle {
template
<
class
ExecutorRef
>
void
operator
()(
ExecutorRef
exec
)
{
if
(
--*
counter
>
0
)
{
exec
|
op
::
submit
(
mi
::
single
{
*
this
}
);
exec
|
op
::
submit
(
mi
::
make_single
(
*
this
)
);
}
}
};
...
...
@@ -46,7 +46,7 @@ NONIUS_BENCHMARK("inline 10", [](nonius::chronometer meter){
countdownsingle
single
{
counter
};
meter
.
measure
([
&
]{
counter
=
10
;
ie
|
op
::
submit
(
mi
::
single
{
single
}
);
ie
|
op
::
submit
(
mi
::
make_single
(
single
)
);
return
counter
;
});
})
...
...
@@ -75,7 +75,7 @@ NONIUS_BENCHMARK("trampoline virtual derecursion 10", [](nonius::chronometer met
});
})
NONIUS_BENCHMARK
(
"pool
1
blocking_submit 10"
,
[](
nonius
::
chronometer
meter
){
NONIUS_BENCHMARK
(
"pool
{1}
blocking_submit 10"
,
[](
nonius
::
chronometer
meter
){
mi
::
pool
pl
{
std
::
max
(
1u
,
std
::
thread
::
hardware_concurrency
())};
auto
pe
=
pl
.
executor
();
using
PE
=
decltype
(
pe
);
...
...
@@ -83,7 +83,8 @@ NONIUS_BENCHMARK("pool 1 blocking_submit 10", [](nonius::chronometer meter){
countdownsingle
single
{
counter
};
meter
.
measure
([
&
]{
counter
=
10
;
return
pe
|
op
::
blocking_submit
(
single
);
pe
|
op
::
blocking_submit
(
single
);
return
counter
;
});
})
...
...
@@ -94,6 +95,7 @@ NONIUS_BENCHMARK("new thread blocking_submit 10", [](nonius::chronometer meter){
countdownsingle
single
{
counter
};
meter
.
measure
([
&
]{
counter
=
10
;
return
nt
|
op
::
blocking_submit
(
single
);
nt
|
op
::
blocking_submit
(
single
);
return
counter
;
});
})
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