[Building Sakai] Any Comments on org.codehaus.jackson ??

Zach A. Thomas zach.thomas at gmail.com
Thu Jun 20 11:08:08 PDT 2013


On Jun 19, 2013, at 6:27 PM, Steve Swinsburg <steve.swinsburg at gmail.com> wrote:

> Here's another perf comparison
> 
> http://blog.novoj.net/2012/02/05/json-java-parsers-generators-microbenchmark/
> 
> Sent from my iPhone

I forked his benchmark[1], updated all the libraries to their current versions, and modified it so it would work with reflectutils.

Here's what I came up with. The numbers are time (in milliseconds) spent chewing through roughly 170Mb of JSON. In case the rich text tables don't convey, I also have an image: http://cl.ly/Pm1A

Serializing
Jackson
685
Protostuff
917
FastJson
952
Gson
1881
JsonMarshaller
2050
JsonSmart
2240
Staxon-Jackson
2680
FlexJson
3798
Staxon-JsonStream
4123
reflectutils
4321
JsonLib
7421
XStream
43211

Deserializing
FastJson
459
Protostuff
886
Jackson
888
Gson
2170
reflectutils
2708
JsonMarshaller
4047
FlexJson
4462
Staxon-Jackson
8428
Staxon-JsonStream
10817
XStream
22109
JsonLib
71124
JsonSmart
error

Jackson is impressive, but not dominating. The results make me very curious about Protostuff, which I had never heard of before: https://code.google.com/p/protostuff/

Zach

[1] https://github.com/zathomas/JavaJsonPerformanceTest


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130620/acb9832e/attachment.html 


More information about the sakai-dev mailing list