diff options
author | Craig Tiller <ctiller@google.com> | 2017-04-04 17:20:29 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-04-04 17:20:29 -0700 |
commit | 85a747ed06d4e2ce9c299439ea0923e0b9ccdd8d (patch) | |
tree | 0e6af52720a32f13b4b9c3e79bc60e83030fb4bd /test/cpp | |
parent | e76a0ecc034c135d271bac7a8fa082fbe0b80243 (diff) |
better representative output
Diffstat (limited to 'test/cpp')
-rw-r--r-- | test/cpp/microbenchmarks/bm_chttp2_hpack.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cpp/microbenchmarks/bm_chttp2_hpack.cc b/test/cpp/microbenchmarks/bm_chttp2_hpack.cc index 5489eb9973..581440682a 100644 --- a/test/cpp/microbenchmarks/bm_chttp2_hpack.cc +++ b/test/cpp/microbenchmarks/bm_chttp2_hpack.cc @@ -98,7 +98,7 @@ static void BM_HpackEncoderEncodeHeader(benchmark::State &state) { &stats, }; grpc_chttp2_encode_header(&exec_ctx, &c, &b, &hopt, &outbuf); - if (!logged_representative_output) { + if (!logged_representative_output && state.iterations() > 3) { logged_representative_output = true; for (size_t i = 0; i < outbuf.count; i++) { char *s = grpc_dump_slice(outbuf.slices[i], GPR_DUMP_HEX); |