Class Benchmark


  • public class Benchmark
    extends java.lang.Object
    Measures decompression speed on the given corpus.
    • Constructor Summary

      Constructors 
      Constructor Description
      Benchmark()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static long decodeBytes​(java.io.InputStream input, java.io.OutputStream output, byte[] buffer)  
      static void main​(java.lang.String... args)  
      private static byte[] readFile​(java.lang.String fileName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Benchmark

        public Benchmark()
    • Method Detail

      • readFile

        private static byte[] readFile​(java.lang.String fileName)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • decodeBytes

        private static long decodeBytes​(java.io.InputStream input,
                                        java.io.OutputStream output,
                                        byte[] buffer)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • main

        public static void main​(java.lang.String... args)
                         throws java.io.IOException
        Throws:
        java.io.IOException