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
deb50b20
Commit
deb50b20
authored
Jan 10, 2012
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
benchmarkscript
parent
a57269f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
84 additions
and
0 deletions
+84
-0
benchmarks/run_benchmarks.sh
benchmarks/run_benchmarks.sh
+84
-0
No files found.
benchmarks/run_benchmarks.sh
0 → 100755
View file @
deb50b20
#!/bin/bash
NumCores
=
$(
cat
/proc/cpuinfo |
grep
processor |
wc
-l
)
if
[
$NumCores
-lt
10
]
;
then
NumCores
=
"0
$NumCores
"
fi
declare
-A
impls
impls[
"cppa"
]=
"event-based stacked"
impls[
"scala"
]=
"akka threaded threadless"
impls[
"erlang"
]=
"start"
declare
-A
benchmarks
benchmarks[
"cppa.mixed_case"
]=
"mixed_case"
benchmarks[
"cppa.actor_creation"
]=
"actor_creation"
benchmarks[
"cppa.mailbox_performance"
]=
"mailbox_performance"
benchmarks[
"scala.mixed_case"
]=
"MixedCase"
benchmarks[
"scala.actor_creation"
]=
"ActorCreation"
benchmarks[
"scala.mailbox_performance"
]=
"MailboxPerformance"
benchmarks[
"erlang.mixed_case"
]=
"mixed_case"
benchmarks[
"erlang.actor_creation"
]=
"actor_creation"
benchmarks[
"erlang.mailbox_performance"
]=
"mailbox_performance"
declare
-A
bench_args
bench_args[
"mixed_case"
]=
"20 50 10000 5"
bench_args[
"actor_creation"
]=
"19"
bench_args[
"mailbox_performance"
]=
"20 1000000"
#Lang="cppa"
for
Lang
in
"cppa"
"scala"
"erlang"
;
do
for
Bench
in
"actor_creation"
"mailbox_performance"
"mixed_case"
;
do
Args
=
${
bench_args
[
$Bench
]
}
BenchName
=
${
benchmarks
[
"
$Lang
.
$Bench
"
]
}
for
Impl
in
${
impls
[
$Lang
]
}
;
do
if
[[
"
$Lang
.
$Bench
.
$Impl
"
!=
"scala.actor_creation.threaded"
]]
;
then
echo
"
$Lang
:
$Impl
$Bench
..."
>
&2
FileName
=
"
$NumCores
cores,
$Lang
$Impl
$Bench
.txt"
exec
1>>
"
$FileName
"
for
i
in
{
1..5
}
;
do
./
${
Lang
}
_test.sh
$BenchName
$Impl
$Args
done
fi
done
done
done
exit
for
Impl
in
"event-based"
"stacked"
;
do
# actor creation performance
FileName
=
"cppa 2^19
$Impl
actors,
$NumCores
cores.txt"
echo
"cppa performance: 2^19
$Impl
actors..."
>
&2
exec
1>
"
$FileName
"
for
j
in
{
1..10
}
;
do
./cppa_test.sh actor_creation
$Impl
19
done
# mailbox performance
FileName
=
"cppa 20*1,000,000 messages
$Impl
,
$NumCores
cores.txt"
echo
"cppa mailbox performance:
$Impl
..."
>
&2
exec
1>
"
$FileName
"
for
j
in
{
1..10
}
;
do
./cppa_test.sh mailbox_performance
$Impl
20 1000000
done
done
for
Impl
in
"threaded"
"akka"
"threadless"
;
do
# actor creation performance
FileName
=
"scala 2^19
$Impl
actors,
$NumCores
cores.txt"
echo
"scala performance: 2^19
$Impl
actors"
>
&2
exec
1>
"
$FileName
"
for
j
in
{
1..10
}
;
do
./scala_test.sh ActorCreation
$Impl
19
done
# mailbox performance
FileName
=
"scala 20*1,000,000 messages
$Impl
,
$NumCores
cores.txt"
echo
"scala mailbox performance:
$Impl
..."
>
&2
exec
1>
"
$FileName
"
for
j
in
{
1...10
}
;
do
./scala_test.sh MailboxPerformance
$Impl
20 1000000
done
done
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