Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by GitHub · parent 1c92587 · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:doc/hyperfine.1+1 added-1 removed
139 unmodified lines
140.IP141.RS142Example:143.RS144\fBhyperfine\fR \fB\-P\fR threads 1 8 'make \-j {threads}'144\fBhyperfine\fR \fB\-\-prepare\fR 'make clean' \fB\-P\fR threads 1 8 'make \-j {threads}'145.RE146.RE147.IP148This performs benchmarks for 'make \-j 1', 'make \-j 2', ..., 'make \-j 8'.
223 unmodified lines
modified:src/cli.rs+1 added-1 removed
159 unmodified lines
160 .value_names(["VAR", "MIN", "MAX"])161 .help(162 "Perform benchmark runs for each value in the range MIN..MAX. Replaces the \163 string '{VAR}' in each command by the current parameter value.\n\n \164 Example: hyperfine -P threads 1 8 'make -j {threads}'\n\n\164 Example: hyperfine --prepare 'make clean' -P threads 1 8 'make -j {threads}'\n\n\165 This performs benchmarks for 'make -j 1', 'make -j 2', …, 'make -j 8'.\n\n\166 To have the value increase following different patterns, use shell arithmetics.\n\n \167 Example: hyperfine -P size 0 3 'sleep $((2**{size}))'\n\n\168 This performs benchmarks with power of 2 increases: 'sleep 1', 'sleep 2', 'sleep 4', …\n\
246 unmodified lines