Since I've posted the WSTest results I've been wondering what the results would be when using serialization methods other than XML and what is really the difference between Aalto and SJSXP XML parsers
I've set up a test using JSON and native Java serialization. The JSON bits are handled by the Jackson processor because it's claim to fame is that it's fast and in addition to that it supports easy binding to Java objects
As always the code is available for download
Test Name | xml - sjsxp | xml - aalto | json - jackson | java serialization |
---|---|---|---|---|
GetOrder-20 | 8662 | 11632 | 11650 | 11465 |
GetOrder-100 | 4509 | 5126 | 5651 | 7077 |
EchoStruct-20 | 9441 | 12773 | 14788 | 12914 |
EchoStruct-100 | 4133 | 5389 | 6796 | 7575 |
EchoList-20 | 8610 | 12986 | 13889 | 13649 |
EchoList-100 | 3846 | 5129 | 6067 | 7238 |
What are the conclusions?
For this tests Aalto seems to be about 30-40% faster than SJSXP (the bundled StaX parser).
Jackson is screamingly fast, it gives Java serialization a run for it's money, specially for small message sizes.
A subscrição é anónima e gera, no máximo, um e-mail por dia.
. Alternative serialization...
. WSTest, some numbers - Up...
. A fast implementation of ...
. Receiving events/notifica...