From bdf4a5f4d2d7efea55190b60f3183109cbf05248 Mon Sep 17 00:00:00 2001 From: Dominic Hamon Date: Thu, 12 Mar 2015 21:56:45 -0700 Subject: [PATCH] Add reference to BENCHMARK_MAIN in README --- README.md | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/README.md b/README.md index 30f48b38..31ab13d5 100644 --- a/README.md +++ b/README.md @@ -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