Don't use ggplot ECDF

This commit is contained in:
Quentin Dufour 2020-01-14 14:32:20 +00:00
parent 5ebbfcd6e3
commit e11c72ed7a

View file

@ -41,11 +41,15 @@ def extract(p, s):
print("done")
def analyze_failure(s):
print(f"rate,duration")
for k, v in s['failure'].items():
rate = round(1000 / k)
for e in v:
print(f"{rate},{e}")
with open('jan_failure.csv', 'w') as f:
f.write(f"rate,duration,ecdf\n")
for k, v in s['failure'].items():
v = sorted(v)
total = len(v)
rate = round(1000 / k)
for idx,e in enumerate(v,start=1):
if e == 90: break
f.write(f"{rate},{e},{idx/total}\n")
def analyze(s):
print("analyzing...")