private void writeNextValue(StreamWriter<Integer> stream) {
            stream.write(values[writeIndex++]);
            if (writeIndex == values.length) {
                stream.close();
            }
        }
Microbenchmarks of {@link StreamMessage Stream Messages}.
benchmarks/jmh/src/jmh/java/com/linecorp/armeria/common/stream/StreamMessageBenchmark.java