Skip to content
Myr

Document different increase pattern for -P

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

Document values of `-P` increasing as powers of 2 and following other patterns. Fixes #403

authored by Clément Joly · committed by David Peter · parent 8a4e791 · Browse files · 1 file+5 added−1 removed
This commit

State

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

Diff stats

1 file+5 added−1 removed

  • other:+5 added−1 removed

1 file+5 added−1 removed

modified:src/app.rs+5 added-1 removed
111 unmodified lines
112 .help(113 "Perform benchmark runs for each value in the range MIN..MAX. Replaces the \114 string '{VAR}' in each command by the current parameter value.\n\n \115 Example: hyperfine -P threads 1 8 'make -j {threads}'\n\n\116 This performs benchmarks for 'make -j 1', 'make -j 2', …, 'make -j 8'.",116 This performs benchmarks for 'make -j 1', 'make -j 2', …, 'make -j 8'.\n\n\117 To have the value increase following different patterns, use shell arithmetics.\n\n \118 Example: hyperfine -P size 0 3 'sleep $((2**{size}))'\n\n\119 This performs benchmarks with power of 2 increases: 'sleep 1', 'sleep 2', 'sleep 4', …\n\120 The exact syntax may vary depending on your shell and OS."121 ),122 )123 .arg(124 Arg::with_name("parameter-step-size")
123 unmodified lines