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:
reportBenchmarkReport

A populated report from run_suite().

titlestr

Figure title.

subtitlestr, optional

Secondary line under the title. Defaults to a host summary.

Returns:
matplotlib.figure.Figure
Raises:
ImportError

If matplotlib is not installed (pip install mcframework[viz]).

ValueError

If report contains no results to plot.