Actual JSON base test for Java API

I am looking for a test for various serialization APIs. All I have found are obsolete posts and articles from a year or more earlier. So, I hope someone can share a link to a modern test?

PLEASE: I know about the implementations you can find on the Internet. I do not want to recommend your preferred API. And I don’t need "I think it is fast." I am only looking for an actual comparison of performance in measured values.

+4
source share
2 answers

Here is one test.

http://code.google.com/p/thrift-protobuf-compare/wiki/Benchmarking

In this article, I discuss the importance of recycling objects to improve serialization time.

http://vanillajava.blogspot.co.uk/2011/10/serialization-using-bytebuffer-and.html

IMHO: JSon is one of the most complex formats for deserializing efficiently, even more complex than XML.

+4
source

Here are the last two of them last week. It compares the form [] bit, reader, inputStream, char [], CharSequence, String, etc.

It compares Boon, Jackson, Smart JSON and GSON.

https://github.com/gatling/json-parsers-benchmark

https://github.com/RichardHightower/json-parsers-benchmark

Boone and Jackson are close to a few. From time to time, Boon is 4 times faster. Mostly Bun wins. :) GSON is better than most I / O, but Boon works best (and best in I / O) and it has an index blending mode that is even faster (look at the second set. The invoice index overlays the Boon way on top).

https://github.com/RichardHightower/boon

I am biased. :)

But there is no gatling, and the results are the same. Boone is quickly angry.

+3
source

Source: https://habr.com/ru/post/1432420/


All Articles