diff --git a/benchmark2.py b/benchmark2.py index 861db2a..8a18a3c 100644 --- a/benchmark2.py +++ b/benchmark2.py @@ -277,6 +277,11 @@ def run_benchmark( print( 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