From 7b715ab6c23af2695f58917ffe6e5df3b14ab360 Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Fri, 29 May 2020 12:56:36 -0400 Subject: Add remaining scripts from Joshua's PRP experiments ***This is the final commit which supports reproducing his PRP results*** --- baseline/summarize-uwss.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 baseline/summarize-uwss.py (limited to 'baseline/summarize-uwss.py') diff --git a/baseline/summarize-uwss.py b/baseline/summarize-uwss.py new file mode 100755 index 0000000..f7df269 --- /dev/null +++ b/baseline/summarize-uwss.py @@ -0,0 +1,31 @@ +#!/usr/bin/python3 +import sys + +f = sys.argv[1] +res = [] +res.append({}) +res.append({}) +res.append({}) +SAMPLES = 500 + +with open(f) as fp: + for line in fp: + s = line.split() + mode = int(s[0])-1 + if s[1] not in res[mode]: + res[mode][s[1]] = float(s[5]) + else: + if "finished" not in s[5]: + res[mode][s[1]] += float(s[5]) + else: + res[mode][s[1]] += float(s[7]) + +print("Average times low:") +for r in res[0].keys(): + print(res[0][r]/SAMPLES) +print("Average times medium:") +for r in res[1].keys(): + print(res[1][r]/SAMPLES) +print("Average times high:") +for r in res[2].keys(): + print(res[2][r]/SAMPLES) -- cgit v1.2.2