Commit 8a50c9a1 authored by Hejing Li's avatar Hejing Li
Browse files

rename result processing script

parent f5dbb851
...@@ -31,11 +31,11 @@ if len(sys.argv) != 2: ...@@ -31,11 +31,11 @@ if len(sys.argv) != 2:
sys.exit(1) sys.exit(1)
basedir = sys.argv[1] + '/' basedir = sys.argv[1] + '/'
types_of_client = [1, 3, 7, 11, 15, 31] types_of_client = [1, 4, 9, 14, 20]
bw = 1000 bw = 1000
for cl in types_of_client: for cl in types_of_client:
log_path = '%sgt-ib-switch-UDPmicro-%d-%d-1.json' % (basedir, bw, cl) log_path = '%sgt-ib-sw-Host-%dm-%d-1.json' % (basedir, bw, cl)
try: try:
log = open(log_path, 'r') log = open(log_path, 'r')
......
...@@ -27,17 +27,17 @@ import shutil ...@@ -27,17 +27,17 @@ import shutil
import json import json
if len(sys.argv) != 2: if len(sys.argv) != 2:
print('Usage: udp.py OUTDIR') print('Usage: python3 ScaleLoad.py OUTDIR')
sys.exit(1) sys.exit(1)
basedir = sys.argv[1] + '/' basedir = sys.argv[1] + '/'
# FIXME: dropped 120 because it looks off # FIXME: dropped 120 because it looks off
types_of_bw = [0, 20, 40, 60, 80, 100, 140, 200, 500, 800, 1000] types_of_bw = [0, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000]
for bw in types_of_bw: for bw in types_of_bw:
log_path = '%sgt-ib-wire-UDPs-%dm-1.json' % (basedir, bw) log_path = '%sgt-ib-sw-Load-%dm-1.json' % (basedir, bw)
if os.path.exists(log_path): if os.path.exists(log_path):
log = open(log_path, 'r') log = open(log_path, 'r')
exp_log = json.load(log) exp_log = json.load(log)
...@@ -45,10 +45,10 @@ for bw in types_of_bw: ...@@ -45,10 +45,10 @@ for bw in types_of_bw:
end_time = exp_log["end_time"] end_time = exp_log["end_time"]
diff_time = (end_time - start_time)/60 #min diff_time = (end_time - start_time)/60 #min
diff_time = str(diff_time) diff_time = str(diff_time)
log.close()
else: else:
diff_time = '' diff_time = ''
print('%d\t%s' % (bw, diff_time)) print('%d\t%s' % (bw, diff_time))
log.close()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment