From e37dd8c3699021466cdfb65d18d74258dd60e087 Mon Sep 17 00:00:00 2001 From: Simon Kurtz Date: Fri, 24 May 2024 12:50:04 -0400 Subject: [PATCH] Sanitize statistics --- aoai.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aoai.py b/aoai.py index 5f1d355..29621b0 100644 --- a/aoai.py +++ b/aoai.py @@ -396,12 +396,13 @@ async def send_async_stream_loadbalancer_request(num_of_requests: int): print(f"\n{'*' * 100}\n") print(f"Requests per approach : {str(NUM_OF_REQUESTS).rjust(WIDTH)}") +print(f"Number of approaches : {str(sum(1 for value in vars(test_executions).values() if value is True)).rjust(WIDTH)}\n") print(f"Total requests : {str(counter).rjust(WIDTH)}") print(f"Total successful requests : {str(success_counter).rjust(WIDTH)}") print(f"Total failed requests : {str(failure_counter).rjust(WIDTH)}") -print(f"Successful requests percentage : {('{:.2%}'.format(success_counter / counter)).rjust(WIDTH)}") -print(f"Failed requests percentage : {('{:.2%}'.format(failure_counter / counter)).rjust(WIDTH)}\n") +print(f"Total successful requests percentage : {('{:.2%}'.format(success_counter / counter)).rjust(WIDTH)}") +print(f"Total Failed requests percentage : {('{:.2%}'.format(failure_counter / counter)).rjust(WIDTH)}\n") if test_executions.standard: print(f"Single instance operation duration : {end_time - start_time:>{SECONDS_WIDTH}.2f} seconds")