mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
[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:
@@ -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)}")
|
||||||
|
|||||||
Reference in New Issue
Block a user