bencher.bench_plot_server

A server for display plots of benchmark results

Module Contents

Classes

BenchPlotServer

A server for display plots of benchmark results

class bencher.bench_plot_server.BenchPlotServer

A server for display plots of benchmark results

plot_server(bench_name: str, plot_cfg: bencher.bench_cfg.BenchPlotSrvCfg = BenchPlotSrvCfg(), plots_instance=None) threading.Thread

Load previously calculated benchmark data from the database and start a plot server to display it

Parameters:
  • bench_name (str) – The name of the benchmark and output folder for the figures

  • plot_cfg (BenchPlotSrvCfg, optional) – Options for the plot server. Defaults to BenchPlotSrvCfg().

Raises:

FileNotFoundError – No data found was found in the database to plot

load_data_from_cache(bench_name: str) Tuple[bencher.bench_cfg.BenchCfg, List[panel.panel]] | None

Load previously calculated benchmark data from the database and start a plot server to display it

Parameters:

bench_name (str) – The name of the benchmark and output folder for the figures

Returns:

benchmark result data and any additional panels

Return type:

Tuple[BenchCfg, List[pn.panel]] | None

Raises:

FileNotFoundError – No data found was found in the database to plot

serve(bench_name: str, plots_instance: List[panel.panel], port: int = None, show: bool = True) threading.Thread

Launch a panel server to view results

Parameters:
  • bench_cfg (BenchCfg) – benchmark results

  • plots_instance (List[pn.panel]) – list of panel objects to display

  • port (int) – use a fixed port to lauch the server