You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to specify a set of command line arguments that get applied to all programs to be benchmarked, rather than have to include them in each executable argument. For example at the moment I tend to run benchmarks like this
The same argv splitting that is currently done should be preserved, and then arg1, arg2, arg3, arg4 would be appended to the argv of each command, this would allow to still supply arguments to a specific command like this:
In hyperfine, we have an option for parameterized benchmarks which is sort of a more general version of this. Just as another idea:
-L, --parameter-list <VAR> <VALUES>
Perform benchmark runs for each value in the comma-separated list
VALUES. Replaces the string '{VAR}' in each command by the current
parameter value.
Example: hyperfine -L compiler gcc,clang '{compiler} -O2 main.cpp'
This performs benchmarks for 'gcc -O2 main.cpp' and 'clang -O2
main.cpp'.
The option can be specified multiple times to run benchmarks for all
possible parameter combinations.
I would like to be able to specify a set of command line arguments that get applied to all programs to be benchmarked, rather than have to include them in each executable argument. For example at the moment I tend to run benchmarks like this
or, if I remember the precise way my shell does expansion I can do this:
(making sure there is no space between
prog
and the first"
).I propose there is a flag like
--arg
to accumulate components of argv allowing the above to be written as this:The same argv splitting that is currently done should be preserved, and then
arg1
,arg2
,arg3
,arg4
would be appended to the argv of each command, this would allow to still supply arguments to a specific command like this:Alternatively (or in addition?), there could be an
--args
flag to supply whitespace separated arguments:The text was updated successfully, but these errors were encountered: