-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
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.
Lines 58 to 62 in 99d1356
| DEFINE_string(benchmark_filter, ".", | |
| "A regular expression that specifies the set of benchmarks " | |
| "to execute. If this flag is empty, no benchmarks are run. " | |
| "If this flag is the string \"all\", all benchmarks linked " | |
| "into the process are run."); |
Lines 349 to 351 in 99d1356
| std::string spec = FLAGS_benchmark_filter; | |
| if (spec.empty() || spec == "all") | |
| spec = "."; // Regexp that matches all benchmarks |
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels