private void benchmarkDefaultCompression(int totalSize, byte[] rawBuffer) throws IOException {
    benchmarkAlgorithm(compressionAlgorithm, compressionAlgorithmName.toUpperCase(Locale.ROOT),
      rawBuffer, 0, totalSize);
  }
Benchmark compression/decompression throughput.
@param previousTotalSize Total size used for verification. Use -1 if unknown.
@param codec             Tested encoder.
@return Size of uncompressed data.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/DataBlockEncodingTool.java