-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Behavior of --benchmark_filter="" doesn't match the documentation #736
Comments
You're right that this is a mistake in the documentation. Running all of them is the expected design as that is the default case. See also gtest_filter in google test which works the same way. |
By default, obviously everything should be run. |
sorry, yes. i just reparsed that as i was updating the documentation :) I think that is a good idea. |
|
Hang on, sorry, let me think about this again. Why would you want to pass ""? If you're running the code but not running any of the benchmarks, what are you doing? |
The short story is that I had a benchmark that I thought had to be declared |
There is a contradiction in the documentation of this flag and the behavior of the code. The documentation says the empty string runs no benchmarks, but the code actually runs all of them.
benchmark/src/benchmark.cc
Lines 58 to 62 in 99d1356
benchmark/src/benchmark.cc
Lines 349 to 351 in 99d1356
I think the correct behavior for the empty string should be to run none of them, as I think there might be CI systems that by default don't want to run time consuming benchmarks, and to do this they might want to override this flag with the empty string.
The text was updated successfully, but these errors were encountered: