MCPcopy Create free account
hub / github.com/InfinitiBit/graphbit / BenchmarkMetrics

Class BenchmarkMetrics

benchmarks/frameworks/common.py:128–143  ·  view source on GitHub ↗

Performance metrics collected during benchmarking.

Source from the content-addressed store, hash-verified

126
127@dataclass
128class 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
146class PerformanceMonitor:

Callers 3

_average_metricsMethod · 0.90
stop_monitoringMethod · 0.85
run_scenarioMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected