...
Parser | Execution time in microseconds | Issues | |||
---|---|---|---|---|---|
40 characters | 100 characters | 1000 characters | |||
Jackson Read | 7.488 | 10.984 | 50.49 11 | 50 | |
GSON Read | 0.509 | 0.818 <1 | <1 | 8.212 | GSON parses all numerical values to Doubles and as such it unable to dynamically allocate the object type that it is parsing |
Jackson Write | 0.296 | 0.567 <1 | <1 | 5.12 | |
GSON Write | 0.531 <1 | 1.332 14.884 | 15 |
Parser | Pros | Cons |
---|---|---|
Jackson | Consistent conversion of numerics | Slower Read |
GSON | Faster Reads | Converts numerics to Doubles |
...