Beamscope.Benchmark.Report (Beamscope v0.1.0)

Copy Markdown View Source

Renders one or more Beamscope.Benchmark.Runner.run/1 results as a Markdown report matching docs/search-benchmark-2026-07.md's table format, and writes it to disk with an ISO8601 timestamp in the filename — so re-running the benchmark never silently overwrites a previous result.

Summary

Functions

Renders results (a list of Runner.run/1 maps) as a Markdown string.

Writes render/2's output to <dir>/benchmark_<repo_basename>_<timestamp>.md, one file per repo result.

Functions

render(results, generated_at \\ DateTime.utc_now())

@spec render([map()], DateTime.t()) :: String.t()

Renders results (a list of Runner.run/1 maps) as a Markdown string.

write(results, dir)

@spec write([map()], String.t()) :: [String.t()]

Writes render/2's output to <dir>/benchmark_<repo_basename>_<timestamp>.md, one file per repo result.