-
Notifications
You must be signed in to change notification settings - Fork 0
/
stat.py
47 lines (44 loc) · 1001 Bytes
/
stat.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import pandas as pd
import sys
sizes = [64, 128, 256, 512, 1024, 2048]
dfs = []
for index, size in enumerate(sizes):
df=pd.read_csv("benchmark/"+sys.argv[1]+"/"+str(size)+".csv")
# print(sys.argv[1], df.mean()[0], df.mean()[1])
dfs.append(df.mean())
# print(sys.argv[1], dfs[1])
print("{:.0f}, {:.0f}, {:.0f}, {:.0f}, {:.0f}, {:.0f}, {:.0f}, {:.0f}, {:.0f}, {:.0f}, {:.0f}, {:.0f}".format(
dfs[0][0],
dfs[1][0],
dfs[2][0],
dfs[3][0],
dfs[4][0],
dfs[5][0],
dfs[0][1],
dfs[1][1],
dfs[2][1],
dfs[3][1],
dfs[4][1],
dfs[5][1]
)
# sys.argv[1],
# 'latency',
# dfs[0][0],',',
# dfs[1][0],',',
# dfs[2][0],',',
# dfs[3][0],',',
# dfs[4][0],',',
# dfs[5][0],',',
# 'throughput',
# dfs[0][1],',',
# dfs[1][1],',',
# dfs[2][1],',',
# dfs[3][1],',',
# dfs[4][1],',',
# dfs[5][1],
# dfs[1][['throughput']].mean(),
# dfs[2]['throughput'].mean(),
# dfs[3]['throughput'].mean(),
# dfs[4]['throughput'].mean(),
# dfs[5][['throughput']].mean()
)