plumed_bench_pp.parser

Functions

parse_benchmark_output(lines)

Parses the benchmark report lines into a dictionary.

parse_full_benchmark_output(lines)

A function to parse the full benchmark output.

parse_plumed_time_report(lines)

Parses the given list of lines containing the time report that plumed prints at the end of the runs.

plumed_bench_pp.parser.parse_benchmark_output(lines: list[str] | Iterable[str]) dict

Parses the benchmark report lines into a dictionary. If you have a complete run with the header use parse_full_benchmark_output()

Parameters:

lines (list[str]) – The list of lines containing benchmark output data.

Returns:

A dictionary containing the parsed benchmark data.

Return type:

dict

plumed_bench_pp.parser.parse_full_benchmark_output(lines: list[str]) BenchmarkRun

A function to parse the full benchmark output.

Parameters:

lines (list[str]) – The complete output of the benchmark run. Already split into lines.

Returns:

The parsed benchmark run.

Return type:

BenchmarkRun

plumed_bench_pp.parser.parse_plumed_time_report(lines: list[str]) KernelBenchmark

Parses the given list of lines containing the time report that plumed prints at the end of the runs.

Parameters:

lines (list[str]) – A list of lines containing the Plumed time report.

Returns:

The parsed time report.

Return type:

KernelBenchmark