| 151 | |
| 152 | @dataclasses.dataclass(frozen=True) |
| 153 | class BenchmarkResult: |
| 154 | stats: pd.DataFrame # pytype: disable=invalid-annotation # typed-pandas |
| 155 | raw_stats: pd.DataFrame # pytype: disable=invalid-annotation # typed-pandas |
| 156 | |
| 157 | def _repr_html_(self) -> str: |
| 158 | """Colab/notebook representation.""" |
| 159 | return '<strong>BenchmarkResult:</strong><br/>' + self.stats._repr_html_() # pylint: disable=protected-access |
| 160 | |
| 161 | |
| 162 | def raw_benchmark( |