better representative output

pull/10473/head
Craig Tiller 8 years ago
parent e76a0ecc03
commit 85a747ed06
  1. 2
      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);

Loading…
Cancel
Save