code: public final void close() {
          while (subChannel.size() > 0) {
              subs.addSample(subChannel.poll());
          }
          while (pubChannel.size() > 0) {
              pubs.addSample(pubChannel.poll());
          }
  
          if (subs.hasSamples()) {
              start = subs.getStart();
              end = subs.getEnd();
  
              if (pubs.hasSamples()) {
                  end = Math.min(end, pubs.getEnd());
              }
          } else {
              start = pubs.getStart();
              end = pubs.getEnd();
          }
  
          msgBytes = pubs.msgBytes + subs.msgBytes;
          ioBytes = pubs.ioBytes + subs.ioBytes;
          msgCnt = pubs.msgCnt + subs.msgCnt;
          jobMsgCnt = pubs.jobMsgCnt + subs.jobMsgCnt;
      }
docs: Closes this benchmark and calculates totals and times.