void throughput() throws Exception {
        recording.set(true);
        // Send as many messages as we can in a second.
        Thread.sleep(1001);
        recording.set(false);
    }
Simple benchmark for throughput (used by JMH).
benchmark-base/src/main/java/org/conscrypt/ClientSocketBenchmark.java