Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Johnzon vs Jackson

since Apache released the first final version of Johnzon, it would be really interesting to see if there are already some comparison between Johnzon and FastXML Jackson to see if it is worth to switch. The most important topic is probably the performance.

Has anyone already done performance tests? Can you share your result?

Best

like image 292
smichel Avatar asked Feb 09 '17 12:02

smichel


1 Answers

There are some performance benchmarks up on github. But for each of them you really have to verify if the benchmark is actually correctly implemented. For what I've seen most benchmarks use the official javax.* APIs in a sub-optimal way. Most use Json.createGenerator, etc but they should actually use JsonProvider.provider() and store this away for your operations. Then call createGenerator etc on this JsonProvider. That way you can make sure that you really get comparable results. We have done quite a few tests and for me the numbers of Johnzon look really good. And especially since it's much smaller than most other JSON libs.

like image 184
struberg Avatar answered Sep 30 '22 12:09

struberg