Skip to content
Myr

hyperfine.1

This file

Path

doc/hyperfine.1

390 lines · 11.8 KiB

Last changed by

Alternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9

History of this file

Take it

The walk stopped after 200 commits: lines older than ab5ae5f point at it.

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

lines 1–5why, one step back
1.TH HYPERFINE 1
2.SH NAME3hyperfine \- command\-line benchmarking tool4.SH SYNOPSIS5.B hyperfine

Make --shell=none the default (#982)David Peterbefore adoptionab86cb9

line 6why, one step back
6.RB [ \-hVNS ]

Document reference commands and selective failures in the man page (#940)David Peterbefore adoption38faa76

line 7why, one step back
7.RB [ \-\-ignore\-failure[=MODE] ]

Update man pageDavid Peterbefore adoption0ce6578

lines 8–19why, one step back
8.RB [ \-\-warmup
9.IR NUM ]10.RB [ \-\-min\-runs11.IR NUM ]12.RB [ \-\-max\-runs13.IR NUM ]14.RB [ \-\-runs15.IR NUM ]16.RB [ \-\-setup17.IR CMD ]18.RB [ \-\-prepare19.IR CMD ]

Update docs to reflect addition of --concludeJack O'Connorbefore adoption942719b

lines 20–21why, one step back
20.RB [ \-\-conclude
21.IR CMD ]

Update man pageDavid Peterbefore adoption0ce6578

lines 22–36why, one step back
22.RB [ \-\-cleanup
23.IR CMD ]24.RB [ \-\-parameter\-scan25.IR VAR26.IR MIN27.IR MAX ]28.RB [ \-\-parameter\-step\-size29.IR DELTA ]30.RB [ \-\-parameter\-list31.IR VAR32.IR VALUES ]33.RB [ \-\-shell34.IR SHELL ]35.RB [ \-\-style36.IR TYPE ]

Alternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9

lines 37–38why, one step back
37.RB [ \-\-metrics
38.IR METRIC[:UNIT],...|default|time|all ]

Update man pageDavid Peterbefore adoption0ce6578

lines 39–55why, one step back
39.RB [ \-\-export\-asciidoc
40.IR FILE ]41.RB [ \-\-export\-csv42.IR FILE ]43.RB [ \-\-export\-json44.IR FILE ]45.RB [ \-\-export\-markdown46.IR FILE ]47.RB [ \-\-export\-orgmode48.IR FILE ]49.RB [ \-\-output50.IR WHERE ]51.RB [ \-\-input52.IR WHERE ]53.RB [ \-\-command\-name54.IR NAME ]55.RI [ COMMAND... ]

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

lines 56–71why, one step back
56.SH DESCRIPTION
57A command\-line benchmarking tool which includes:58.LP59.RS60* Statistical analysis across multiple runs61.RE62.RS63* Support for arbitrary shell commands64.RE65.RS66* Constant feedback about the benchmark progress and current estimates67.RE68.RS69* Warmup runs can be executed before the actual benchmark70.RE71.RS

Alternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9

line 72why, one step back
72* Cache-clearing commands can be set up before each benchmark run

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

lines 73–84why, one step back
73.RE
74.RS75* Statistical outlier detection to detect interference from other programs and caching effects76.RE77.RS78* Export results to various formats: CSV, JSON, Markdown, AsciiDoc79.RE80.RS81* Parameterized benchmarks (e.g. vary the number of threads)82.RE83.SH OPTIONS84.HP

Update man pageDavid Peterbefore adoption0ce6578

line 85why, one step back
85\fB\-w\fR, \fB\-\-warmup\fR \fINUM\fP

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 86why, one step back
86.IP

Update man pageDavid Peterbefore adoption0ce6578

lines 87–88why, one step back
87Perform \fINUM\fP warmup runs before the actual benchmark. This can be used
88to fill (disk) caches for I/O\-heavy programs.

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 89why, one step back
89.HP

Update man pageDavid Peterbefore adoption0ce6578

line 90why, one step back
90\fB\-m\fR, \fB\-\-min\-runs\fR \fINUM\fP

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 91why, one step back
91.IP

Update man pageDavid Peterbefore adoption0ce6578

line 92why, one step back
92Perform at least \fINUM\fP runs for each command. Default: 10.

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 93why, one step back
93.HP

Update man pageDavid Peterbefore adoption0ce6578

line 94why, one step back
94\fB\-M\fR, \fB\-\-max\-runs\fR \fINUM\fP

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 95why, one step back
95.IP

Update man pageDavid Peterbefore adoption0ce6578

lines 96–97why, one step back
96Perform at most \fINUM\fP runs for each command. By default, there is no
97limit.

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 98why, one step back
98.HP

Update man pageDavid Peterbefore adoption0ce6578

line 99why, one step back
99\fB\-r\fR, \fB\-\-runs\fR \fINUM\fP

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 100why, one step back
100.IP

Update man pageDavid Peterbefore adoption0ce6578

line 101why, one step back
101Perform exactly \fINUM\fP runs for each command. If this option is not specified,

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

lines 102–103why, one step back
102\fBhyperfine\fR automatically determines the number of runs.
103.HP

Update man pageDavid Peterbefore adoption0ce6578

line 104why, one step back
104\fB\-s\fR, \fB\-\-setup\fR \fICMD...\fP

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 105why, one step back
105.IP

Alternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9

line 106why, one step back
106Execute \fICMD\fP once before each set of benchmark runs. This is useful

Fix documentation typos and man-page formatting (#935)David Peterbefore adoption62cfbf0

line 107why, one step back
107for compiling your software with the provided parameters, or to do any

Update man pageDavid Peterbefore adoption0ce6578

lines 108–109why, one step back
108other work that should happen once before a series of benchmark runs,
109not every time as would happen with the \fB\-\-prepare\fR option.

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 110why, one step back
110.HP

Update man pageDavid Peterbefore adoption0ce6578

line 111why, one step back
111\fB\-p\fR, \fB\-\-prepare\fR \fICMD...\fP

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 112why, one step back
112.IP

Alternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9

line 113why, one step back
113Execute \fICMD\fP before each benchmark run. This is useful for clearing disk caches,

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

lines 114–118why, one step back
114for example.
115The \fB\-\-prepare\fR option can be specified once for all commands or multiple times,116once for each command. In the latter case, each preparation command will be117run prior to the corresponding benchmark command.118.HP

Add shorthand (-C) for --conclude option in man page (#838)ryantigbefore adoption589132c

line 119why, one step back
119\fB\-C\fR, \fB\-\-conclude\fR \fICMD...\fP

Update docs to reflect addition of --concludeJack O'Connorbefore adoption942719b

line 120why, one step back
120.IP

Alternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9

line 121why, one step back
121Execute \fICMD\fP after each benchmark run. This is useful for clearing disk caches,

Update docs to reflect addition of --concludeJack O'Connorbefore adoption942719b

lines 122–126why, one step back
122for example.
123The \fB\-\-conclude\fR option can be specified once for all commands or multiple times,124once for each command. In the latter case, each conclusion command will be125run after the corresponding benchmark command.126.HP

Update man pageDavid Peterbefore adoption0ce6578

line 127why, one step back
127\fB\-c\fR, \fB\-\-cleanup\fR \fICMD...\fP

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 128why, one step back
128.IP

Update man pageDavid Peterbefore adoption0ce6578

line 129why, one step back
129Execute \fICMD\fP after the completion of all benchmarking runs for each individual

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 130why, one step back
130command to be benchmarked. This is useful if the commands to be benchmarked

Fix documentation typos and man-page formatting (#935)David Peterbefore adoption62cfbf0

lines 131–132why, one step back
131produce artifacts that need to be cleaned up. It only runs once per series of
132benchmark runs, as opposed to the \fB\-\-conclude\fR option which runs after

fix typo in docsAnti Räisbefore adoption8b62240

line 133why, one step back
133every run.

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 134why, one step back
134.HP

Update man pageDavid Peterbefore adoption0ce6578

line 135why, one step back
135\fB\-P\fR, \fB\-\-parameter\-scan\fR \fIVAR\fP \fIMIN\fP \fIMAX\fP

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 136why, one step back
136.IP

Update man pageDavid Peterbefore adoption0ce6578

lines 137–138why, one step back
137Perform benchmark runs for each value in the range \fIMIN..MAX\fP. Replaces the
138string '{\fIVAR\fP}' in each command by the current parameter value.

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

lines 139–142why, one step back
139.IP
140.RS141Example:142.RS

Clean between runs in the make parameter-scan example (#939)David Peterbefore adoptionca28ebb

line 143why, one step back
143\fBhyperfine\fR \fB\-\-prepare\fR 'make clean' \fB\-P\fR threads 1 8 'make \-j {threads}'

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

lines 144–147why, one step back
144.RE
145.RE146.IP147This performs benchmarks for 'make \-j 1', 'make \-j 2', ..., 'make \-j 8'.

Update man pageDavid Peterbefore adoption0ce6578

lines 148–149why, one step back
148.IP
149To have the value increase following different patterns, use shell

Fix documentation typos and man-page formatting (#935)David Peterbefore adoption62cfbf0

line 150why, one step back
150arithmetic.

Update man pageDavid Peterbefore adoption0ce6578

lines 151–154why, one step back
151.IP
152.RS153Example:154.RS

Make --shell=none the default (#982)David Peterbefore adoptionab86cb9

line 155why, one step back
155\fBhyperfine\fR \fB\-\-shell=bash\fR \fB\-P\fR size 0 3 'sleep $((2**{size}))'

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 156why, one step back
156.RE

Update man pageDavid Peterbefore adoption0ce6578

lines 157–162why, one step back
157.RE
158.IP159This performs benchmarks with power of 2 increases: 'sleep 1', 'sleep1602', 'sleep 4', ...161.IP162The exact syntax may vary depending on your shell and OS.

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 163why, one step back
163.HP

Update man pageDavid Peterbefore adoption0ce6578

line 164why, one step back
164\fB\-D\fR, \fB\-\-parameter\-step\-size\fR \fIDELTA\fP

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

lines 165–166why, one step back
165.IP
166This argument requires \fB\-\-parameter\-scan\fR to be specified as well. Traverse the

Merge pull request #951 from Likio3000/codex/reject-negative-parameter-stepsDavid Peterbefore adoption862625f

line 167why, one step back
167range \fIMIN..MAX\fP in steps of \fIDELTA\fP, which must be positive.

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

lines 168–177why, one step back
168.IP
169.RS170Example:171.RS172\fBhyperfine\fR \fB\-P\fR delay 0.3 0.7 \fB\-D\fR 0.2 'sleep {delay}'173.RE174.RE175.IP176This performs benchmarks for 'sleep 0.3', 'sleep 0.5' and 'sleep 0.7'.177.HP

Update man pageDavid Peterbefore adoption0ce6578

line 178why, one step back
178\fB\-L\fR, \fB\-\-parameter\-list\fR \fIVAR\fP \fIVALUES\fP

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 179why, one step back
179.IP

Update man pageDavid Peterbefore adoption0ce6578

lines 180–181why, one step back
180Perform benchmark runs for each value in the comma\-separated list of \fIVALUES\fP.
181Replaces the string '{\fIVAR\fP}' in each command by the current parameter value.

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

lines 182–185why, one step back
182.IP
183.RS184Example:185.RS

Use C++ compiler drivers in parameter-list examples (#936)David Peterbefore adoption1c92587

line 186why, one step back
186\fBhyperfine\fR \fB\-L\fR compiler g++,clang++ '{compiler} \-O2 main.cpp'

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

lines 187–189why, one step back
187.RE
188.RE189.IP

Use C++ compiler drivers in parameter-list examples (#936)David Peterbefore adoption1c92587

line 190why, one step back
190This performs benchmarks for 'g++ \-O2 main.cpp' and 'clang++ \-O2 main.cpp'.

Update man pageDavid Peterbefore adoption0ce6578

lines 191–193why, one step back
191.IP
192The option can be specified multiple times to run benchmarks for all193possible parameter combinations.

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 194why, one step back
194.HP

Make --shell=none the default (#982)David Peterbefore adoptionab86cb9

line 195why, one step back
195\fB\-\-shell\fR \fISHELL\fP

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 196why, one step back
196.IP

Make --shell=none the default (#982)David Peterbefore adoptionab86cb9

line 197why, one step back
197Set the shell to use for executing commands (default: none). This can be

Update man pageDavid Peterbefore adoption0ce6578

lines 198–199why, one step back
198the name or the path to the shell executable, or a full command line
199like "bash \fB\-\-norc\fR". It can also be set to "default" to explicitly

Make --shell=none the default (#982)David Peterbefore adoptionab86cb9

line 200why, one step back
200select the platform shell (sh on Unix, cmd.exe on Windows). Finally, this can also be

Update man pageDavid Peterbefore adoption0ce6578

lines 201–203why, one step back
201set to "none" to disable the shell. In this case, commands will be
202executed directly. They can still have arguments, but more complex203things like "sleep 0.1; sleep 0.2" are not possible without a shell.

Make --shell=none the default (#982)David Peterbefore adoptionab86cb9

line 204why, one step back
204This option also applies to setup, prepare, conclude, and cleanup commands.

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 205why, one step back
205.HP

Make --shell=none the default (#982)David Peterbefore adoptionab86cb9

lines 206–209why, one step back
206\fB\-S\fR
207.IP208An alias for '\-\-shell=default' (sh on Unix, cmd.exe on Windows).209.HP

Update man pageDavid Peterbefore adoption0ce6578

line 210why, one step back
210\fB\-N\fR

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 211why, one step back
211.IP

Update man pageDavid Peterbefore adoption0ce6578

line 212why, one step back
212An alias for '\-\-shell=none'.

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 213why, one step back
213.HP

Document reference commands and selective failures in the man page (#940)David Peterbefore adoption38faa76

line 214why, one step back
214\fB\-i\fR, \fB\-\-ignore\-failure\fR[=\fIMODE\fP]

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 215why, one step back
215.IP

Document reference commands and selective failures in the man page (#940)David Peterbefore adoption38faa76

lines 216–220why, one step back
216Ignore failures of the benchmarked programs. Without a value or with
217\fBall\-non\-zero\fR, all non\-zero exit codes are ignored.218Alternatively, provide a comma\-separated list of exit codes to ignore,219for example \fB\-\-ignore\-failure=1,2\fR.220An explicit value must be attached to the option with an equals sign.

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 221why, one step back
221.HP

Update man pageDavid Peterbefore adoption0ce6578

line 222why, one step back
222\fB\-\-style\fR \fITYPE\fP

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 223why, one step back
223.IP

Update man pageDavid Peterbefore adoption0ce6578

lines 224–229why, one step back
224Set output style \fITYPE\fP (default: auto). Set this to 'basic' to disable output
225coloring and interactive elements. Set it to 'full' to enable all effects even226if no interactive terminal was detected. Set this to 'nocolor' to keep the227interactive output without any colors. Set this to 'color' to keep the colors228without any interactive output. Set this to 'none' to disable all the output229of the tool.

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 230why, one step back
230.HP

Alternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9

line 231why, one step back
231\fB\-\-metrics\fR \fIMETRIC[:UNIT],...|default|time|all\fP

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 232why, one step back
232.IP

Alternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9

lines 233–235why, one step back
233Select the metrics to display, in order, with an optional unit for each.
234Default: \fBtime_wall_clock,memory_peak_resident\fR, or \fBtime_wall_clock\fR235on Windows, where peak resident memory is not yet supported.

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 236why, one step back
236.IP

Alternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9

lines 237–252why, one step back
237Use \fBdefault\fR for the platform defaults, \fBtime\fR for
238\fBtime_wall_clock,time_cpu,time_user,time_system\fR, or \fBall\fR for all available239metrics in the order listed below.240.IP241Time metrics \fBtime_wall_clock\fR, \fBtime_cpu\fR, \fBtime_user\fR, and \fBtime_system\fR242accept units \fBns\fR, \fBus\fR, \fBms\fR, \fBs\fR, \fBmin\fR, and \fBh\fR.243Peak memory, \fBmemory_peak_resident\fR, accepts \fBB\fR, \fBkB\fR,244\fBMB\fR, \fBGB\fR, \fBTB\fR, \fBKiB\fR, \fBMiB\fR, \fBGiB\fR,245and \fBTiB\fR.246.IP247Counter metrics \fBcpu_cycles\fR, \fBinstructions\fR, \fBcache_references\fR,248\fBcache_misses\fR, and \fBbranch_misses\fR accept \fBcount\fR (unscaled),249\fBk\fR (thousand), \fBM\fR (million), and \fBB\fR (billion).250.IP251If a unit is omitted, terminal and markup output automatically select a suitable252unit.

Merge pull request #960 from sharkdp/codex/time-unit-aliasesDavid Peterbefore adoptionfbdb75e

line 253why, one step back
253.RS

Alternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9

lines 254–256why, one step back
254Example:
255.RS256\fBhyperfine\fR \fB\-\-metrics\fR memory_peak_resident:MiB,time_wall_clock:ms,instructions:B './baseline' './candidate'

Merge pull request #960 from sharkdp/codex/time-unit-aliasesDavid Peterbefore adoptionfbdb75e

line 257why, one step back
257.RE

Alternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9

line 258why, one step back
258.RE

Update man pageDavid Peterbefore adoption0ce6578

lines 259–261why, one step back
259.HP
260\fB\-\-export\-asciidoc\fR \fIFILE\fP 261.IP

Alternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9

lines 262–263why, one step back
262Export the primary metric's summary statistics as an AsciiDoc table to the given
263\fIFILE\fP. Use its selected unit, or choose a unit automatically when omitted.

Update man pageDavid Peterbefore adoption0ce6578

lines 264–266why, one step back
264.HP
265\fB\-\-export\-csv\fR \fIFILE\fP266.IP

Alternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9

lines 267–269why, one step back
267Export the primary metric's summary statistics as CSV to the given \fIFILE\fP,
268identifying the metric and unit explicitly. Use the explicitly selected unit,269or the base unit (seconds, bytes, or unscaled counts) when omitted.

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 270why, one step back
270.HP

Update man pageDavid Peterbefore adoption0ce6578

line 271why, one step back
271\fB\-\-export\-json\fR \fIFILE\fP

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 272why, one step back
272.IP

Alternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9

lines 273–275why, one step back
273Export summary statistics and individual samples for all collected metrics as
274JSON to the given \fIFILE\fP. Include the primary metric, and always use base275units (seconds, bytes, or unscaled counts), regardless of display settings.

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 276why, one step back
276.HP

Update man pageDavid Peterbefore adoption0ce6578

line 277why, one step back
277\fB\-\-export\-markdown\fR \fIFILE\fP

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 278why, one step back
278.IP

Alternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9

lines 279–280why, one step back
279Export the primary metric's summary statistics as a Markdown table to the given
280\fIFILE\fP. Use its selected unit, or choose a unit automatically when omitted.

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 281why, one step back
281.HP

Update man pageDavid Peterbefore adoption0ce6578

lines 282–283why, one step back
282\fB\-\-export\-orgmode\fR \fIFILE\fP
283.IP

Alternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9

lines 284–286why, one step back
284Export the primary metric's summary statistics as an Emacs org\-mode table to
285the given \fIFILE\fP. Use its selected unit, or choose a unit automatically286when omitted.

Update man pageDavid Peterbefore adoption0ce6578

line 287why, one step back
287.HP

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

lines 288–293why, one step back
288\fB\-\-show\-output\fR
289.IP290Print the stdout and stderr of the benchmark instead of suppressing it. This291will increase the time it takes for benchmarks to run, so it should only be292used for debugging purposes or when trying to benchmark output speed.293.HP

Update man pageDavid Peterbefore adoption0ce6578

line 294why, one step back
294\fB\-\-output\fR \fIWHERE\fP

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 295why, one step back
295.IP

Update man pageDavid Peterbefore adoption0ce6578

lines 296–311why, one step back
296Control where the output of the benchmark is redirected. Note that
297some programs like 'grep' detect when standard output is \fI\,/dev/null\/\fP and298apply certain optimizations. To avoid that, consider using299\-\-output=pipe.300.IP301\fIWHERE\fP can be:302.RS303.IP null304Redirect output to \fI\,/dev/null\/\fP (the default).305.IP pipe306Feed the output through a pipe before discarding it.307.IP inherit308Don't redirect the output at all (same as \&'\-\-show\-output').309.IP "<FILE>"310Write the output to the given file.311.RE

Multiple output policiesDavid Peterbefore adoption99d24b7

lines 312–315why, one step back
312.IP
313This option can be specified once for all commands or multiple times,314once for each command. Note: If you want to log the output of each and315every iteration, you can use a shell redirection and the $HYPERFINE_ITERATION

Make --shell=none the default (#982)David Peterbefore adoptionab86cb9

lines 316–317why, one step back
316environment variable (requires \fB\-S\fR / \fB\-\-shell=default\fR):
317'my-command > output-${HYPERFINE_ITERATION}.log'

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 318why, one step back
318.HP

Update man pageDavid Peterbefore adoption0ce6578

lines 319–330why, one step back
319\fB\-\-input\fR \fIWHERE\fP
320.IP321Control where the input of the benchmark comes from.322.IP323\fIWHERE\fP can be:324.RS325.IP null326Read from \fI\,/dev/null\/\fP (the default).327.IP "<FILE>"328Read the input from the given file.329.RE330.HP

Fix documentation typos and man-page formatting (#935)David Peterbefore adoption62cfbf0

line 331why, one step back
331\fB\-n\fR, \fB\-\-command\-name\fR \fINAME\fP

Update man pageDavid Peterbefore adoption0ce6578

line 332why, one step back
332.IP

Fix documentation typos and man-page formatting (#935)David Peterbefore adoption62cfbf0

line 333why, one step back
333Give a meaningful \fINAME\fP to a command. This can be specified multiple times

Update man pageDavid Peterbefore adoption0ce6578

lines 334–335why, one step back
334if several commands are benchmarked.
335.HP

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

lines 336–337why, one step back
336\fB\-h\fR, \fB\-\-help\fR
337.IP

Update man pageDavid Peterbefore adoption0ce6578

line 338why, one step back
338Print help

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

lines 339–341why, one step back
339.HP
340\fB\-V\fR, \fB\-\-version\fR341.IP

Update man pageDavid Peterbefore adoption0ce6578

line 342why, one step back
342Print version

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

lines 343–362why, one step back
343.SH EXAMPLES
344.LP345Basic benchmark of 'find . -name todo.txt':346.RS347.nf348\fBhyperfine\fR 'find . -name todo.txt'349.fi350.RE351.LP352Perform benchmarks for 'sleep 0.2' and 'sleep 3.2' with a minimum 5 runs each:353.RS354.nf355\fBhyperfine\fR \fB\-\-min\-runs\fR 5 'sleep 0.2' 'sleep 3.2'356.fi357.RE358.LP359Perform a benchmark of 'grep' with a warm disk cache by executing 3 runs up front that are not part360of the measurement: 361.RS362.nf

Make --shell=none the default (#982)David Peterbefore adoptionab86cb9

line 363why, one step back
363\fBhyperfine\fR \fB\-S\fR \fB\-\-warmup\fR 3 'grep -R TODO *'

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

lines 364–373why, one step back
364.fi
365.RE366.LP367Export the results of a parameter scan benchmark to a markdown table: 368.RS369.nf370\fBhyperfine\fR \fB\-\-export\-markdown\fR output.md \fB\-\-parameter-scan\fR time 1 5 'sleep {time}'371.fi372.RE373.LP

Update docs to reflect addition of --concludeJack O'Connorbefore adoption942719b

line 374why, one step back
374Demonstrate when each of \fB\-\-setup\fR, \fB\-\-prepare\fR, \fB\-\-conclude\fR, \fIcmd\fP and \fB\-\-cleanup\fR will run:

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

lines 375–379why, one step back
375.RS
376.nf377\fBhyperfine\fR \fB\-L\fR n 1,2 \fB\-r\fR 2 \fB\-\-show-output\fR \\378 \fB\-\-setup\fR 'echo setup n={n}' \\379 \fB\-\-prepare\fR 'echo prepare={n}' \\

Update docs to reflect addition of --concludeJack O'Connorbefore adoption942719b

line 380why, one step back
380 \fB\-\-conclude\fR 'echo conclude={n}' \\

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

lines 381–386why, one step back
381 \fB\-\-cleanup\fR 'echo cleanup n={n}' \\
382 'echo command n={n}'383.fi384.RE385.SH AUTHOR386.LP

Update man pageDavid Peterbefore adoption0ce6578

line 387why, one step back
387David Peter <mail@david-peter.de>

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 388why, one step back
388.LP

Update man pageDavid Peterbefore adoption0ce6578

line 389why, one step back
389Source, bug tracker, and additional information can be found on GitHub:

Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f

line 390why, one step back
390.I https://github.com/sharkdp/hyperfine