Serialization is always an important aspect of any Microservice or solution. Often people associate Benchmarks as potential flame-war enablers, thats not my goal here. Benchmarks are sensible things, they really vary from config, hardware, use case, payload. I’m trying to convince you guys of anything. I’m Just sharing some simple comparison exercise I did so you guys have any idea about performance to Serialize and Deserialize and the resulting size. I highly recommend you do this benchmark for you use case. However, my pet project here might give you some ideas on how to get started. The benchmark I will show is coed in Java but you can take these ideas and do them in any language. I will use Junit as a way to run the benchmarks. So let’s get started.
Originally published at http://diego-pacheco.blogspot.com on July 3, 2020.