private static List<Endpoint> generateEndpoints(EndpointGenerator e) {
        final List<Endpoint> result = new ArrayList<>();
        for (int i = 0; i < numEndpoints; i++) {
            result.add(e.generate(i));
        }
        return result;
    }
Microbenchmarks of different {@link EndpointSelector} configurations.
benchmarks/jmh/src/jmh/java/com/linecorp/armeria/core/client/endpoint/WeightedRoundRobinStrategyBenchmark.java