aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/microbenchmarks/bm_chttp2_transport.cc
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2017-07-06 16:23:14 -0700
committerGravatar ncteisen <ncteisen@gmail.com>2017-07-18 17:06:57 -0700
commit268a82398c0b71a0ed9cb4f5168098f1de8945da (patch)
tree6abbea6f3842f82668ac12272162d00f2c79cc78 /test/cpp/microbenchmarks/bm_chttp2_transport.cc
parent10bed24e8b6a93d9017927371e607f85619fb59b (diff)
Pull flow control into one module
Diffstat (limited to 'test/cpp/microbenchmarks/bm_chttp2_transport.cc')
-rw-r--r--test/cpp/microbenchmarks/bm_chttp2_transport.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/cpp/microbenchmarks/bm_chttp2_transport.cc b/test/cpp/microbenchmarks/bm_chttp2_transport.cc
index 567ef1cf24..3b42c82de2 100644
--- a/test/cpp/microbenchmarks/bm_chttp2_transport.cc
+++ b/test/cpp/microbenchmarks/bm_chttp2_transport.cc
@@ -391,8 +391,8 @@ static void BM_TransportStreamSend(benchmark::State &state) {
MakeClosure([&](grpc_exec_ctx *exec_ctx, grpc_error *error) {
if (!state.KeepRunning()) return;
// force outgoing window to be yuge
- s.chttp2_stream()->outgoing_window_delta = 1024 * 1024 * 1024;
- f.chttp2_transport()->outgoing_window = 1024 * 1024 * 1024;
+ s.chttp2_stream()->remote_window_delta = 1024 * 1024 * 1024;
+ f.chttp2_transport()->remote_window = 1024 * 1024 * 1024;
grpc_slice_buffer_stream_init(&send_stream, &send_buffer, 0);
reset_op();
op.on_complete = c.get();
@@ -521,8 +521,10 @@ static void BM_TransportStreamRecv(benchmark::State &state) {
MakeClosure([&](grpc_exec_ctx *exec_ctx, grpc_error *error) {
if (!state.KeepRunning()) return;
// force outgoing window to be yuge
- s.chttp2_stream()->incoming_window_delta = 1024 * 1024 * 1024;
- f.chttp2_transport()->incoming_window = 1024 * 1024 * 1024;
+ s.chttp2_stream()->local_window_delta = 1024 * 1024 * 1024;
+ f.chttp2_transport()->local_window = 1024 * 1024 * 1024;
+ s.chttp2_stream()->announced_window_delta = 1024 * 1024 * 1024;
+ f.chttp2_transport()->announced_window = 1024 * 1024 * 1024;
received = 0;
reset_op();
op.on_complete = do_nothing.get();