measurin rq/s
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2020-10-21 09:41:11 +02:00
parent f00f87471d
commit 45afb935d4

View File

@ -277,6 +277,11 @@ def run_benchmark(
print( print(
f"{len(results)} requests completed: {total_successful_uploads} successfully uploaded and {total_answered} answered") f"{len(results)} requests completed: {total_successful_uploads} successfully uploaded and {total_answered} answered")
total_runtime = results[max(results.keys())].upload_finished - results[min(results.keys())].upload_started
print(f"Test total runtime was {total_runtime} seconds")
print("HTTP Request/sec:", len(results) / total_runtime)
return results return results