simplebench.reporters.protocols.report_renderer module🔗
“Protocols for reporters stuff.
- class simplebench.reporters.protocols.report_renderer.ReportRenderer(*args, **kwargs)[source]🔗
Bases:
ProtocolA protocol for render methods in Reporters.
Defines a method signature for rendering benchmark results for a given
CaseandSection.The signature must match the following:
def method_name(self, *, case: Case, section: Section, options: ReporterOptions) -> str | bytes | Text | Table:
Subsets of
str | bytes | Text | Tablefor the return type are allowed for specific reporters.