-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProtorun
More file actions
executable file
·75 lines (66 loc) · 1.73 KB
/
Protorun
File metadata and controls
executable file
·75 lines (66 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/sh -
hostname=`hostname`
if [ "${hostname}" = "plg2" ] ; then
startcore=0
elif [ "${hostname}" = "plg7b" ] ; then
startcore=0
elif [ "${hostname}" = "nasus" ] ; then
startcore=128
elif [ "${hostname}" = "jax" ] ; then
startcore=24
elif [ "${hostname}" = "pyke" ] ; then
startcore=0
else
echo "unsupported host" ${hostname}
exit 1
fi
for benchmark in SendStatic SendDynamic Become ; do
echo "Proto${benchmark}"
cd Protoactor/${benchmark}
go build
cat /dev/null > ../../Proto${benchmark} # empty file
i=1
while [ ${i} -le 11 ] ; do
taskset -c ${startcore} /usr/bin/time -f "%Uu %Ss %Er %Mkb" Go${benchmark} d >> ../../Proto${benchmark} 2>&1
i=`expr ${i} + 1`
done
rm Go${benchmark}
cd - > /dev/null
done
mkdir -p ProtoBatch
cd Protoactor/Executor
go build
for bt in 1 10 100 ; do
echo "ProtoBatch ${bt}"
#p=1
#while [ ${p} -le 32 ] ; do
cat /dev/null > ../../ProtoBatch/ProtoExecutor_${bt} # empty file
for p in 1 2 4 8 16 24 32 ; do #
i=1
while [ ${i} -le 11 ] ; do
taskset -c ${startcore}-`expr ${startcore} + ${p} - 1` /usr/bin/time -f "%Uu %Ss %Er %Mkb" GoExecutor d d d ${p} ${bt} >> ../../ProtoBatch/ProtoExecutor_${bt} 2>&1
i=`expr ${i} + 1`
done
echo "" >> ../../ProtoBatch/ProtoExecutor_${bt} 2>&1
#p=`expr ${p} + 1`
done
done
rm GoExecutor
cd - > /dev/null
cat /dev/null > ProtoMatrix # empty file
cd Protoactor/Matrix
go build
for p in 1 2 4 8 16 24 32 ; do #
echo "ProtoMatrix ${p}"
i=1
while [ ${i} -le 11 ] ; do
taskset -c ${startcore}-`expr ${startcore} + ${p} - 1` /usr/bin/time -f "%Uu %Ss %Er %Mkb" GoMatrix d d d ${p} >> ../../ProtoMatrix 2>&1
i=`expr ${i} + 1`
done
echo "" >> ../../ProtoMatrix 2>&1
done
rm GoMatrix
cd - > /dev/null
# Local Variables: #
# tab-width: 4 #
# End: #