From d568fba51ac5558241836eb80bc0d6b4ca7edfdc Mon Sep 17 00:00:00 2001 From: Hope Casey-Allen Date: Fri, 28 Sep 2018 14:36:13 -0700 Subject: Add documentation for running microbenchmarks with other tooling --- test/cpp/microbenchmarks/bm_fullstack_unary_ping_pong.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/cpp/microbenchmarks') diff --git a/test/cpp/microbenchmarks/bm_fullstack_unary_ping_pong.cc b/test/cpp/microbenchmarks/bm_fullstack_unary_ping_pong.cc index 5a7a8d5baf..d4bd58b983 100644 --- a/test/cpp/microbenchmarks/bm_fullstack_unary_ping_pong.cc +++ b/test/cpp/microbenchmarks/bm_fullstack_unary_ping_pong.cc @@ -31,6 +31,8 @@ auto& force_library_initialization = Library::get(); * CONFIGURATIONS */ +// Replace "benchmark::internal::Benchmark" with "::testing::Benchmark" to use +// internal microbenchmarking tooling static void SweepSizesArgs(benchmark::internal::Benchmark* b) { b->Args({0, 0}); for (int i = 1; i <= 128 * 1024 * 1024; i *= 8) { -- cgit v1.2.3