Gabriella439 / bench

Command-line benchmark tool
BSD 3-Clause "New" or "Revised" License
871 stars 21 forks source link

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

Open jstimpfle opened 8 years ago

jstimpfle commented 8 years ago

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:

Gabriella439 commented 8 years ago

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 commented 5 years ago

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.