fastjson2/docs/benchmark/benchmark_2.0.7_x86.md

930 B

0. 测试环境

  • Memory 64 GB

JDK

  • JDK 8
  • JDK 11
  • JDK 17

1. Parse String to Tree

JDK 8


JDK 11


JDK 17


Pars String to Java Bean

JDK 8


JDK 11


JDK 17

Benchmark                     Mode  Cnt     Score     Error   Units
EishayParseString.fastjson1  thrpt    5  1110.152 ± 277.713  ops/ms
EishayParseString.fastjson2  thrpt    5  1049.326 ± 108.020  ops/ms
EishayParseString.jackson    thrpt    5   447.299 ±  44.290  ops/ms

Parse UTF8 Bytes to Java Bean

JDK8

JDK 11

JDK 17

Parse UTF8 Bytes to JSONObject

JDK 8

JDK 11

JDK 17

Parse Pretty UTF8 Bytes to Java Bean

JDK 8

JDK 11

JDK 17

Write

JDK 8

JDK 11

JDK 17