Add reference to BENCHMARK_MAIN in README

This commit is contained in:
Dominic Hamon 2015-03-12 21:56:45 -07:00
parent f022d780eb
commit bdf4a5f4d2
1 changed files with 1 additions and 11 deletions

View File

@ -27,17 +27,7 @@ static void BM_StringCopy(benchmark::State& state) {
}
BENCHMARK(BM_StringCopy);
// Augment the main() program to invoke benchmarks if specified
// via the --benchmarks command line flag. E.g.,
// my_unittest --benchmark_filter=all
// my_unittest --benchmark_filter=BM_StringCreation
// my_unittest --benchmark_filter=String
// my_unittest --benchmark_filter='Copy|Creation'
int main(int argc, const char* argv[]) {
benchmark::Initialize(&argc, argv);
benchmark::RunSpecifiedBenchmarks();
return 0;
}
BENCHMARK_MAIN();
```
Sometimes a family of microbenchmarks can be implemented with