fix: use consistent time denominator for throughput metrics in bench_one_batch_server (#19223)
This commit is contained in:
@@ -600,8 +600,8 @@ def run_one_case(
|
||||
|
||||
# Compute metrics
|
||||
latency = time.perf_counter() - tic
|
||||
input_throughput = batch_size * input_len / last_ttft
|
||||
output_throughput = batch_size * output_len / (latency - last_ttft)
|
||||
input_throughput = batch_size * input_len / latency
|
||||
output_throughput = batch_size * output_len / latency
|
||||
overall_throughput = batch_size * (input_len + output_len) / latency
|
||||
|
||||
if backend == "vllm":
|
||||
|
||||
Reference in New Issue
Block a user