Skip to main content

Module export

Module export 

Source
Expand description

Results in hyperfine’s --export-json shape.

Projects moving from hyperfine already have scripts that read that file (aube’s generate-results.js reads mean, stddev, min and max). Writing the same shape lets them switch the measuring tool without rewriting what consumes it. bench and subject are extra keys, which hyperfine consumers ignore; they are what tell entries apart once one file holds several benchmarks. user and system are omitted because tak does not measure CPU time. Everything tak adds is an extra key, and none of hyperfine’s changes meaning: checks is present only for a subject with a check, and version only for one with a version_cmd.

Structs§

Checks
How a subject’s timed samples fared against its check.
Export
ExportResult
Meta

Functions§

write