Skip to content

Commit

Permalink
benchmark: Add max_concurrency to logging and result data
Browse files Browse the repository at this point in the history
Signed-off-by: Russell Bryant <[email protected]>
  • Loading branch information
russellb committed Oct 16, 2024
1 parent 4834bbb commit 520b43f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benchmarks/benchmark_serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ async def benchmark(
print("Profiler started")

print(f"Traffic request rate: {request_rate}")
print(f"Maximum request concurrency: {max_concurrency}")

pbar = None if disable_tqdm else tqdm(total=len(input_requests))

Expand Down Expand Up @@ -721,6 +722,7 @@ def main(args: argparse.Namespace):
# Traffic
result_json["request_rate"] = (
args.request_rate if args.request_rate < float("inf") else "inf")
result_json["max_concurrency"] = args.max_concurrency

# Merge with benchmark result
result_json = {**result_json, **benchmark_result}
Expand Down

0 comments on commit 520b43f

Please sign in to comment.