Skip to content
Merged
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 benchmarks/benchmark_serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,8 @@ async def limited_request_func(request_func_input, pbar):
benchmark_outputs = outputs[half : n - half]

# 根据收到最后一个chunk的时间戳计算总时长
if len(outputs) >= 2:
benchmark_duration = outputs[-1].end_timestamp - outputs[0].end_timestamp
if len(benchmark_outputs) >= 2:
benchmark_duration = benchmark_outputs[-1].end_timestamp - benchmark_outputs[0].end_timestamp
else:
benchmark_duration = 0.0

Expand Down
Loading