forked from Bhavishrg/Graphiti
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_LAN_benchmarks.sh
More file actions
executable file
·302 lines (272 loc) · 10.8 KB
/
run_LAN_benchmarks.sh
File metadata and controls
executable file
·302 lines (272 loc) · 10.8 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
echo "PLEASE READ THE README FIRST. RUNNING THIS SCRIPT REQUIRES UP TO 120GB OF RAM. Remove this line from the script if you really intend to run the full benchmarks" && exit 1
set -o xtrace
BASE_PORT=11000
ALTERNATIVE_PORT=11018 # 11000 + 2 * 3 * 3
CURRENT_PORT=$BASE_PORT
rotate_ports() {
if [ $CURRENT_PORT -eq $BASE_PORT ] ; then
CURRENT_PORT=$ALTERNATIVE_PORT
else
CURRENT_PORT=$BASE_PORT
fi
}
mkdir -p p$1
# small_datasets.sh
for i in {0..10}; do
# Aarhus
./pi_3_benchmark --pid $1 -n 61 -s 1301 -d $i -o p$1/output_pi_3_aarhus.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
# London
./pi_3_benchmark --pid $1 -n 369 -s 1375 -d $i -o p$1/output_pi_3_london.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
# hiv
./pi_3_benchmark --pid $1 -n 1005 -s 3693 -d $i -o p$1/output_pi_3_hiv.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
for i in {1..10}; do
# Aarhus
./pi_3_ref_benchmark --pid $1 -n 61 -l 5 -d $i -o p$1/output_pi_3_ref_aarhus.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
# London
./pi_3_ref_benchmark --pid $1 -n 369 -l 3 -d $i -o p$1/output_pi_3_ref_london.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
# hiv
./pi_3_ref_benchmark --pid $1 -n 1005 -l 3 -d $i -o p$1/output_pi_3_ref_hiv.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
for i in {0..10}; do
# Aarhus
./pi_2_benchmark --pid $1 -n 61 -s 1301 -d $i -o p$1/output_pi_2_aarhus.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
# London
./pi_2_benchmark --pid $1 -n 369 -s 1375 -d $i -o p$1/output_pi_2_london.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
# hiv
./pi_2_benchmark --pid $1 -n 1005 -s 3693 -d $i -o p$1/output_pi_2_hiv.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
for i in {1..10}; do
# Aarhus
./pi_2_ref_benchmark --pid $1 -n 61 -l 5 -d $i -o p$1/output_pi_2_ref_aarhus.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
# London
./pi_2_ref_benchmark --pid $1 -n 369 -l 3 -d $i -o p$1/output_pi_2_ref_london.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
# hiv
./pi_2_ref_benchmark --pid $1 -n 1005 -l 3 -d $i -o p$1/output_pi_2_ref_hiv.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
for i in {0..10}; do
# Aarhus
./pi_1_benchmark --pid $1 -n 61 -s 1301 -d $i -o p$1/output_pi_1_aarhus.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
# London
./pi_1_benchmark --pid $1 -n 369 -s 1375 -d $i -o p$1/output_pi_1_london.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
# hiv
./pi_1_benchmark --pid $1 -n 1005 -s 3693 -d $i -o p$1/output_pi_1_hiv.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
for i in {1..10}; do
# Aarhus
./pi_1_ref_benchmark --pid $1 -n 61 -l 5 -d $i -o p$1/output_pi_1_ref_aarhus.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
for i in {1..6}; do
# London
./pi_1_ref_benchmark --pid $1 -n 369 -l 3 -d $i -o p$1/output_pi_1_ref_london.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
# hiv../build
./pi_1_ref_benchmark --pid $1 -n 1005 -l 3 -d 1 -o p$1/output_pi_1_ref_hiv.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
# bigger_datasets.sh
for i in {0..10}; do
# arabi
./pi_3_benchmark --pid $1 -n 6980 -s 43214 -d $i -o p$1/output_pi_3_arabi.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
# higgs
./pi_3_benchmark --pid $1 -n 304691 -s 1415653 -d $i -o p$1/output_pi_3_higgs.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
for i in {0..10}; do
# arabi
./pi_2_benchmark --pid $1 -n 6980 -s 43214 -d $i -o p$1/output_pi_2_arabi.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
# higgs
./pi_2_benchmark --pid $1 -n 304691 -s 1415653 -d $i -o p$1/output_pi_2_higgs.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
# scalability.sh
###
# Ours with s = 101*n and 51*n and 11*n
###
# pi 3
for i in 0 1 2; do
for n in 100 200 300 400 500 600 700 800 900; do
./pi_3_benchmark --pid $1 -n $n -s $((101*n)) -d $i -o p$1/output_pi_3_101_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
./pi_3_benchmark --pid $1 -n $n -s $((51*n)) -d $i -o p$1/output_pi_3_51_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
./pi_3_benchmark --pid $1 -n $n -s $((11*n)) -d $i -o p$1/output_pi_3_11_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
for n in 1000 2000 3000 4000 5000 6000 7000 8000 9000; do
./pi_3_benchmark --pid $1 -n $n -s $((101*n)) -d $i -o p$1/output_pi_3_101_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
./pi_3_benchmark --pid $1 -n $n -s $((51*n)) -d $i -o p$1/output_pi_3_51_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
./pi_3_benchmark --pid $1 -n $n -s $((11*n)) -d $i -o p$1/output_pi_3_11_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
for n in 10000 20000 30000 40000 50000; do
./pi_3_benchmark --pid $1 -n $n -s $((101*n)) -d $i -o p$1/output_pi_3_101_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
./pi_3_benchmark --pid $1 -n $n -s $((51*n)) -d $i -o p$1/output_pi_3_51_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
./pi_3_benchmark --pid $1 -n $n -s $((11*n)) -d $i -o p$1/output_pi_3_11_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
done
# pi 2
for i in 0 1 2; do
for n in 100 200 300 400 500 600 700 800 900; do
./pi_2_benchmark --pid $1 -n $n -s $((101*n)) -d $i -o p$1/output_pi_2_101_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
./pi_2_benchmark --pid $1 -n $n -s $((51*n)) -d $i -o p$1/output_pi_2_51_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
./pi_2_benchmark --pid $1 -n $n -s $((11*n)) -d $i -o p$1/output_pi_2_11_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
for n in 1000 2000 3000 4000 5000 6000 7000 8000 9000; do
./pi_2_benchmark --pid $1 -n $n -s $((101*n)) -d $i -o p$1/output_pi_2_101_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
./pi_2_benchmark --pid $1 -n $n -s $((51*n)) -d $i -o p$1/output_pi_2_51_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
./pi_2_benchmark --pid $1 -n $n -s $((11*n)) -d $i -o p$1/output_pi_2_11_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
for n in 10000 20000 30000 40000; do
./pi_2_benchmark --pid $1 -n $n -s $((101*n)) -d $i -o p$1/output_pi_2_101_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
./pi_2_benchmark --pid $1 -n $n -s $((51*n)) -d $i -o p$1/output_pi_2_51_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
./pi_2_benchmark --pid $1 -n $n -s $((11*n)) -d $i -o p$1/output_pi_2_11_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
done
# pi 1
for i in 0 1 2; do
for n in 100 200 300 400 500; do
./pi_1_benchmark --pid $1 -n $n -s $((101*n)) -d $i -o p$1/output_pi_1_101_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
./pi_1_benchmark --pid $1 -n $n -s $((51*n)) -d $i -o p$1/output_pi_1_51_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
./pi_1_benchmark --pid $1 -n $n -s $((11*n)) -d $i -o p$1/output_pi_1_11_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
for n in 600 700 800 900; do
./pi_1_benchmark --pid $1 -n $n -s $((101*n)) -d $i -o p$1/output_pi_1_101_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
./pi_1_benchmark --pid $1 -n $n -s $((51*n)) -d $i -o p$1/output_pi_1_51_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
./pi_1_benchmark --pid $1 -n $n -s $((11*n)) -d $i -o p$1/output_pi_1_11_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
done
# pi 3 only with s=11*n and higher
for i in 0 1 2; do
for n in 60000 70000 80000 90000 100000 200000 300000 400000 500000; do
./pi_3_benchmark --pid $1 -n $n -s $((11*n)) -d $i -o p$1/output_pi_3_11_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
done
###
# Reference
###
# pi 3
for i in 1 2; do
for n in 100 200 300 400 500 600 700 800 900; do
./pi_3_ref_benchmark --pid $1 -n $n -l 3 -d $i -o p$1/output_pi_3_ref_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
for n in 1000 2000 3000 4000 5000 6000 7000 8000; do
./pi_3_ref_benchmark --pid $1 -n $n -l 3 -d $i -o p$1/output_pi_3_ref_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
done
# pi 2
for i in 1 2; do
for n in 100 200 300 400 500 600 700 800 900; do
./pi_2_ref_benchmark --pid $1 -n $n -l 3 -d $i -o p$1/output_pi_2_ref_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
for n in 1000 2000 3000 4000 5000 6000 7000; do
./pi_2_ref_benchmark --pid $1 -n $n -l 3 -d $i -o p$1/output_pi_2_ref_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
done
# pi 1
for i in 1 2; do
for n in 100 200 300; do
./pi_1_ref_benchmark --pid $1 -n $n -l 3 -d $i -o p$1/output_pi_1_ref_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
for n in 400 500 600; do
./pi_1_ref_benchmark --pid $1 -n $n -l 3 -d $i -o p$1/output_pi_1_ref_d$i.txt -r 10 --net-config netconfig.json --port $CURRENT_PORT
# sleep 5
rotate_ports
done
done