diff options
author | leochanj105 <leochanj@live.unc.edu> | 2020-10-23 02:12:49 -0400 |
---|---|---|
committer | leochanj105 <leochanj@live.unc.edu> | 2020-10-23 02:12:49 -0400 |
commit | e23e931be4776b89149fdb2596f47096e6cdb78c (patch) | |
tree | faf3963cc501f103cd2554553ec74ce21157b42e /baseline/summarize.py | |
parent | e2d933df44b7b387b41c8c7805393ad3857c4448 (diff) | |
parent | e0217a963c6c0e0667d41d075038685956bcfacf (diff) |
Merge branch 'sd-vbs' of ssh://rtsrv.cs.unc.edu/public/mc2-scripts-and-benchmarks into sd-vbs
Diffstat (limited to 'baseline/summarize.py')
-rwxr-xr-x | baseline/summarize.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/baseline/summarize.py b/baseline/summarize.py deleted file mode 100755 index 82f82d9..0000000 --- a/baseline/summarize.py +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | #!/usr/bin/python3 | ||
2 | import sys | ||
3 | |||
4 | f = sys.argv[1] | ||
5 | res = {} | ||
6 | mem_res = {} | ||
7 | memw_res = {} | ||
8 | samples = {} | ||
9 | |||
10 | with open(f) as fp: | ||
11 | for line in fp: | ||
12 | s = line.split() | ||
13 | if s[0] not in res: | ||
14 | print(s[0]) | ||
15 | res[s[0]] = int(s[5]) | ||
16 | mem_res[s[0]] = int(s[8]) | ||
17 | memw_res[s[0]] = int(s[9]) | ||
18 | samples[s[0]] =int(s[4]) | ||
19 | else: | ||
20 | res[s[0]] += int(s[5]) | ||
21 | mem_res[s[0]] += int(s[8]) | ||
22 | memw_res[s[0]] += int(s[9]) | ||
23 | |||
24 | print("Average times:") | ||
25 | for r in res.keys(): | ||
26 | print(res[r]/samples[r]) | ||
27 | |||
28 | print("Average memory read:") | ||
29 | for r in mem_res.keys(): | ||
30 | print(mem_res[r]/samples[r]) | ||
31 | |||
32 | print("Average memory write:") | ||
33 | for r in memw_res.keys(): | ||
34 | print(memw_res[r]/samples[r]) | ||