Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions benchmarks/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def to_baseline(results: list[RunResult]) -> dict[str, typing.Any]:

def format_table(results: list[RunResult]) -> str:
"""Render the runs as a human table with a gated-vs-informational footer."""
# Columns/precision/footer facts are mirrored in format_markdown -- keep in sync.
header = (
f"{'scenario':<22} {'msg/s':>9} {'delete/msg':>11} {'WALrec/msg':>11} "
f"{'WALB/msg':>9} {'fpi':>5} {'upd':>7} {'del':>7} {'dead_tup':>9}"
Expand Down Expand Up @@ -135,6 +136,7 @@ def format_markdown(results: list[RunResult], failures: list[str]) -> str:
function only formats -- the exit code is the caller's, so the comment can be
posted on both pass and fail.
"""
# Columns/precision/footer facts are mirrored in format_table -- keep in sync.
verdict = "✅ gate passed" if not failures else "❌ gate FAILED"
lines = ["## Benchmark gate", "", verdict, ""]
if failures:
Expand Down