Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The cited article also shows benchmarks from 2017 in which Jackson parser was out performing GSON in the large file category. We can surmise that there is a constant battle between these objectMappers and Jackson may begin out performing GSON again in the future. For example this article from 2019 with new benchmarks states that the difference between the different mappers is negligible, with Jackson mapper having a slight lead with larger files.

Test Results

Read Issues
ParserOperationExecution time in microsecondsIssues
40 charactersRead 100 charactersRead 1000 characters
JacksonJackson Read7.488 microseconds10.984 microseconds50.49 microseconds1150 
GSONRead0.509 microseconds0.818 microseconds<1<18.212 microsecondsGSON parses all numerical values to Doubles and as such it unable to dynamically allocate the object type that it is parsing 
JacksonWrite0.296 microseconds0.567 microseconds<1<15.12 microseconds
GSONWrite0.531 microseconds<11.332 microseconds14.884 microseconds15


ParserProsCons
Jackson

Consistent conversion of numerics
More widely used
Faster writes ****
Built into Spring Framework
Has annotation support

Slower Read
GSON

Faster Reads
May be more beneficial for reading yang modules if in future we find that processing is slow

Converts numerics to Doubles
Less Popular

...

Temporal

...

  • Jackson

...


Independent Testing Output

...