Serde Benchmark

Diego Pacheco
1 min readJul 3, 2020

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.

Video

Code

https://github.com/diegopacheco/java-pocs/tree/master/pocs/serde-benchmarks

Originally published at http://diego-pacheco.blogspot.com on July 3, 2020.

--

--

Diego Pacheco

Brazilian, Software Architect, SWE(Java, Scala, Rust, Go) SOA & DevOps expert, Author. Working with EKS/K8S. diegopacheco.github.io (Opinions on my own)