Manual tutorial FastJson / Fastjson 与各种JSON库的性能比较

Fastjson 与各种JSON库的性能比较

Fastjson 与各种JSON库的性能比较:

json库序列化性能反序列化性能jar大小
fastjson12011216fastjson-1.1.26.jar(356k)                
fastjson-1.1.25-android.jar(226k)
jackson14081915jackson-annotations-2.1.1.jar(34k)                
jackson-core-2.1.1.jar(206k)                
jackson-databind-2.1.1.jar(922k)                
总共1162k
gson74215065gson-2.2.2.jar(189k)
json-lib2755587292json-lib-2.4-jdk15.jar(159k)


                           create     ser   deser   total   size  +dfl
java-built-in                        62    5608   29649   35257    889   514
hessian                              65    3812    6708   10519    501   313
kryo                                 65     588     814    1403    214   134
protostuff-runtime                   64     651     856    1507    241   151
msgpack                              62     759    1386    2145    233   146
json/jackson/databind                61    1842    2421    4262    485   261
json/jackson/db-afterburner          63    1408    1915    3323    485   261
json/protostuff-runtime              63    1650    2465    4115    469   243
json/google-gson/databind            64    7421    5065   12485    486   259
json/svenson-databind                64    5295   13144   18439    495   266
json/flexjson/databind               62   21381   28193   49575    503   273
json/fastjson/databind               63    1201    1216    2417    486   262
smile/jackson/databind               65    1659    2007    3666    338   241
smile/jackson/db-afterburner         63    1298    1520    2817    352   252
smile/protostuff-runtime             64    1500    1710    3210    335   235
bson/jackson/databind                65    5645    6895   12541    506   286
xml/xstream+c                        65    6645   13644   20289    487   244
xml/jackson/databind-aalto           63    2933    5386    8319    683   286