Open jstimpfle opened 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
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.
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: