mcframework.benchmark.plot_benchmarks#
- mcframework.benchmark.plot_benchmarks(report: BenchmarkReport, *, title: str = 'McFramework Backend Performance', subtitle: str | None = None) Figure[source]#
Render a clean four-panel benchmark figure.
Panels: execution time vs n (log-log), throughput vs n (log-log), speedup bars at the largest common size, and speedup scaling vs n.
- Parameters:
- report
BenchmarkReport A populated report from
run_suite().- title
str Figure title.
- subtitle
str, optional Secondary line under the title. Defaults to a host summary.
- report
- Returns:
matplotlib.figure.Figure
- Raises:
ImportErrorIf matplotlib is not installed (
pip install mcframework[viz]).ValueErrorIf
reportcontains no results to plot.