Skip to content

Commit

Permalink
Sanitize statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
simonkurtz-MSFT committed May 24, 2024
1 parent c0a27a1 commit e37dd8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aoai.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e37dd8c

Please sign in to comment.