Module card

Module card 

Source
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_for maps 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§

CardSpec
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 f64 becomes 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_record fails if the last record file (by name) of a gate lacks one, since a missing key hides its box.