protected void runBenchmark(RowOrientedBenchmark benchmark, int rowCount, String codec,
    String cipher) throws Exception {
    LOG.info("Running " + benchmark.getClass().getSimpleName() + " with codec[" + codec + "] "
      + "cipher[" + cipher + "] for " + rowCount + " rows.");

    long elapsedTime = benchmark.run();

    LOG.info("Running " + benchmark.getClass().getSimpleName() + " with codec[" + codec + "] "
      + "cipher[" + cipher + "] for " + rowCount + " rows took " + elapsedTime + "ms.");

    // Store results to print summary at the end
    testSummary.append("Running ").append(benchmark.getClass().getSimpleName())
      .append(" with codec[").append(codec).append("] cipher[").append(cipher).append("] for ")
      .append(rowCount).append(" rows took ").append(elapsedTime).append("ms.").append("\n");
  }
Run all the read benchmarks for the test HFile
@param codec  "none", "lzo", "gz", "snappy"
@param cipher "none", "aes"
hbase-diagnostics/src/main/java/org/apache/hadoop/hbase/HFilePerformanceEvaluation.java