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 class
Output toBlackhole
.static class
Input from randomly generated bytes.static class
Output toByteStringOutputStream
.static class
Input from randomly generated longs. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
void
void
void
singleByteEncodeDoLoopByteString
(VarIntBenchmark.Bytes input, VarIntBenchmark.ByteStringOutput output) void
singleByteEncodeDoLoopTwiddleByteString
(VarIntBenchmark.Bytes input, VarIntBenchmark.ByteStringOutput output) void
singleByteEncodeLoopByteString
(VarIntBenchmark.Bytes input, VarIntBenchmark.ByteStringOutput output) void
singleByteEncodeUnrolledByteString
(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
-