A utility to measure how long a CLI program takes to be interactive.
With v1.21 or greater of Golang you can easily install from source:
go install github.com/JosephNaberhaus/cli-tti@latest
Download and extract the appropriate binary for your platform from the releases page.
cli-tti [--wait-time] [-n] [--print-expected] <command to test>
--wait-time
: The number of milliseconds to wait until the program is assumed to be interactive.
-n
: The number of cycles to time the command before computing the average time-to-interactive.
--print-expected
: Print the output that the utility has determined to be the interactive state of the command.