Package org.brotli.integration
Class Benchmark
- java.lang.Object
-
- org.brotli.integration.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)
-
-
-
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
-
-