Performance metrics collected during benchmarking.
| 126 | |
| 127 | @dataclass |
| 128 | class BenchmarkMetrics: |
| 129 | """Performance metrics collected during benchmarking.""" |
| 130 | |
| 131 | execution_time_ms: float = 0.0 |
| 132 | memory_usage_mb: float = 0.0 |
| 133 | cpu_usage_percent: float = 0.0 |
| 134 | token_count: int = 0 |
| 135 | latency_ms: float = 0.0 |
| 136 | throughput_tasks_per_sec: float = 0.0 |
| 137 | error_rate: float = 0.0 |
| 138 | concurrent_tasks: int = 0 |
| 139 | setup_time_ms: float = 0.0 |
| 140 | teardown_time_ms: float = 0.0 |
| 141 | |
| 142 | # Additional metadata |
| 143 | metadata: Dict[str, Any] = field(default_factory=dict) |
| 144 | |
| 145 | |
| 146 | class PerformanceMonitor: |
no outgoing calls
no test coverage detected