[Benchmark] Enhance benchmark output logging (#4682)

* Enhance benchmark output logging

Add print statements to display the number of discarded outputs before and after filtering.

* Update benchmark_serving.py
This commit is contained in:
Zhang Yulong
2025-11-06 16:53:31 +08:00
committed by GitHub
parent 095dada092
commit 83532e1d01

View File

@@ -487,6 +487,9 @@ async def benchmark(
benchmark_duration = benchmark_outputs[-1].end_timestamp - benchmark_outputs[0].end_timestamp benchmark_duration = benchmark_outputs[-1].end_timestamp - benchmark_outputs[0].end_timestamp
else: else:
benchmark_duration = 0.0 benchmark_duration = 0.0
print(f"丢弃前数量: {n}")
print(f"丢弃后数量: {len(benchmark_outputs)}, 返回结果异常")
exit(8)
print(f"丢弃前数量: {n}") print(f"丢弃前数量: {n}")
print(f"丢弃后数量: {len(benchmark_outputs)}") print(f"丢弃后数量: {len(benchmark_outputs)}")