-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathperf_test.py
29 lines (28 loc) · 1.31 KB
/
perf_test.py
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
import subprocess
BASE = 1000
KILO = 1000
N=1
for parallel_factor in range(5):
x = pow(2,parallel_factor)
for num_of_records in range(BASE, 1000000, 199980):
print(x, num_of_records)
for rep in range(5):
subprocess.call(["singularity", "exec", "/home/tahmad/tahmad/singularity/flight.simg", "/arrow/release/arrow-flight-benchmark",
"--server_host", "tcn541",
"--records_per_stream", str(num_of_records),
"--num_streams", str(x),
"--num_threads", str(x)
])
for parallel_factor in range(5):
x = pow(2,parallel_factor)
for num_of_records in range(BASE, 1000000, 199980):
print(x, num_of_records)
for rep in range(5):
subprocess.call(["singularity", "exec", "/home/tahmad/tahmad/singularity/flight.simg", "/arrow/release/arrow-flight-benchmark",
"--server_host", "tcn541",
"--test_put", "True",
"--records_per_batch", str(2048),
"--records_per_stream", str(num_of_records),
"--num_streams", str(x),
"--num_threads", str(x)
])