There’s a good array of options when it comes to exporting the timing summary statistics: They can be exported as:
- Markdown table. This is useful for adding the information to README files.
- Asciidoc table. Asciidoc is a human-readable document format, semantically equivalent to DocBook XML. Functionally similar to the Markdown exporter.
- CSV. A comma-separated values file is a delimited text file that uses a comma to separate values. This format is good for simple plotting (with say gnuplot).
Here’s sample output for JSON (wth –export-json flag).
"command": "rg function",
lines omitted for brevity
What other features are on offer?
- Statistical analysis across multiple runs.
- Support for arbitrary shell commands.
- Run hyperfine with the shell of your choice.
- Statistical outlier detection to detect interference from other programs and caching effects.
- Parameterized benchmarks (e.g. vary the number of threads). With this feature, you can run a benchmark where only a single parameter is altered.
- Option to disable output coloring and interactive elements.
-c, --cleanup <CMD>option to execute
CMDafter the completion of all benchmarking runs for a given command. This is useful if the commands to be benchmarked produce artifacts that need to be cleaned up.
- Set the time limit used. Choose from millisecond or second.