bench icon indicating copy to clipboard operation
bench copied to clipboard

Feature request - invocation by argument list instead of shell command

Open jstimpfle opened this issue 8 years ago • 2 comments

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 ...

jstimpfle avatar Jun 28 '16 00:06 jstimpfle

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

Gabriella439 avatar Aug 22 '16 03:08 Gabriella439

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.

nh2 avatar Jun 28 '19 19:06 nh2