redo some stuff
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-10-23 18:23:59 +02:00
parent 8944113b1c
commit ad34718991
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
2 changed files with 9 additions and 20 deletions

6
.gitignore vendored
View File

@ -128,4 +128,8 @@ dmypy.json
# Pyre type checker
.pyre/
.idea/
.idea/
*.csv
*.png
*-latency*.txt
*-rps*.txt

View File

@ -268,11 +268,6 @@ class ChartCreator:
directory +
"-latency.png")
pplot.clf()
print("latency min, max, avg")
print(min(csvfile.latencypersec))
print(max(csvfile.latencypersec))
print(average(csvfile.latencypersec))
print("Charted " + directory)
@staticmethod
def analyze_hey(abs_directory, directory):
@ -319,25 +314,15 @@ class ChartCreator:
:return:
"""
dirs = next(os.walk(os.getenv('SEARCHDIR', default='.')))[1]
jobs = []
for directory in dirs:
abs_directory = os.getenv(
'SEARCHDIR', default='.') + '/' + directory
print(abs_directory)
if 'HEY' not in abs_directory.upper():
process = multiprocessing.Process(
target=ChartCreator.analyze_hey, args=(
abs_directory, directory,))
jobs.append(process)
if 'HEY' in abs_directory.upper():
ChartCreator.analyze_hey(abs_directory,directory)
else:
process_birb = multiprocessing.Process(
target=ChartCreator.analyze_birb, args=(
abs_directory, directory,))
process_input = multiprocessing.Process(
target=ChartCreator.analyze_input, args=(
abs_directory, directory,))
jobs.append(process_birb)
jobs.append(process_input)
ChartCreator.analyze_birb(abs_directory,directory)
ChartCreator.analyze_input(abs_directory,directory)
if __name__ == "__main__":