xnn.common.benchmark.report.write#

xnn.common.benchmark.report.write(rows, fmt, path, cols=None)[source]#

Write results in a single registered format.

Parameters:
  • rows (list of dict) – Result rows.

  • fmt (str) – Registered writer name (case-insensitive).

  • path (str) – Destination file path.

  • cols (list of str or None, optional) – Column order; derived via columns() when None.

Returns:

The path written to.

Return type:

str

Raises:

KeyError – If fmt is not a registered writer.