Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions benchmark_serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,8 @@ async def limited_request_func(request_func_input, pbar):
pbar=pbar)))
outputs: List[RequestFuncOutput] = await asyncio.gather(*tasks)

benchmark_duration = time.perf_counter() - benchmark_start_time

if profile:
print("Stopping profiler...")
profile_input = RequestFuncInput(
Expand All @@ -479,8 +481,6 @@ async def limited_request_func(request_func_input, pbar):
if pbar is not None:
pbar.close()

benchmark_duration = time.perf_counter() - benchmark_start_time

metrics, actual_output_lens = calculate_metrics(
input_requests=input_requests,
outputs=outputs,
Expand Down