diff options
author | ncteisen <ncteisen@gmail.com> | 2017-05-22 10:04:01 -0700 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2017-05-26 11:06:33 -0400 |
commit | 28b082824353eab3912b9c4f949f0c426ea9f702 (patch) | |
tree | d3b4b3235334ad910aa85561d467f2d8b9dbe2f0 /test/cpp | |
parent | 753af5d8a56ba2cefd74149426fdcccdc2914cc6 (diff) |
bm trickly bugfix
Diffstat (limited to 'test/cpp')
-rw-r--r-- | test/cpp/microbenchmarks/bm_fullstack_trickle.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/cpp/microbenchmarks/bm_fullstack_trickle.cc b/test/cpp/microbenchmarks/bm_fullstack_trickle.cc index d7e3a9cf47..a087bfe899 100644 --- a/test/cpp/microbenchmarks/bm_fullstack_trickle.cc +++ b/test/cpp/microbenchmarks/bm_fullstack_trickle.cc @@ -320,8 +320,8 @@ static void BM_PumpStreamServerToClient_Trickle(benchmark::State& state) { } static void StreamingTrickleArgs(benchmark::internal::Benchmark* b) { - for (int i = 1; i <= 128 * 1024 * 1024; i *= 8) { - for (int j = 64; j <= 128 * 1024 * 1024; j *= 8) { + for (int i = 1; i <= 128 * 1024 * 1024; i *= 16) { + for (int j = 64; j <= 128 * 1024 * 1024; j *= 16) { double expected_time = static_cast<double>(14 + i) / (125.0 * static_cast<double>(j)); if (expected_time > 2.0) continue; @@ -425,12 +425,12 @@ static void UnaryTrickleArgs(benchmark::internal::Benchmark* b) { const int svr_4M = 4 * 1024 * 1024; const int svr_64M = 64 * 1024 * 1024; for (int bw = 64; bw <= 128 * 1024 * 1024; bw *= 16) { - b->Args({bw, cli_1024k, svr_256k}); - b->Args({bw, cli_1024k, svr_4M}); - b->Args({bw, cli_1024k, svr_64M}); - b->Args({bw, cli_32M, svr_256k}); - b->Args({bw, cli_32M, svr_4M}); - b->Args({bw, cli_32M, svr_64M}); + b->Args({cli_1024k, svr_256k, bw}); + b->Args({cli_1024k, svr_4M, bw}); + b->Args({cli_1024k, svr_64M, bw}); + b->Args({cli_32M, svr_256k, bw}); + b->Args({cli_32M, svr_4M, bw}); + b->Args({cli_32M, svr_64M, bw}); } } BENCHMARK(BM_PumpUnbalancedUnary_Trickle)->Apply(UnaryTrickleArgs); |