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 classThese 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 classstatic class - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidtestProtobufByteStringOutputStreamFewMixedWritesWithReuse(ByteStringOutputStreamBenchmark.ProtobufByteStringOutputStream state) voidvoidvoidvoidvoidtestProtobufByteStringOutputStreamManyMixedWritesWithReuse(ByteStringOutputStreamBenchmark.ProtobufByteStringOutputStream state) voidvoidvoidvoidvoidtestSdkCoreByteStringOutputStreamFewMixedWritesWithReuse(ByteStringOutputStreamBenchmark.SdkCoreByteStringOutputStream state) voidvoidvoidvoidvoidtestSdkCoreByteStringOutputStreamManyMixedWritesWithReuse(ByteStringOutputStreamBenchmark.SdkCoreByteStringOutputStream state) voidvoid 
- 
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
 
 -