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
8e8dd869
Commit
8e8dd869
authored
Jan 07, 2012
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
benchmark bugfix
parent
3df7809a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
benchmarks/actor_creation.erl
benchmarks/actor_creation.erl
+7
-7
No files found.
benchmarks/actor_creation.erl
View file @
8e8dd869
...
...
@@ -9,10 +9,10 @@ testee(Pid) ->
spawn
(
actor_creation
,
testee
,
[
self
()])
!
{
spread
,
X
-
1
},
spawn
(
actor_creation
,
testee
,
[
self
()])
!
{
spread
,
X
-
1
},
receive
{
result
,
X
1
}
->
{
result
,
R
1
}
->
receive
{
result
,
X
2
}
->
Pid
!
{
result
,
(
X1
+
X
2
)}
{
result
,
R
2
}
->
Pid
!
{
result
,
(
R1
+
R
2
)}
end
end
end
.
...
...
@@ -22,12 +22,12 @@ start(X) ->
N
=
list_to_integer
(
atom_to_list
(
H
)),
spawn
(
actor_creation
,
testee
,
[
self
()])
!
{
spread
,
N
},
receive
{
result
,
X
}
->
{
result
,
R
}
->
if
X
==
(
2
bsl
N
)
->
X
;
R
==
(
1
bsl
N
)
->
R
;
true
->
error
(
"unexpted result!"
)
error
(
"unexp
ec
ted result!"
)
end
end
.
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