mirror of https://github.com/google/benchmark.git
Change the default value of `--benchmark_filter` from "." to <empty> (#1207)
Both `.` and `<empty>` already means "run all benchmarks" here, as commented on this flag's declaration (and below around line 448-449). So this is a NFC. On the other hand, this help internally because internally, if the flag is empty (or if it's not a specified by a binary), we don't call the RunSpecifiedBenchmarks. There is still a difference in what <empty> means internally (runs no benchmarks) and externally (runs all benchmarks). But we can work around this.
This commit is contained in:
parent
1067dfc91e
commit
4124223bf5
|
@ -63,7 +63,7 @@ BM_DEFINE_bool(benchmark_list_tests, false);
|
|||
// A regular expression that specifies the set of benchmarks to execute. If
|
||||
// this flag is empty, or if this flag is the string \"all\", all benchmarks
|
||||
// linked into the binary are run.
|
||||
BM_DEFINE_string(benchmark_filter, ".");
|
||||
BM_DEFINE_string(benchmark_filter, "");
|
||||
|
||||
// Minimum number of seconds we should run benchmark before results are
|
||||
// considered significant. For cpu-time based tests, this is the lower bound
|
||||
|
|
Loading…
Reference in New Issue