Package org.apache.beam.sdk.jmh.util
Class ByteStringOutputStreamBenchmark
java.lang.Object
org.apache.beam.sdk.jmh.util.ByteStringOutputStreamBenchmark
Benchmarks for
ByteStringOutputStream
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
These benchmarks below provide good details as to the cost of creating a new buffer vs copying a subset of the existing one and re-using the larger one.static class
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
testProtobufByteStringOutputStreamFewMixedWritesWithReuse
(ByteStringOutputStreamBenchmark.ProtobufByteStringOutputStream state) void
void
void
void
void
testProtobufByteStringOutputStreamManyMixedWritesWithReuse
(ByteStringOutputStreamBenchmark.ProtobufByteStringOutputStream state) void
void
void
void
void
testSdkCoreByteStringOutputStreamFewMixedWritesWithReuse
(ByteStringOutputStreamBenchmark.SdkCoreByteStringOutputStream state) void
void
void
void
void
testSdkCoreByteStringOutputStreamManyMixedWritesWithReuse
(ByteStringOutputStreamBenchmark.SdkCoreByteStringOutputStream state) void
void
-
Constructor Details
-
ByteStringOutputStreamBenchmark
public ByteStringOutputStreamBenchmark()
-
-
Method Details
-
testSdkCoreByteStringOutputStreamManyMixedWritesWithoutReuse
- Throws:
Exception
-
testSdkCoreByteStringOutputStreamFewMixedWritesWithoutReuse
- Throws:
Exception
-
testProtobufByteStringOutputStreamManyMixedWritesWithoutReuse
- Throws:
Exception
-
testProtobufByteStringOutputStreamFewMixedWritesWithoutReuse
- Throws:
Exception
-
testProtobufByteStringOutputStreamManyTinyWrites
- Throws:
Exception
-
testProtobufByteStringOutputStreamManySmallWrites
- Throws:
Exception
-
testProtobufByteStringOutputStreamManyLargeWrites
- Throws:
Exception
-
testProtobufByteStringOutputStreamFewTinyWrites
- Throws:
Exception
-
testProtobufByteStringOutputStreamFewSmallWrites
- Throws:
Exception
-
testProtobufByteStringOutputStreamFewLargeWrites
- Throws:
Exception
-
testProtobufByteStringOutputStreamManyMixedWritesWithReuse
public void testProtobufByteStringOutputStreamManyMixedWritesWithReuse(ByteStringOutputStreamBenchmark.ProtobufByteStringOutputStream state) throws Exception - Throws:
Exception
-
testProtobufByteStringOutputStreamFewMixedWritesWithReuse
public void testProtobufByteStringOutputStreamFewMixedWritesWithReuse(ByteStringOutputStreamBenchmark.ProtobufByteStringOutputStream state) throws Exception - Throws:
Exception
-
testSdkCoreByteStringOutputStreamManyTinyWrites
- Throws:
Exception
-
testSdkCoreByteStringOutputStreamManySmallWrites
- Throws:
Exception
-
testSdkCoreByteStringOutputStreamManyLargeWrites
- Throws:
Exception
-
testSdkCoreByteStringOutputStreamFewTinyWrites
- Throws:
Exception
-
testSdkCoreByteStringOutputStreamFewSmallWrites
- Throws:
Exception
-
testSdkCoreByteStringOutputStreamFewLargeWrites
- Throws:
Exception
-
testSdkCoreByteStringOutputStreamManyMixedWritesWithReuse
public void testSdkCoreByteStringOutputStreamManyMixedWritesWithReuse(ByteStringOutputStreamBenchmark.SdkCoreByteStringOutputStream state) throws Exception - Throws:
Exception
-
testSdkCoreByteStringOutputStreamFewMixedWritesWithReuse
public void testSdkCoreByteStringOutputStreamFewMixedWritesWithReuse(ByteStringOutputStreamBenchmark.SdkCoreByteStringOutputStream state) throws Exception - Throws:
Exception
-