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 type checker
.pyre/ .pyre/
.idea/ .idea/
*.csv
*.png
*-latency*.txt
*-rps*.txt

View File

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