Package org.apache.beam.sdk.jmh.util
Class VarIntBenchmark
java.lang.Object
org.apache.beam.sdk.jmh.util.VarIntBenchmark
Benchmarks for
VarInt and variants.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOutput toBlackhole.static classInput from randomly generated bytes.static classOutput toByteStringOutputStream.static classInput from randomly generated longs. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidsingleByteEncodeDoLoopByteString(VarIntBenchmark.Bytes input, VarIntBenchmark.ByteStringOutput output) voidsingleByteEncodeDoLoopTwiddleByteString(VarIntBenchmark.Bytes input, VarIntBenchmark.ByteStringOutput output) voidsingleByteEncodeLoopByteString(VarIntBenchmark.Bytes input, VarIntBenchmark.ByteStringOutput output) voidsingleByteEncodeUnrolledByteString(VarIntBenchmark.Bytes input, VarIntBenchmark.ByteStringOutput output)
-
Constructor Details
-
VarIntBenchmark
public VarIntBenchmark()
-
-
Method Details
-
encodeDoLoopBlackhole
public void encodeDoLoopBlackhole(VarIntBenchmark.Longs input, VarIntBenchmark.BlackholeOutput output) throws IOException - Throws:
IOException
-
encodeDoLoopByteString
public void encodeDoLoopByteString(VarIntBenchmark.Longs input, VarIntBenchmark.ByteStringOutput output) throws IOException - Throws:
IOException
-
encodeDoLoopTwiddleBlackhole
public void encodeDoLoopTwiddleBlackhole(VarIntBenchmark.Longs input, VarIntBenchmark.BlackholeOutput output) throws IOException - Throws:
IOException
-
encodeDoLoopTwiddleByteString
public void encodeDoLoopTwiddleByteString(VarIntBenchmark.Longs input, VarIntBenchmark.ByteStringOutput output) throws IOException - Throws:
IOException
-
encodeLoopBlackhole
public void encodeLoopBlackhole(VarIntBenchmark.Longs input, VarIntBenchmark.BlackholeOutput output) throws IOException - Throws:
IOException
-
encodeLoopByteString
public void encodeLoopByteString(VarIntBenchmark.Longs input, VarIntBenchmark.ByteStringOutput output) throws IOException - Throws:
IOException
-
encodeUnrolledBlackhole
public void encodeUnrolledBlackhole(VarIntBenchmark.Longs input, VarIntBenchmark.BlackholeOutput output) throws IOException - Throws:
IOException
-
encodeUnrolledByteString
public void encodeUnrolledByteString(VarIntBenchmark.Longs input, VarIntBenchmark.ByteStringOutput output) throws IOException - Throws:
IOException
-
singleByteEncodeDoLoopByteString
public void singleByteEncodeDoLoopByteString(VarIntBenchmark.Bytes input, VarIntBenchmark.ByteStringOutput output) throws IOException - Throws:
IOException
-
singleByteEncodeDoLoopTwiddleByteString
public void singleByteEncodeDoLoopTwiddleByteString(VarIntBenchmark.Bytes input, VarIntBenchmark.ByteStringOutput output) throws IOException - Throws:
IOException
-
singleByteEncodeLoopByteString
public void singleByteEncodeLoopByteString(VarIntBenchmark.Bytes input, VarIntBenchmark.ByteStringOutput output) throws IOException - Throws:
IOException
-
singleByteEncodeUnrolledByteString
public void singleByteEncodeUnrolledByteString(VarIntBenchmark.Bytes input, VarIntBenchmark.ByteStringOutput output) throws IOException - Throws:
IOException
-