@Benchmark @OperationsPerInvocation(100000) public void decodingBenchmark(DataGenerator dg, Blackhole bh) throws Exception { ByteBuffer duplicate = dg.compressedBuffer.duplicate(); ByteBufferBitInput input = new ByteBufferBitInput(duplicate); Decompressor d = new Decompressor(input); Pair pair; while((pair = d.readPair()) != null) { bh.consume(pair); } }
@Benchmark @OperationsPerInvocation(100000) public void decodingBenchmark(DataGenerator dg, Blackhole bh) throws Exception { ByteBuffer duplicate = dg.compressedBuffer.duplicate(); ByteBufferBitInput input = new ByteBufferBitInput(duplicate); Decompressor d = new Decompressor(input); Pair pair; while((pair = d.readPair()) != null) { bh.consume(pair); } }
BitInput in = new ByteBufferBitInput(compressedValue);
BitInput in = new ByteBufferBitInput(compressedValue);