Skip to content
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

Feature request - invocation by argument list instead of shell command #4

Open
jstimpfle opened this issue Jun 28, 2016 · 2 comments
Open

Comments

@jstimpfle
Copy link

jstimpfle commented Jun 28, 2016

With an alternate syntax going through the shell could be avoided for the bench'ed command. The pre-split argument list could be embedded in the bench invocation's argument list. Two possible styles:

  • bench foo -exec cmd arg1 ... ; bar baz
  • bench foo bar baz -- cmd arg1 ...
@Gabriella439
Copy link
Owner

The main reason I don't do this is that it's very difficult to separate the command's flags from the bench command's flags, especially now that bench supports benchmarking multiple commands

@nh2
Copy link

nh2 commented Jun 28, 2019

It would be great to have that.

I have the feeling that my benchmarking of brotli is severely inflated by the sh startup cost.

Many other programs use -- as a separator of the command line arguments, or --args (that's what gdb does).

Even a read style invocation like bench --read-args '["brotli","--quality=4","myfile"]' might be acceptable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants