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 fileTake 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 back1.TH HYPERFINE 12.SH NAME3hyperfine \- command\-line benchmarking tool4.SH SYNOPSIS5.B hyperfineMake --shell=none the default (#982)David Peterbefore adoptionab86cb9
line 6why, one step back6.RB [ \-hVNS ]Document reference commands and selective failures in the man page (#940)David Peterbefore adoption38faa76
line 7why, one step back7.RB [ \-\-ignore\-failure[=MODE] ]Update man pageDavid Peterbefore adoption0ce6578
lines 8–19why, one step back8.RB [ \-\-warmup9.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 back20.RB [ \-\-conclude21.IR CMD ]Update man pageDavid Peterbefore adoption0ce6578
lines 22–36why, one step back22.RB [ \-\-cleanup23.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 back37.RB [ \-\-metrics38.IR METRIC[:UNIT],...|default|time|all ]Update man pageDavid Peterbefore adoption0ce6578
lines 39–55why, one step back39.RB [ \-\-export\-asciidoc40.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 back56.SH DESCRIPTION57A 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.RSAlternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9
line 72why, one step back72* Cache-clearing commands can be set up before each benchmark runBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
lines 73–84why, one step back73.RE74.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.HPUpdate man pageDavid Peterbefore adoption0ce6578
line 85why, one step back85\fB\-w\fR, \fB\-\-warmup\fR \fINUM\fPBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 86why, one step back86.IPUpdate man pageDavid Peterbefore adoption0ce6578
lines 87–88why, one step back87Perform \fINUM\fP warmup runs before the actual benchmark. This can be used88to 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 back89.HPUpdate man pageDavid Peterbefore adoption0ce6578
line 90why, one step back90\fB\-m\fR, \fB\-\-min\-runs\fR \fINUM\fPBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 91why, one step back91.IPUpdate man pageDavid Peterbefore adoption0ce6578
line 92why, one step back92Perform 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 back93.HPUpdate man pageDavid Peterbefore adoption0ce6578
line 94why, one step back94\fB\-M\fR, \fB\-\-max\-runs\fR \fINUM\fPBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 95why, one step back95.IPUpdate man pageDavid Peterbefore adoption0ce6578
lines 96–97why, one step back96Perform at most \fINUM\fP runs for each command. By default, there is no97limit.Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 98why, one step back98.HPUpdate man pageDavid Peterbefore adoption0ce6578
line 99why, one step back99\fB\-r\fR, \fB\-\-runs\fR \fINUM\fPBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 100why, one step back100.IPUpdate man pageDavid Peterbefore adoption0ce6578
line 101why, one step back101Perform 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 back102\fBhyperfine\fR automatically determines the number of runs.103.HPUpdate man pageDavid Peterbefore adoption0ce6578
line 104why, one step back104\fB\-s\fR, \fB\-\-setup\fR \fICMD...\fPBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 105why, one step back105.IPAlternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9
line 106why, one step back106Execute \fICMD\fP once before each set of benchmark runs. This is usefulFix documentation typos and man-page formatting (#935)David Peterbefore adoption62cfbf0
line 107why, one step back107for compiling your software with the provided parameters, or to do anyUpdate man pageDavid Peterbefore adoption0ce6578
lines 108–109why, one step back108other 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 back110.HPUpdate man pageDavid Peterbefore adoption0ce6578
line 111why, one step back111\fB\-p\fR, \fB\-\-prepare\fR \fICMD...\fPBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 112why, one step back112.IPAlternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9
line 113why, one step back113Execute \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 back114for 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.HPAdd shorthand (-C) for --conclude option in man page (#838)ryantigbefore adoption589132c
line 119why, one step back119\fB\-C\fR, \fB\-\-conclude\fR \fICMD...\fPUpdate docs to reflect addition of --concludeJack O'Connorbefore adoption942719b
line 120why, one step back120.IPAlternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9
line 121why, one step back121Execute \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 back122for 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.HPUpdate man pageDavid Peterbefore adoption0ce6578
line 127why, one step back127\fB\-c\fR, \fB\-\-cleanup\fR \fICMD...\fPBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 128why, one step back128.IPUpdate man pageDavid Peterbefore adoption0ce6578
line 129why, one step back129Execute \fICMD\fP after the completion of all benchmarking runs for each individualBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 130why, one step back130command to be benchmarked. This is useful if the commands to be benchmarkedFix documentation typos and man-page formatting (#935)David Peterbefore adoption62cfbf0
lines 131–132why, one step back131produce artifacts that need to be cleaned up. It only runs once per series of132benchmark runs, as opposed to the \fB\-\-conclude\fR option which runs afterfix typo in docsAnti Räisbefore adoption8b62240
line 133why, one step back133every run.Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 134why, one step back134.HPUpdate man pageDavid Peterbefore adoption0ce6578
line 135why, one step back135\fB\-P\fR, \fB\-\-parameter\-scan\fR \fIVAR\fP \fIMIN\fP \fIMAX\fPBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 136why, one step back136.IPUpdate man pageDavid Peterbefore adoption0ce6578
lines 137–138why, one step back137Perform benchmark runs for each value in the range \fIMIN..MAX\fP. Replaces the138string '{\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 back139.IP140.RS141Example:142.RSClean between runs in the make parameter-scan example (#939)David Peterbefore adoptionca28ebb
line 143why, one step back143\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 back144.RE145.RE146.IP147This performs benchmarks for 'make \-j 1', 'make \-j 2', ..., 'make \-j 8'.Update man pageDavid Peterbefore adoption0ce6578
lines 148–149why, one step back148.IP149To have the value increase following different patterns, use shellFix documentation typos and man-page formatting (#935)David Peterbefore adoption62cfbf0
line 150why, one step back150arithmetic.Update man pageDavid Peterbefore adoption0ce6578
lines 151–154why, one step back151.IP152.RS153Example:154.RSMake --shell=none the default (#982)David Peterbefore adoptionab86cb9
line 155why, one step back155\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 back156.REUpdate man pageDavid Peterbefore adoption0ce6578
lines 157–162why, one step back157.RE158.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 back163.HPUpdate man pageDavid Peterbefore adoption0ce6578
line 164why, one step back164\fB\-D\fR, \fB\-\-parameter\-step\-size\fR \fIDELTA\fPBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
lines 165–166why, one step back165.IP166This argument requires \fB\-\-parameter\-scan\fR to be specified as well. Traverse theMerge pull request #951 from Likio3000/codex/reject-negative-parameter-stepsDavid Peterbefore adoption862625f
line 167why, one step back167range \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 back168.IP169.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.HPUpdate man pageDavid Peterbefore adoption0ce6578
line 178why, one step back178\fB\-L\fR, \fB\-\-parameter\-list\fR \fIVAR\fP \fIVALUES\fPBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 179why, one step back179.IPUpdate man pageDavid Peterbefore adoption0ce6578
lines 180–181why, one step back180Perform 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 back182.IP183.RS184Example:185.RSUse C++ compiler drivers in parameter-list examples (#936)David Peterbefore adoption1c92587
line 186why, one step back186\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 back187.RE188.RE189.IPUse C++ compiler drivers in parameter-list examples (#936)David Peterbefore adoption1c92587
line 190why, one step back190This performs benchmarks for 'g++ \-O2 main.cpp' and 'clang++ \-O2 main.cpp'.Update man pageDavid Peterbefore adoption0ce6578
lines 191–193why, one step back191.IP192The 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 back194.HPMake --shell=none the default (#982)David Peterbefore adoptionab86cb9
line 195why, one step back195\fB\-\-shell\fR \fISHELL\fPBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 196why, one step back196.IPMake --shell=none the default (#982)David Peterbefore adoptionab86cb9
line 197why, one step back197Set the shell to use for executing commands (default: none). This can beUpdate man pageDavid Peterbefore adoption0ce6578
lines 198–199why, one step back198the name or the path to the shell executable, or a full command line199like "bash \fB\-\-norc\fR". It can also be set to "default" to explicitlyMake --shell=none the default (#982)David Peterbefore adoptionab86cb9
line 200why, one step back200select the platform shell (sh on Unix, cmd.exe on Windows). Finally, this can also beUpdate man pageDavid Peterbefore adoption0ce6578
lines 201–203why, one step back201set to "none" to disable the shell. In this case, commands will be202executed 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 back204This 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 back205.HPMake --shell=none the default (#982)David Peterbefore adoptionab86cb9
lines 206–209why, one step back206\fB\-S\fR207.IP208An alias for '\-\-shell=default' (sh on Unix, cmd.exe on Windows).209.HPUpdate man pageDavid Peterbefore adoption0ce6578
line 210why, one step back210\fB\-N\fRBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 211why, one step back211.IPUpdate man pageDavid Peterbefore adoption0ce6578
line 212why, one step back212An alias for '\-\-shell=none'.Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 213why, one step back213.HPDocument reference commands and selective failures in the man page (#940)David Peterbefore adoption38faa76
line 214why, one step back214\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 back215.IPDocument reference commands and selective failures in the man page (#940)David Peterbefore adoption38faa76
lines 216–220why, one step back216Ignore failures of the benchmarked programs. Without a value or with217\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 back221.HPUpdate man pageDavid Peterbefore adoption0ce6578
line 222why, one step back222\fB\-\-style\fR \fITYPE\fPBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 223why, one step back223.IPUpdate man pageDavid Peterbefore adoption0ce6578
lines 224–229why, one step back224Set output style \fITYPE\fP (default: auto). Set this to 'basic' to disable output225coloring 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 back230.HPAlternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9
line 231why, one step back231\fB\-\-metrics\fR \fIMETRIC[:UNIT],...|default|time|all\fPBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 232why, one step back232.IPAlternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9
lines 233–235why, one step back233Select 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 back236.IPAlternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9
lines 237–252why, one step back237Use \fBdefault\fR for the platform defaults, \fBtime\fR for238\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 back253.RSAlternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9
lines 254–256why, one step back254Example: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 back257.REAlternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9
line 258why, one step back258.REUpdate man pageDavid Peterbefore adoption0ce6578
lines 259–261why, one step back259.HP260\fB\-\-export\-asciidoc\fR \fIFILE\fP 261.IPAlternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9
lines 262–263why, one step back262Export the primary metric's summary statistics as an AsciiDoc table to the given263\fIFILE\fP. Use its selected unit, or choose a unit automatically when omitted.Update man pageDavid Peterbefore adoption0ce6578
lines 264–266why, one step back264.HP265\fB\-\-export\-csv\fR \fIFILE\fP266.IPAlternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9
lines 267–269why, one step back267Export 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 back270.HPUpdate man pageDavid Peterbefore adoption0ce6578
line 271why, one step back271\fB\-\-export\-json\fR \fIFILE\fPBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 272why, one step back272.IPAlternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9
lines 273–275why, one step back273Export summary statistics and individual samples for all collected metrics as274JSON 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 back276.HPUpdate man pageDavid Peterbefore adoption0ce6578
line 277why, one step back277\fB\-\-export\-markdown\fR \fIFILE\fPBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 278why, one step back278.IPAlternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9
lines 279–280why, one step back279Export the primary metric's summary statistics as a Markdown table to the given280\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 back281.HPUpdate man pageDavid Peterbefore adoption0ce6578
lines 282–283why, one step back282\fB\-\-export\-orgmode\fR \fIFILE\fP283.IPAlternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9
lines 284–286why, one step back284Export the primary metric's summary statistics as an Emacs org\-mode table to285the given \fIFILE\fP. Use its selected unit, or choose a unit automatically286when omitted.Update man pageDavid Peterbefore adoption0ce6578
line 287why, one step back287.HPBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
lines 288–293why, one step back288\fB\-\-show\-output\fR289.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.HPUpdate man pageDavid Peterbefore adoption0ce6578
line 294why, one step back294\fB\-\-output\fR \fIWHERE\fPBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 295why, one step back295.IPUpdate man pageDavid Peterbefore adoption0ce6578
lines 296–311why, one step back296Control where the output of the benchmark is redirected. Note that297some 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.REMultiple output policiesDavid Peterbefore adoption99d24b7
lines 312–315why, one step back312.IP313This 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_ITERATIONMake --shell=none the default (#982)David Peterbefore adoptionab86cb9
lines 316–317why, one step back316environment 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 back318.HPUpdate man pageDavid Peterbefore adoption0ce6578
lines 319–330why, one step back319\fB\-\-input\fR \fIWHERE\fP320.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.HPFix documentation typos and man-page formatting (#935)David Peterbefore adoption62cfbf0
line 331why, one step back331\fB\-n\fR, \fB\-\-command\-name\fR \fINAME\fPUpdate man pageDavid Peterbefore adoption0ce6578
line 332why, one step back332.IPFix documentation typos and man-page formatting (#935)David Peterbefore adoption62cfbf0
line 333why, one step back333Give a meaningful \fINAME\fP to a command. This can be specified multiple timesUpdate man pageDavid Peterbefore adoption0ce6578
lines 334–335why, one step back334if several commands are benchmarked.335.HPBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
lines 336–337why, one step back336\fB\-h\fR, \fB\-\-help\fR337.IPUpdate man pageDavid Peterbefore adoption0ce6578
line 338why, one step back338Print helpBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
lines 339–341why, one step back339.HP340\fB\-V\fR, \fB\-\-version\fR341.IPUpdate man pageDavid Peterbefore adoption0ce6578
line 342why, one step back342Print versionBump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
lines 343–362why, one step back343.SH EXAMPLES344.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.nfMake --shell=none the default (#982)David Peterbefore adoptionab86cb9
line 363why, one step back363\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 back364.fi365.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.LPUpdate docs to reflect addition of --concludeJack O'Connorbefore adoption942719b
line 374why, one step back374Demonstrate 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 back375.RS376.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 back380 \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 back381 \fB\-\-cleanup\fR 'echo cleanup n={n}' \\382 'echo command n={n}'383.fi384.RE385.SH AUTHOR386.LPUpdate man pageDavid Peterbefore adoption0ce6578
line 387why, one step back387David Peter <mail@david-peter.de>Bump clap_complete from 4.2.0 to 4.2.1dependabot[bot]before adoptionab5ae5f
line 388why, one step back388.LPUpdate man pageDavid Peterbefore adoption0ce6578
line 389why, one step back389Source, 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 back390.I https://github.com/sharkdp/hyperfine