Documentation
¶
Overview ¶
Command himorime checks whether command-line programs stay within their performance budgets: latency, throughput, CPU time and peak RSS, locally and in CI.
It measures commands declared in a versioned YAML suite, compares them with each other or with a Git base revision, checks absolute performance budgets, and exits non-zero on a confirmed regression. See https://nao1215.github.io/himorime/ for the documentation.
Directories
¶
| Path | Synopsis |
|---|---|
|
bench
|
|
|
thirdparty/gen
command
Command gen writes the input files the third-party benchmark suites measure over, so that no sample data from anyone else's project is committed here.
|
Command gen writes the input files the third-party benchmark suites measure over, so that no sample data from anyone else's project is committed here. |
|
examples
|
|
|
tools/sleepy
command
Command sleepy stands in for a program whose behavior you control: it sleeps or spins, optionally with jitter, optionally in child processes, then exits with the status you ask for.
|
Command sleepy stands in for a program whose behavior you control: it sleeps or spins, optionally with jitter, optionally in child processes, then exits with the status you ask for. |
|
tools/wordcount
command
Command wordcount counts lines, words and bytes, like a tiny wc.
|
Command wordcount counts lines, words and bytes, like a tiny wc. |
|
internal
|
|
|
buildinfo
Package buildinfo reports the version himorime was built as.
|
Package buildinfo reports the version himorime was built as. |
|
cli
Package cli implements himorime's command-line interface: subcommand dispatch, flag parsing, and the mapping of outcomes to exit codes.
|
Package cli implements himorime's command-line interface: subcommand dispatch, flag parsing, and the mapping of outcomes to exit codes. |
|
config
Package config loads, validates and resolves himorime suite files.
|
Package config loads, validates and resolves himorime suite files. |
|
docgen
Package docgen generates the parts of the documentation that restate the code: the command reference, the exit code table, the configuration field reference and defaults, and the example suites embedded in the Cookbook and README.
|
Package docgen generates the parts of the documentation that restate the code: the command reference, the exit code table, the configuration field reference and defaults, and the example suites embedded in the Cookbook and README. |
|
envinfo
Package envinfo describes the machine a benchmark ran on, for reports.
|
Package envinfo describes the machine a benchmark ran on, for reports. |
|
exitcode
Package exitcode defines himorime's exit statuses, a stable public contract.
|
Package exitcode defines himorime's exit statuses, a stable public contract. |
|
ghactions
Package ghactions is the thin adapter between himorime and GitHub Actions.
|
Package ghactions is the thin adapter between himorime and GitHub Actions. |
|
gitwt
Package gitwt prepares a Git revision for measurement in a temporary worktree without touching the user's working tree, index or branches.
|
Package gitwt prepares a Git revision for measurement in a temporary worktree without touching the user's working tree, index or branches. |
|
metric
Package metric defines the performance metrics himorime collects: their names, units, the direction that counts as better, how raw samples are aggregated, and the typed quantities (durations, byte sizes, rates and percentages) that budgets and regression thresholds are written in.
|
Package metric defines the performance metrics himorime collects: their names, units, the direction that counts as better, how raw samples are aggregated, and the typed quantities (durations, byte sizes, rates and percentages) that budgets and regression thresholds are written in. |
|
proc
Package proc starts processes so that a whole process tree can be stopped, and measures their wall-clock duration.
|
Package proc starts processes so that a whole process tree can be stopped, and measures their wall-clock duration. |
|
redact
Package redact removes secret values from text himorime prints.
|
Package redact removes secret values from text himorime prints. |
|
report
Package report turns raw measurements into judged results and renders them as a terminal table, JSON, CSV, Markdown or a GitHub Actions job summary.
|
Package report turns raw measurements into judged results and renders them as a terminal table, JSON, CSV, Markdown or a GitHub Actions job summary. |
|
runner
Package runner executes benchmark suites and records raw samples.
|
Package runner executes benchmark suites and records raw samples. |
|
stats
Package stats computes the summary statistics himorime reports and the bootstrap comparison it uses to classify a change between two revisions.
|
Package stats computes the summary statistics himorime reports and the bootstrap comparison it uses to classify a change between two revisions. |
|
Package schema embeds the published JSON Schemas.
|
Package schema embeds the published JSON Schemas. |
|
scripts
|
|
|
completions
command
Command completions writes the shell completion scripts into completions/.
|
Command completions writes the shell completion scripts into completions/. |
|
smoke
command
Command smoke checks the artifacts GoReleaser wrote to a dist directory before they are published, on any operating system:
|
Command smoke checks the artifacts GoReleaser wrote to a dist directory before they are published, on any operating system: |
|
test
|
|
|
e2e/helper
command
Command helper is the portable stand-in program the end-to-end suite measures.
|
Command helper is the portable stand-in program the end-to-end suite measures. |
|
e2e/run
command
Command run executes the end-to-end suite.
|
Command run executes the end-to-end suite. |
Click to show internal directories.
Click to hide internal directories.