Skip to content

Performance of JSON parsers

Alex Suslov edited this page May 25, 2020 · 1 revision

Results of reading tweet in the following libraries:

The Goal is parsing into a Tree Object without data binding.

Results

Benchmark  Mode  Cnt   Score   Error   Units
MicroJson thrpt    9   0.155 ± 0.014  ops/us *
Jackson   thrpt    9   0.117 ± 0.005  ops/us
DslJson   thrpt    9   0.094 ± 0.004  ops/us
FastJson  thrpt    9   0.094 ± 0.002  ops/us
Gson      thrpt    9   0.084 ± 0.003  ops/us

Micro      avgt    9   6.513 ± 0.827   us/op *
Jackson    avgt    9   8.493 ± 0.177   us/op
DslJson    avgt    9  10.579 ± 0.244   us/op
FastJson   avgt    9  10.728 ± 0.061   us/op
Gson       avgt    9  11.718 ± 0.325   us/op

results

Test machine

Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
Java(TM) SE Runtime Environment (build 14+36-1461)
Java HotSpot(TM) 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)

Check it

The source

Also, you can check it yourself: gradlew jmh

Clone this wiki locally