Expand description
Generate markdown comparison tables from Cargo Criterion benchmark JSON output.
Currently, the tool is limited to Github Flavored Markdown (GFM), but adding new output types is relatively simple.
§Generated Markdown Example
Modules§
- formatter
- This module holds the various formatters that can be used to format the output
Structs§
- Benchmark
Complete - Raw deserialized JSON Criterion benchmark data
- Benchmark
Group Complete - Raw deserialized JSON Criterion benchmark group data
- Column
Info - Column maximum width data
- Comparison
- A comparison time of a benchmark to its baseline
- Criterion
Table Data - Fully processed Criterion benchmark data ready for formatting
- Tables
Config - Configuration file format for adding comments to tables
Enums§
- RawCriterion
Data - Enum that can hold either Raw deserialized JSON benchmark or benchmark group data
- Time
Unit - Time unit of a particular measurement
Traits§
- Formatter
- Implement this “visitor” trait to create a
Formatter
for a new file type
Functions§
- build_
tables - Top level function that can be used to build table data. It takes a reader (raw
cargo-criterion
JSON data), aFormatter
(only option isGFMFormatter
as of this writing), and the name of a file inTablesConfig
toml format (the file is optional, simply skipped if it can’t be found)