Expand description
2026-09-26: Shareable result cards: a benchmark record rendered onto the SVG card template
(assets/cards/result-card.svg).
Owner: bench gate. Invariants:
- One template for every benchmark:
spec_formaps a benchmark’s metrics onto one hero number and four detail slots. - Every card prints the model, quantization, recipe, benchmark id and hardware beside the
number; an unknown quantization or recipe renders as
—.
Structs§
- Card
Spec - 2026-09-26: What a benchmark puts on a card.
- Slot
- 2026-09-26: One of the four detail boxes: its label, the metric key and the format.
Enums§
- Fmt
- 2026-09-26: How a raw
f64becomes card text.
Functions§
- parse_
args - 2026-09-26:
author=Ada,website=ada.dev-> map, with keys lowercased. Later keys win; spaces and empty pairs are ignored. A part without=, or with an empty key, is an error rather than dropped, so a typo cannot silently leave a field off the card. - render
- 2026-09-26: Render a record onto the card template.
- spec_
for - 2026-09-26: The per-benchmark mapping. Its keys are metric names that committed records
carry:
every_card_key_exists_on_a_real_recordfails if the last record file (by name) of a gate lacks one, since a missing key hides its box.