After rerunning the tests with docker host=net i see a small bump in the rate. ~1% across all the clients.
Msgs/s
confluent_kafka_consumer : 277573.293164 / 261407.908007 = 1.061%
pykafka_consumer : 33433.342585 / 33976.938217 = 0.984%
pykafka_consumer_rdkafka : 164311.503412 / 172008.742201 = 0.955%
python_kafka_consumer : 37667.971237 / 38622.727894 = 0.975%
So yes docker network magic adds overhead, but the bias is consistent across all clients.