Table of results:
Implementation | Time of serialization [sec] | Time of deserialization [sec] | Total ratio [%] |
---|---|---|---|
ArrayUjo | 0.343 | 0.500 | 18.5 |
MapUjo | 0.344 | 0.531 | 19.2 |
PojoUjo | 0.383 | 0.516 | 19.7 |
JavaBean | 3.832 | 1.726 | 100.0 |
JAXB 2.1 | 0,203 | 0,484 | 15,1 |
Environment: Windows XP, procesor Intel DuoCore 1.66 MHz, JRE 1.6.0_04.
Test description:
- All business objects are the same type (in one test) and they have got a recursively hierarchy up to the fourth level
- Each business object contains 11 attributes, including one relational type of ArrayList
- The total number of business objects was 6000
- Test was performed by class XmlSpeedTest2 (a second pass) of a group of JUnit tests included to the project
- Published the results are an arithmetic mean of the values from four tests
Conclusion: The XML serialization implemented in UJO Framework is approximately five times faster in comparison with the XML persistence implemented in JRE 6.0. The UJO speed of serialization is slightly smaller than the speed of the great JAXB framwork. Any comments are welcome.
1 comment:
you need to test against jibx, javaolution, xstream, castor
old benchmark
https://bindmark.dev.java.net/old-index.html
Post a Comment