@Setup(Level.Invocation)
        public void setValues() {
            completedLatch = new CountDownLatch(1);
            wroteLatch = new CountDownLatch(1);
            values = new Integer[num];
            sum = 0;
            writeIndex = 0;
            for (int i = 0; i < num; i++) {
                values[i] = i;
                sum += i;
            }
            subscriber = new SummingSubscriber(completedLatch, flowControl);
        }
Microbenchmarks of {@link StreamMessage Stream Messages}.
benchmarks/jmh/src/jmh/java/com/linecorp/armeria/common/stream/StreamMessageBenchmark.java