public int createConsumers(List<Topic> topics, ConsumersConfig config) {
        int count = 0;
        for (int g = 0; g < config.groupsPerTopic; g++) {
            Group group = new Group(g, config.consumersPerGroup, topics, config);
            groups.add(group);
            count += group.consumerCount();
        }
        return count;
    }
Create consumers for the given topics.
Note: the created consumers will start polling immediately.
NOT thread-safe.

@param topics topic names
@param config consumer configuration
@return the number of consumers created
tools/src/main/java/org/apache/kafka/tools/automq/perf/ConsumerService.java