Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
Operations
Operations
Metrics
Environments
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
cpp-libs
Actor Framework
Commits
2583d715
Commit
2583d715
authored
Nov 05, 2011
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed sequential_send benchmark
parent
66190667
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gen_server/sequential_send.cpp
gen_server/sequential_send.cpp
+3
-3
No files found.
gen_server/sequential_send.cpp
View file @
2583d715
...
...
@@ -31,7 +31,7 @@ long the_test(int msg_count)
auto
msg
=
make_tuple
(
atom
(
"AddCount"
),
val
);
for
(
int
i
=
0
;
i
<
msg_count
;
++
i
)
{
counter
->
enqueue
(
msg
);
send_tuple
(
counter
,
msg
);
//send(counter, atom("AddCount"), val);
}
send
(
counter
,
atom
(
"Get"
),
self
());
...
...
@@ -43,7 +43,7 @@ long the_test(int msg_count)
result
=
value
;
}
);
send
(
counter
,
atom
(
":Exit"
),
self
(),
exit_reason
::
user_defined
);
send
(
counter
,
atom
(
":Exit"
),
exit_reason
::
user_defined
);
return
result
;
}
...
...
@@ -54,7 +54,7 @@ void run_test(int msg_count)
auto
elapsed
=
t0
.
elapsed
();
cout
<<
"Count is "
<<
count
<<
endl
<<
"Test took "
<<
elapsed
<<
" seconds"
<<
endl
<<
"Throughput = "
<<
(
msg_count
/
elapsed
)
<<
"Throughput = "
<<
static_cast
<
unsigned
long
>
(
msg_count
/
elapsed
)
<<
" per sec"
<<
endl
;
}
...
...
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