Skip to main content

Module report

Module report 

Source
Expand description

Output renderers for stuffr bench: the human table (layout B), JSON and CSV. Pure formatting over already-measured rows; no timing happens here.

The size formatter is local: stuffr_core::format_size prints exact multiples without a decimal and uses bytes as the unit, while the table wants a uniform one-decimal 38.1 MiB and 512 B.

Structs§

Conditions
The conditions the run was made under, shown on the input line and in JSON and CSV. The backend is per row (Row::backend), not here: one build can bench some codecs through C and others in pure Rust.

Enums§

MemoryMode
Whether the memory columns exist in this run.

Functions§

csv
Header plus one line per row; empty fields stand for none. The run’s conditions follow the measurements on every line, then the row’s backend, its output (memory or disk, empty for a failed row) and last the memory peaks and mem_error, empty when not measured.
human
The input line, the table and the winners block.
json
One JSON object: conditions, rows and winners. Scores are relative to this run.
table_only
The table alone: header, rows and the footnote when a row is marked.