Reputation: 3972
I'm looking for an benchmark for different serialization APIs. All I found are outdated Posts and Articles from a year and more before. So I'm hoping that anyone could share a link to an up to date benchmark?
PLEASE: I'm aware of the implementations you can find in the web. I don't want a recommendation for your preferred API. And I don't need a "I think it's fast". What I'm searching for is just an actual comparison of the performance in measured values.
Upvotes: 5
Views: 5595
Reputation: 1858
Here are two recent ones as of last week. It compares form byte[], 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
Boon and Jackson are close on a few. At times Boon is 4x faster. Mostly Boon wins. :) GSON is better than most at I/O, but Boon does best all around (and best at I/O), and it has an index overlay mode that is even faster (look at the second set.. the index overlay puts Boon way over the top).
https://github.com/RichardHightower/boon
I am bias. :)
But gatling is not, and the results are the same. Boon is wicked fast.
Upvotes: 3
Reputation: 533670
Here is a one benchmark.
http://code.google.com/p/thrift-protobuf-compare/wiki/Benchmarking
In this article I discuss the importance of re-cycling objects to improve serialisation times.
http://vanillajava.blogspot.co.uk/2011/10/serialization-using-bytebuffer-and.html
IMHO: JSon is one of the most difficult formats to deserialise efficiently, even harder than XML.
Upvotes: 4