@@ -221,7 +221,7 @@ def __iter__(self):
221
221
"""
222
222
return iter (self .results )
223
223
224
- @computed_field
224
+ @computed_field # type: ignore[misc]
225
225
@property
226
226
def request_count (self ) -> int :
227
227
"""
@@ -232,7 +232,7 @@ def request_count(self) -> int:
232
232
"""
233
233
return len (self .results )
234
234
235
- @computed_field
235
+ @computed_field # type: ignore[misc]
236
236
@property
237
237
def error_count (self ) -> int :
238
238
"""
@@ -243,7 +243,7 @@ def error_count(self) -> int:
243
243
"""
244
244
return len (self .errors )
245
245
246
- @computed_field
246
+ @computed_field # type: ignore[misc]
247
247
@property
248
248
def total_count (self ) -> int :
249
249
"""
@@ -254,7 +254,7 @@ def total_count(self) -> int:
254
254
"""
255
255
return self .request_count + self .error_count
256
256
257
- @computed_field
257
+ @computed_field # type: ignore[misc]
258
258
@property
259
259
def start_time (self ) -> Optional [float ]:
260
260
"""
@@ -268,7 +268,7 @@ def start_time(self) -> Optional[float]:
268
268
269
269
return self .results [0 ].start_time
270
270
271
- @computed_field
271
+ @computed_field # type: ignore[misc]
272
272
@property
273
273
def end_time (self ) -> Optional [float ]:
274
274
"""
@@ -282,7 +282,7 @@ def end_time(self) -> Optional[float]:
282
282
283
283
return self .results [- 1 ].end_time
284
284
285
- @computed_field
285
+ @computed_field # type: ignore[misc]
286
286
@property
287
287
def duration (self ) -> float :
288
288
"""
@@ -296,7 +296,7 @@ def duration(self) -> float:
296
296
297
297
return self .end_time - self .start_time
298
298
299
- @computed_field
299
+ @computed_field # type: ignore[misc]
300
300
@property
301
301
def completed_request_rate (self ) -> float :
302
302
"""
@@ -310,7 +310,7 @@ def completed_request_rate(self) -> float:
310
310
311
311
return len (self .results ) / self .duration
312
312
313
- @computed_field
313
+ @computed_field # type: ignore[misc]
314
314
@property
315
315
def request_latency (self ) -> float :
316
316
"""
@@ -340,7 +340,7 @@ def request_latency_distribution(self) -> Distribution:
340
340
]
341
341
)
342
342
343
- @computed_field
343
+ @computed_field # type: ignore[misc]
344
344
@property
345
345
def request_latency_percentiles (self ) -> List [float ]:
346
346
"""
@@ -352,7 +352,7 @@ def request_latency_percentiles(self) -> List[float]:
352
352
return self .request_latency_distribution .percentiles ([1 , 5 , 10 , 50 , 90 , 95 , 99 ])
353
353
354
354
355
- @computed_field
355
+ @computed_field # type: ignore[misc]
356
356
@property
357
357
def time_to_first_token (self ) -> float :
358
358
"""
@@ -382,7 +382,7 @@ def ttft_distribution(self) -> Distribution:
382
382
]
383
383
)
384
384
385
- @computed_field
385
+ @computed_field # type: ignore[misc]
386
386
@property
387
387
def time_to_first_token_percentiles (self ) -> List [float ]:
388
388
"""
@@ -395,7 +395,7 @@ def time_to_first_token_percentiles(self) -> List[float]:
395
395
"""
396
396
return self .ttft_distribution .percentiles ([1 , 5 , 10 , 50 , 90 , 95 , 99 ])
397
397
398
- @computed_field
398
+ @computed_field # type: ignore[misc]
399
399
@property
400
400
def inter_token_latency (self ) -> float :
401
401
"""
@@ -423,7 +423,7 @@ def itl_distribution(self) -> Distribution:
423
423
]
424
424
)
425
425
426
- @computed_field
426
+ @computed_field # type: ignore[misc]
427
427
@property
428
428
def inter_token_latency_percentiles (self ) -> List [float ]:
429
429
"""
@@ -434,7 +434,7 @@ def inter_token_latency_percentiles(self) -> List[float]:
434
434
"""
435
435
return self .itl_distribution .percentiles ([1 , 5 , 10 , 50 , 90 , 95 , 99 ])
436
436
437
- @computed_field
437
+ @computed_field # type: ignore[misc]
438
438
@property
439
439
def output_token_throughput (self ) -> float :
440
440
"""
@@ -450,7 +450,7 @@ def output_token_throughput(self) -> float:
450
450
451
451
return total_tokens / self .duration
452
452
453
- @computed_field
453
+ @computed_field # type: ignore[misc]
454
454
@property
455
455
def prompt_token (self ) -> float :
456
456
"""
@@ -471,7 +471,7 @@ def prompt_token_distribution(self) -> Distribution:
471
471
"""
472
472
return Distribution (data = [result .prompt_token_count for result in self .results ])
473
473
474
- @computed_field
474
+ @computed_field # type: ignore[misc]
475
475
@property
476
476
def prompt_token_percentiles (self ) -> List [float ]:
477
477
"""
@@ -482,7 +482,7 @@ def prompt_token_percentiles(self) -> List[float]:
482
482
"""
483
483
return self .prompt_token_distribution .percentiles ([1 , 5 , 50 , 95 , 99 ])
484
484
485
- @computed_field
485
+ @computed_field # type: ignore[misc]
486
486
@property
487
487
def output_token (self ) -> float :
488
488
"""
@@ -503,7 +503,7 @@ def output_token_distribution(self) -> Distribution:
503
503
"""
504
504
return Distribution (data = [result .output_token_count for result in self .results ])
505
505
506
- @computed_field
506
+ @computed_field # type: ignore[misc]
507
507
@property
508
508
def output_token_percentiles (self ) -> List [float ]:
509
509
"""
@@ -514,7 +514,7 @@ def output_token_percentiles(self) -> List[float]:
514
514
"""
515
515
return self .output_token_distribution .percentiles ([1 , 5 , 50 , 95 , 99 ])
516
516
517
- @computed_field
517
+ @computed_field # type: ignore[misc]
518
518
@property
519
519
def overloaded (self ) -> bool :
520
520
if (
0 commit comments