Skip to content
Snippets Groups Projects
Commit f9b90428 authored by Noah Eisen's avatar Noah Eisen Committed by GitHub
Browse files

Merge pull request #11269 from ncteisen/bm-trickle-bugfixes

Bugfix for bm_trickle
parents bf2d87c8 a4cd06fc
No related branches found
No related tags found
No related merge requests found
...@@ -419,18 +419,18 @@ static void BM_PumpUnbalancedUnary_Trickle(benchmark::State& state) { ...@@ -419,18 +419,18 @@ static void BM_PumpUnbalancedUnary_Trickle(benchmark::State& state) {
} }
static void UnaryTrickleArgs(benchmark::internal::Benchmark* b) { static void UnaryTrickleArgs(benchmark::internal::Benchmark* b) {
// A selection of interesting numbers
const int cli_1024k = 1024 * 1024; const int cli_1024k = 1024 * 1024;
const int cli_32M = 32 * 1024 * 1024; const int cli_32M = 32 * 1024 * 1024;
const int svr_256k = 256 * 1024; const int svr_256k = 256 * 1024;
const int svr_4M = 4 * 1024 * 1024; const int svr_4M = 4 * 1024 * 1024;
const int svr_64M = 64 * 1024 * 1024; const int svr_64M = 64 * 1024 * 1024;
for (int bw = 64; bw <= 128 * 1024 * 1024; bw *= 16) { for (int bw = 64; bw <= 128 * 1024 * 1024; bw *= 16) {
b->Args({bw, cli_1024k, svr_256k}); for (auto svr : {svr_256k, svr_4M, svr_64M}) {
b->Args({bw, cli_1024k, svr_4M}); for (auto cli: {cli_1024k, cli_32M}) {
b->Args({bw, cli_1024k, svr_64M}); b->Args({cli, svr, bw});
b->Args({bw, cli_32M, svr_256k}); }
b->Args({bw, cli_32M, svr_4M}); }
b->Args({bw, cli_32M, svr_64M});
} }
} }
BENCHMARK(BM_PumpUnbalancedUnary_Trickle)->Apply(UnaryTrickleArgs); BENCHMARK(BM_PumpUnbalancedUnary_Trickle)->Apply(UnaryTrickleArgs);
......
...@@ -56,7 +56,7 @@ _BM_SPECS = { ...@@ -56,7 +56,7 @@ _BM_SPECS = {
}, },
'BM_PumpUnbalancedUnary_Trickle': { 'BM_PumpUnbalancedUnary_Trickle': {
'tpl': [], 'tpl': [],
'dyn': ['request_size', 'bandwidth_kilobits'], 'dyn': ['cli_req_size', 'svr_req_size', 'bandwidth_kilobits'],
}, },
'BM_ErrorStringOnNewError': { 'BM_ErrorStringOnNewError': {
'tpl': ['fixture'], 'tpl': ['fixture'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment