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
d8137120
Commit
d8137120
authored
May 21, 2012
by
neverlord
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
1607fc4a
f2735dea
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
174 additions
and
128 deletions
+174
-128
benchmarks/Distributed.scala
benchmarks/Distributed.scala
+113
-89
benchmarks/application.conf
benchmarks/application.conf
+18
-2
benchmarks/distributed.cpp
benchmarks/distributed.cpp
+42
-37
cppa.files
cppa.files
+1
-0
No files found.
benchmarks/Distributed.scala
View file @
d8137120
This diff is collapsed.
Click to expand it.
benchmarks/application.conf
View file @
d8137120
benchmark
{
akka
{
loglevel
=
ERROR
actor
.
provider
=
"akka.remote.RemoteActorRefProvider"
remote
{
untrusted
-
mode
=
on
remote
-
daemon
-
ack
-
timeout
=
300
s
netty
{
connection
-
timeout
=
1800
s
}
}
}
}
pongServer
{
akka
{
loglevel
=
ERROR
...
...
@@ -9,8 +22,11 @@ pongServer {
remote
-
daemon
-
ack
-
timeout
=
300
s
netty
{
backoff
-
timeout
=
0
ms
connection
-
timeout
=
300
s
hostname
=
"mobi10"
connection
-
timeout
=
1800
s
read
-
timeout
=
1800
s
write
-
timeout
=
10
s
all
-
timeout
=
1800
s
#hostname = "mobi10"
port
=
2244
}
}
...
...
benchmarks/distributed.cpp
View file @
d8137120
...
...
@@ -296,13 +296,18 @@ void client_mode(Iterator first, Iterator last) {
for
(
size_t
j
=
0
;
j
<
remotes
.
size
();
++
j
)
{
if
(
i
!=
j
)
{
auto
&
r
=
remotes
[
j
];
send
(
remote_actors
[
i
],
atom
(
"add_pong"
),
r
.
first
,
r
.
second
);
receive
(
send
(
remote_actors
[
i
],
atom
(
"add_pong"
),
r
.
first
,
r
.
second
);
}
}
}
{
// collect {ok} messages
size_t
i
=
0
;
size_t
end
=
remote_actors
.
size
()
*
(
remote_actors
.
size
()
-
1
);
receive_for
(
i
,
end
)
(
on
(
atom
(
"ok"
))
>>
[]()
{
},
on
(
atom
(
"error"
),
arg_match
)
>>
[
&
](
const
string
&
str
)
{
cout
<<
"error on node "
<<
i
<<
"
: "
<<
str
<<
endl
;
on
(
atom
(
"error"
),
arg_match
)
>>
[
&
](
string
const
&
str
)
{
cout
<<
"error
: "
<<
str
<<
endl
;
for
(
auto
&
x
:
remote_actors
)
{
send
(
x
,
atom
(
"purge"
));
}
...
...
@@ -323,17 +328,16 @@ void client_mode(Iterator first, Iterator last) {
}
);
}
}
}
// kickoff
//cout << "setup done" << endl;
//cout << "kickoff, init value = " << init_value << endl;
for
(
auto
&
r
:
remote_actors
)
{
send
(
r
,
atom
(
"kickoff"
),
init_value
);
}
{
// collect {done} messages
size_t
i
=
0
;
size_t
num_pings
=
remote_actors
.
size
()
*
(
remote_actors
.
size
()
-
1
);
receive_for
(
i
,
num_pings
)
(
size_t
end
=
remote_actors
.
size
()
*
(
remote_actors
.
size
()
-
1
);
receive_for
(
i
,
end
)
(
on
(
atom
(
"done"
))
>>
[]()
{
//cout << "...done..." << endl;
},
...
...
@@ -342,6 +346,7 @@ void client_mode(Iterator first, Iterator last) {
throw
std
::
logic_error
(
""
);
}
);
}
await_all_others_done
();
}
...
...
cppa.files
View file @
d8137120
benchmarks/ActorCreation.scala
benchmarks/Distributed.scala
benchmarks/DistributedRemoteActors.scala
benchmarks/MailboxPerformance.scala
benchmarks/Matching.scala
benchmarks/MixedCase.scala
...
...
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