Report Generation¶
report
¶
Report generation from benchmark results.
Combines one or more :class:~q2mm.diagnostics.benchmark.BenchmarkResult
objects into detailed per-result SI tables and a summary leaderboard.
build_leaderboard_rows
¶
build_leaderboard_rows(results: list[BenchmarkResult]) -> list[dict]
Build leaderboard row dicts from benchmark results.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
results
|
list[BenchmarkResult]
|
Completed benchmark results. |
required |
Returns:
| Type | Description |
|---|---|
list[dict]
|
list[dict]: Row dicts with keys |
Source code in q2mm/diagnostics/report.py
detailed_report
¶
detailed_report(result: BenchmarkResult, *, combo_label: str | None = None) -> list[TablePrinter]
Generate all SI tables for a single benchmark result.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
BenchmarkResult
|
A single completed benchmark result. |
required |
combo_label
|
str | None
|
Display label for the backend+optimizer
combination (e.g., |
None
|
Returns:
| Type | Description |
|---|---|
list[TablePrinter]
|
list[TablePrinter]: One |
Source code in q2mm/diagnostics/report.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | |
full_report
¶
full_report(results: list[BenchmarkResult]) -> None
Print the complete report: leaderboard + all SI tables.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
results
|
list[BenchmarkResult]
|
One result per (backend, optimizer) combination. |
required |