message: Only run data gathering  code if BENCH logging is enabled.
  At the end of ProcessNewBlock there are several pieces of data
  that are gathered for logging however they do not need to be
  generated unless BENCH logging is turned on.
diff: @@ -4186,6 +4186,8 @@ bool ProcessNewBlock(CValidationState &state,
  int64_t end = GetTimeMicros();
  + if (Logging::LogAcceptCategory(Logging::BENCH))
  + {
  uint64_t maxTxSize = 0;
  uint64_t maxVin = 0;
  uint64_t maxVout = 0;
  @@ -4213,14 +4215,17 @@ bool ProcessNewBlock(CValidationState &state,
  }
  }
  - LOG(BENCH, "ProcessNewBlock, time: %d, block: %s, len: %d, numTx: %d, maxVin: %llu, maxVout: %llu, maxTx:%llu\n",
  - end - start, pblock->GetHash().ToString(), pblock->nBlockSize, pblock->vtx.size(), maxVin, maxVout, maxTxSize);
  - LOG(BENCH, "tx: %s, vin: %llu, vout: %llu, len: %d\n", txIn.GetHash().ToString(), txIn.vin.size(), txIn.vout.size(),
  - ::GetSerializeSize(txIn, SER_NETWORK, PROTOCOL_VERSION));
  + LOG(BENCH,
  + "ProcessNewBlock, time: %d, block: %s, len: %d, numTx: %d, maxVin: %llu, maxVout: %llu, maxTx:%llu\n",
  + end - start, pblock->GetHash().ToString(), pblock->nBlockSize, pblock->vtx.size(), maxVin, maxVout,
  + maxTxSize);
  + LOG(BENCH, "tx: %s, vin: %llu, vout: %llu, len: %d\n", txIn.GetHash().ToString(), txIn.vin.size(),
  + txIn.vout.size(), ::GetSerializeSize(txIn, SER_NETWORK, PROTOCOL_VERSION));
  LOG(BENCH, "tx: %s, vin: %llu, vout: %llu, len: %d\n", txOut.GetHash().ToString(), txOut.vin.size(),
  txOut.vout.size(), ::GetSerializeSize(txOut, SER_NETWORK, PROTOCOL_VERSION));
  LOG(BENCH, "tx: %s, vin: %llu, vout: %llu, len: %d\n", txLen.GetHash().ToString(), txLen.vin.size(),
  txLen.vout.size(), ::GetSerializeSize(txLen, SER_NETWORK, PROTOCOL_VERSION));
  + }
  LOCK(cs_blockvalidationtime);
  nBlockValidationTime << (end - start);
  