@Benchmark
    public long jmhEventLoop(StreamObjects streamObjects) {
        final StreamMessage<Integer> stream = newStream(streamObjects);
        stream.subscribe(streamObjects.subscriber, EventLoopJmhExecutor.currentEventLoop());
        streamObjects.writeAllValues(stream);
        return streamObjects.computedSum(stream);
    }
Microbenchmarks of {@link StreamMessage Stream Messages}.
benchmarks/jmh/src/jmh/java/com/linecorp/armeria/common/stream/StreamMessageBenchmark.java