Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Evaluating JAXB performance (jaxb2) by comparing it with others technologies

NotificationsYou must be signed in to change notification settings

samirromdhani/Jaxb-PERF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of contents

General info

Evaluating jaxb performance (jaxb2) by comparing it with others technologies

Technologies

Java API

  • JAXB: (jaxb-api 2.3.1)
  • JAXB: (jakarta.xml.bind-api 3.0.0)

CoMPAS SCT Commons

  • JAXB: (jaxb-impl 2.3.6)

Spring (current)

  • JAXB2: OXM (Object XML Mapping)

TODO

  • Jackson
  • Jaxb-V2

Others

  • JAXB-STREAM
  • JIBX

Notes

MarshallerJaxb2Wrapper : Jaxb2Marshaller (org.springframework.oxm.jaxb.Jaxb2Marshaller)

JavaSCLJaxbImpl : (javax.xml.bind.*)

MarshallerWrapper : CoMPAS sct (javax.xml.bind.*)

JakartaSCLJaxbImpl : (jakarta.xml.bind.*)

Links

JAXB on Java 9, 10, 11 and beyond :

https://jesperdj.com/2018/09/30/jaxb-on-java-9-10-11-and-beyond/

JAXB V2 : Partial Unmarshalling

https://github.com/javaee/jaxb-v2/tree/master/jaxb-ri/samples/src/main/samples/partial-unmarshalling

Others

https://stackoverflow.com/questions/65805250/hows-the-performance-of-jackson-compared-to-jaxb-in-creating-xml

https://github.com/beanit/iec61850bean/blob/master/src/main/java/com/beanit/iec61850bean/SclParser.java

Performance Test Report

jaxb2 (spring)

jaxb/v0

jaxb 2.3.1 (java)

jaxb/v1 ,jaxb/v2 ,jaxb/v3 :

  • Using default package based javax api : org.lfenergy.compas.scl2007b4.model.SCL

jaxb 3.0.0 (java, jakarta)

jaxb/v4 ,jaxb/v5 :

  • Using custom package based jakarta api : com.github.jaxblib.xsd.jakarta.model.SCL

    instead of org.lfenergy.compas.scl2007b4.model.SCL

Test unmarshalling

  • convert file to Java objects (SCL)

#1

API VersionTypeFile sizeFile sizeFile size
------7 MB70 MB328 MB
jaxb/v0JAXB22056 ms18.7 s1m 35s
jaxb/v1JAXB1843 ms17.6 s1m 35s
jaxb/v2JAXB with SAX1936 ms19 s1m 48s
jaxb/v3JAXB CoMPAS sct1857 ms17.6 s1m 45s
jaxb/v4JAXB Jakarta1749 ms17.5 s1m 43s
jaxb/v5JAXB Jakarta with SAX1930 ms20.5 s1m 44s

#2

API VersionTypeFile sizeFile sizeFile size
------7 MB70 MB328 MB
jaxb/v0JAXB22079 ms18.3 s1m 43s
jaxb/v1JAXB1963 ms19 s1m 35s
jaxb/v2JAXB with SAX1916 ms20.2 s1m 50s
jaxb/v3JAXB CoMPAS sct1810 ms18.8 s1m 48s
jaxb/v4JAXB Jakarta1727 ms19.4 s1m 41s
jaxb/v5JAXB Jakarta with SAX1917 ms19.2 s1m 47s

Test marshalling TODO

  • convert Java objects (SCL) to string or bytes

#1

API VersionTypeFile sizeFile sizeFile size
------7 MB70 MB328 MB
jaxb/v0JAXB2------------
jaxb/v1JAXB------------
jaxb/v2JAXB with SAX------------
jaxb/v3JAXB CoMPAS sct------------
jaxb/v4JAXB Jakarta------------
jaxb/v5JAXB Jakarta with SAX------------
For memory usage, take a look at tests, github action report or gatling report

About

Evaluating JAXB performance (jaxb2) by comparing it with others technologies

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp