You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
benchmark: expose google benchmark's intrinsic command-line options #15076
I think it is sufficient to move the call to ::benchmark::Initialize(&argc, argv); to the first line of main() and then both the Google Benchmark options will be supported, and also the new custom option "skip_expensive_benchmarks". If you do that, then you get this with "benchmark --help":
So in that case you don't get the help for --skip_expensive_benchmarks. I think it will still work though. An alternative would be to use the absl mechanism for declaring a command-line flag for skip_expensive_benchmarks rather than TCLAP, and then I think "--help" will give you the integrated view.
So there's a few things to sort out here. I think this would be easy to do.
This is a great improvement but I don't think it's ideal.
I think "--help" should give you both skip_expensive_benchmarks and the google benchmark options. Otherwise they are hard to discover. The checked in fix makes all the options work (yay!) but only shows help for skip_expensive_benchmarks.
IMO the best solution (as described above) is to use the absl command-line flags for everything, then hopefully --help will just work.
Activity
Razdeep commentedon Feb 19, 2021
@jmarantz I would like to work on this issue.
mattklein123 commentedon Feb 25, 2021
Fixed by #15133
jmarantz commentedon Feb 25, 2021
This is a great improvement but I don't think it's ideal.
I think "--help" should give you both skip_expensive_benchmarks and the google benchmark options. Otherwise they are hard to discover. The checked in fix makes all the options work (yay!) but only shows help for skip_expensive_benchmarks.
IMO the best solution (as described above) is to use the absl command-line flags for everything, then hopefully
--helpwill just work.