This code measures the performance of the confluent kafka go library when serializing using protobuf and the schema registry, as showcased here.
Install docker and run the experiment with:
./run.sh 2>&1 | tee results.logOn my machine, I get:
| Test | Time to serialize 1 million messages |
|---|---|
| Protobuf+schema registry | 1.603282821s |
| Pure protobuf (baseline) | 99.182533ms |
For a complete log on my machine, see results.log.