-
-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow combination of parameter scans #575
Comments
That sounds very reasonable, thank you for the request. Before someone goes ahead and implements this, we should evaluate if we can generally share more code between parameter scans and parameter lists. |
Hey, I've been wishing for a way to combine Been thinking a bit about the design:
I think deprecating I've read the request asking for zipping parameters (#637) I think it would make the CLI overly complex (which is a thing I like about hyperfine, its simplicity) and usually (at least for me) it's ok when a CLI tool gives you product by default, since it's easy enough to sum different commands at shell level ( |
A parameter scan works similar to a parameter list.
Every parameter scan can, in fact, be expressed with a parameter list instead.
For example, the command
could instead (albeit slightly less comfortably) be written as
It is thus surprising that a single command can have multiple
-L
arguments but only a single-P
argument.Expected behavior: Both of the following commands work and are equivalent.
Actual behavior:
The command version with two
-P
options does not work.This is the error message:
As a side note, the error message seems to be wrong as well.
Workaround:
No big deal, just use
-L <VAR> $(seq -s, <MIN> <MAX>)
instead of-P <VAR> <MIN> <MAX>
.Version of hyperfine used: hyperfine 1.12.0 (Kubuntu 22.04.1 LTS)
The text was updated successfully, but these errors were encountered: