Update process.py
This commit is contained in:
parent
cddb70cd62
commit
1f6015b5b4
@ -34,16 +34,22 @@ def processFile(fname):
|
|||||||
else:
|
else:
|
||||||
responseCodes[code]=responseCodes[code]+1
|
responseCodes[code]=responseCodes[code]+1
|
||||||
responseTimes.append(item['response-time'])
|
responseTimes.append(item['response-time'])
|
||||||
maxResponse=max(responseTimes)
|
if len(responseTimes)!=0:
|
||||||
minResponse=min(responseTimes)
|
maxResponse=max(responseTimes)
|
||||||
|
minResponse=min(responseTimes)
|
||||||
print("Maximum response time was ",maxResponse)
|
print("Maximum response time was ",maxResponse)
|
||||||
print("Minimum response time was ",minResponse)
|
print("Minimum response time was ",minResponse)
|
||||||
|
else:
|
||||||
|
print("csv is empty")
|
||||||
pprint(responseCodes)
|
pprint(responseCodes)
|
||||||
for sec in responsePerSec:
|
for sec in responsePerSec:
|
||||||
print(sec, ":")
|
if len(responsePerSec[sec])!=0:
|
||||||
print(" Maximum:", max(responsePerSec[sec]))
|
print(sec, ":")
|
||||||
print(" Minimum:", min(responsePerSec[sec]))
|
print(" Maximum:", max(responsePerSec[sec]))
|
||||||
print(" Num of responses:", len(responsePerSec[sec]))
|
print(" Minimum:", min(responsePerSec[sec]))
|
||||||
|
print(" Num of responses:", len(responsePerSec[sec]))
|
||||||
|
else:
|
||||||
|
print(" empty")
|
||||||
|
|
||||||
def processAllFiles():
|
def processAllFiles():
|
||||||
files=getFiles()
|
files=getFiles()
|
||||||
|
Loading…
Reference in New Issue
Block a user