update boxplot
This commit is contained in:
parent
1dbceced24
commit
dea62d9683
1 changed files with 22 additions and 11 deletions
|
@ -18,19 +18,30 @@ for line in sys.stdin:
|
||||||
d[conf][(run,way,packet_id)] = min(latency, d[conf][(run,way,packet_id)])
|
d[conf][(run,way,packet_id)] = min(latency, d[conf][(run,way,packet_id)])
|
||||||
|
|
||||||
#print("strat,window,decile,latency")
|
#print("strat,window,decile,latency")
|
||||||
print("fast_count,strat,decile,latency")
|
print("secmode,algo,percentile,latency")
|
||||||
for conf,value in d.items():
|
for conf,value in d.items():
|
||||||
s = sorted(value.values())
|
s = sorted(value.values())
|
||||||
szs = len(s)
|
szs = len(s)
|
||||||
|
|
||||||
|
secmode, algo = "bug", "bug"
|
||||||
|
if "tor3 " in conf: secmode = "hardened"
|
||||||
|
elif "_single_" in conf: secmode = "light"
|
||||||
|
elif "tor2 " in conf: secmode = "default"
|
||||||
|
|
||||||
|
if "orig-client" in conf: algo = "simple"
|
||||||
|
elif "dup2" in conf: algo = "dup2"
|
||||||
|
elif "lightning" in conf and "tick_tock=1" in conf: algo = "lightning-ticktock"
|
||||||
|
elif "lightning" in conf and "tick_tock=0" in conf: algo = "lightning-dup"
|
||||||
|
|
||||||
#m = re.match(r".*tick_tock=(\d+).+window=(\d+)", conf)
|
#m = re.match(r".*tick_tock=(\d+).+window=(\d+)", conf)
|
||||||
m = re.match(r".*fast_count=(\d+)!tick_tock=(\d+)", conf)
|
#m = re.match(r".*fast_count=(\d+)!tick_tock=(\d+)", conf)
|
||||||
#m = re.match(r"^(\d+).*tick_tock=(\d+)", conf)
|
#m = re.match(r"^(\d+).*tick_tock=(\d+)", conf)
|
||||||
print(f"{m[1]},{m[2]},MIN,{s[0]}")
|
print(f"{secmode},{algo},MIN,{s[0]}")
|
||||||
print(f"{m[1]},{m[2]},D0.1,{s[int(szs*0.001)]}")
|
print(f"{secmode},{algo},P0.1,{s[int(szs*0.001)]}")
|
||||||
print(f"{m[1]},{m[2]},D1,{s[int(szs*0.01)]}")
|
print(f"{secmode},{algo},P1,{s[int(szs*0.01)]}")
|
||||||
print(f"{m[1]},{m[2]},D25,{s[int(szs*0.25)]}")
|
print(f"{secmode},{algo},P25,{s[int(szs*0.25)]}")
|
||||||
print(f"{m[1]},{m[2]},D50,{s[int(szs*0.5)]}")
|
print(f"{secmode},{algo},P50,{s[int(szs*0.5)]}")
|
||||||
print(f"{m[1]},{m[2]},D75,{s[int(szs*0.75)]}")
|
print(f"{secmode},{algo},P75,{s[int(szs*0.75)]}")
|
||||||
print(f"{m[1]},{m[2]},D99,{s[int(szs*0.99)]}")
|
print(f"{secmode},{algo},P99,{s[int(szs*0.99)]}")
|
||||||
print(f"{m[1]},{m[2]},D99.9,{s[int(szs*0.999)]}")
|
print(f"{secmode},{algo},P99.9,{s[int(szs*0.999)]}")
|
||||||
print(f"{m[1]},{m[2]},MAX,{s[-1]}")
|
print(f"{secmode},{algo},MAX,{s[-1]}")
|
||||||
|
|
Loading…
Reference in a new issue