Package org.apache.beam.sdk.jmh.util
Class ByteStringOutputStreamBenchmark.NewVsCopy
java.lang.Object
org.apache.beam.sdk.jmh.util.ByteStringOutputStreamBenchmark.NewVsCopy
- Enclosing class:
ByteStringOutputStreamBenchmark
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
-
Constructor Details
-
NewVsCopy
public NewVsCopy()
-
-
Method Details
-
testCopyArray
public void testCopyArray(ByteStringOutputStreamBenchmark.NewVsCopy.ArrayCopyState state, Blackhole bh) -
testNewArray
public void testNewArray(ByteStringOutputStreamBenchmark.NewVsCopy.ArrayNewState state, Blackhole bh)
-