@@ -258,29 +258,29 @@ def print_benchmarks_info(self):
258258 f"{ datetime .fromtimestamp (benchmark .end_time ).strftime ("%H:%M:%S" )} " ,
259259 f"{ (benchmark .end_time - benchmark .start_time ):.1f} " ,
260260 (
261- f"{ benchmark .successful_total :>5} / "
262- f"{ benchmark .incomplete_total } / "
263- f"{ benchmark .errored_total } "
261+ f"{ benchmark .total_count . successful :>5} / "
262+ f"{ benchmark .total_count . incomplete } / "
263+ f"{ benchmark .total_count . errored } "
264264 ),
265265 (
266- f"{ benchmark .prompt_token_count .successful .mean :>5.1f} / "
267- f"{ benchmark .prompt_token_count .incomplete .mean :.1f} / "
268- f"{ benchmark .prompt_token_count .errored .mean :.1f} "
266+ f"{ benchmark .metrics . prompt_token_count .successful .mean :>5.1f} / "
267+ f"{ benchmark .metrics . prompt_token_count .incomplete .mean :.1f} / "
268+ f"{ benchmark .metrics . prompt_token_count .errored .mean :.1f} "
269269 ),
270270 (
271- f"{ benchmark .output_token_count .successful .mean :>5.1f} / "
272- f"{ benchmark .output_token_count .incomplete .mean :.1f} / "
273- f"{ benchmark .output_token_count .errored .mean :.1f} "
271+ f"{ benchmark .metrics . output_token_count .successful .mean :>5.1f} / "
272+ f"{ benchmark .metrics . output_token_count .incomplete .mean :.1f} / "
273+ f"{ benchmark .metrics . output_token_count .errored .mean :.1f} "
274274 ),
275275 (
276- f"{ benchmark .prompt_token_count .successful .total_sum :>6.0f} / "
277- f"{ benchmark .prompt_token_count .incomplete .total_sum :.0f} / "
278- f"{ benchmark .prompt_token_count .errored .total_sum :.0f} "
276+ f"{ benchmark .metrics . prompt_token_count .successful .total_sum :>6.0f} / "
277+ f"{ benchmark .metrics . prompt_token_count .incomplete .total_sum :.0f} / "
278+ f"{ benchmark .metrics . prompt_token_count .errored .total_sum :.0f} "
279279 ),
280280 (
281- f"{ benchmark .output_token_count .successful .total_sum :>6.0f} / "
282- f"{ benchmark .output_token_count .incomplete .total_sum :.0f} / "
283- f"{ benchmark .output_token_count .errored .total_sum :.0f} "
281+ f"{ benchmark .metrics . output_token_count .successful .total_sum :>6.0f} / "
282+ f"{ benchmark .metrics . output_token_count .incomplete .total_sum :.0f} / "
283+ f"{ benchmark .metrics . output_token_count .errored .total_sum :.0f} "
284284 ),
285285 ]
286286 )
@@ -313,29 +313,29 @@ def print_benchmarks_stats(self):
313313 rows .append (
314314 [
315315 strategy_display_str (benchmark .args .strategy ),
316- f"{ benchmark .requests_per_second .successful .mean :.2f} " ,
317- f"{ benchmark .requests_concurrency .successful .mean :.2f} " ,
318- f"{ benchmark .output_tokens_per_second .total .mean :.1f} " ,
319- f"{ benchmark .tokens_per_second .total .mean :.1f} " ,
316+ f"{ benchmark .metrics . requests_per_second .successful .mean :.2f} " ,
317+ f"{ benchmark .metrics . request_concurrency .successful .mean :.2f} " ,
318+ f"{ benchmark .metrics . output_tokens_per_second .total .mean :.1f} " ,
319+ f"{ benchmark .metrics . tokens_per_second .total .mean :.1f} " ,
320320 (
321- f"{ benchmark .request_latency .successful .mean :.2f} / "
322- f"{ benchmark .request_latency .successful .median :.2f} / "
323- f"{ benchmark .request_latency .successful .percentiles .p99 :.2f} "
321+ f"{ benchmark .metrics . request_latency .successful .mean :.2f} / "
322+ f"{ benchmark .metrics . request_latency .successful .median :.2f} / "
323+ f"{ benchmark .metrics . request_latency .successful .percentiles .p99 :.2f} "
324324 ),
325325 (
326- f"{ benchmark .time_to_first_token_ms .successful .mean :.1f} / "
327- f"{ benchmark .time_to_first_token_ms .successful .median :.1f} / "
328- f"{ benchmark .time_to_first_token_ms .successful .percentiles .p99 :.1f} "
326+ f"{ benchmark .metrics . time_to_first_token_ms .successful .mean :.1f} / "
327+ f"{ benchmark .metrics . time_to_first_token_ms .successful .median :.1f} / "
328+ f"{ benchmark .metrics . time_to_first_token_ms .successful .percentiles .p99 :.1f} "
329329 ),
330330 (
331- f"{ benchmark .inter_token_latency_ms .successful .mean :.1f} / "
332- f"{ benchmark .inter_token_latency_ms .successful .median :.1f} / "
333- f"{ benchmark .inter_token_latency_ms .successful .percentiles .p99 :.1f} "
331+ f"{ benchmark .metrics . inter_token_latency_ms .successful .mean :.1f} / "
332+ f"{ benchmark .metrics . inter_token_latency_ms .successful .median :.1f} / "
333+ f"{ benchmark .metrics . inter_token_latency_ms .successful .percentiles .p99 :.1f} "
334334 ),
335335 (
336- f"{ benchmark .time_per_output_token_ms .successful .mean :.1f} / "
337- f"{ benchmark .time_per_output_token_ms .successful .median :.1f} / "
338- f"{ benchmark .time_per_output_token_ms .successful .percentiles .p99 :.1f} "
336+ f"{ benchmark .metrics . time_per_output_token_ms .successful .mean :.1f} / "
337+ f"{ benchmark .metrics . time_per_output_token_ms .successful .median :.1f} / "
338+ f"{ benchmark .metrics . time_per_output_token_ms .successful .percentiles .p99 :.1f} "
339339 ),
340340 ]
341341 )
0 commit comments