同样的json数据解析耗时对比:
YYModel:
一次解析耗时: 0.0028470754623413086
十次解析耗时: 0.004878044128417969
万次解析耗时: 0.26864302158355713
JsonDecorder:
一次解析耗时: 0.0033609867095947266
十次解析耗时: 0.012459993362426758
万次解析耗时: 1.7848140001296997
KaKaJSON:
一次解析耗时: 0.020533084869384766
十次解析耗时: 0.05339992046356201
万次解析耗时: 3.877763032913208
HandyJSON:
一次解析耗时: 0.0107649564743042
十次解析耗时: 0.06876707077026367
万次解析耗时: 9.930932998657227
据说 ObjectMapper、JSONHelper、ModelRocket,性能比 Mantle 还差很多