• 几种 Java 序列化方案的性能比较


    较结果:

    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






    Checking correctness…
    [done]
    Pre-warmup… kryo-opt wobly wobly-compact protobuf protostuff protobuf/protostuff thrift thrift-compact avro json/json-lib-databind json/jsonij-jpath json/jsonpath/json.simple
    [done]

    create     ser   deser   total   size  +dfl
    kryo-opt                             66     511     788    1299    211   131
    wobly                                42     914     558    1472    251   151
    wobly-compact                        42     872     568    1439    225   139
    protobuf                            129    1103     684    1787    239   149
    protostuff                           98     439     658    1097    239   150
    protobuf/protostuff                 100     571     687    1258    239   149
    thrift                              119    1651     900    2550    349   197
    thrift-compact                      119    1387     992    2379    240   148
    avro                                 69    1234    1335    2569    221   133
    json/json-lib-databind               63   27555   87292  114848    485   263
    json/jsonij-jpath                    65   28976   12671   41646    478   263
    json/jsonpath/json.simple            64    6507  225500  232006    495   269






    Checking correctness…
    [done]
    Pre-warmup… java-manual kryo-manual protostuff-manual avro-generic json/jackson/manual json/jackson/tree json/protostuff-manual json/google-gson/manual json/google-gson/manual/tree json/json.simple/manual json/json.simple/manual/tree json/json-smart/manual/tree json/org.json/manual/tree json/jsonij-manual/tree json/argo-manual/tree smile/jackson/manual smile/protostuff-manual bson/mongodb xml/woodstox-manual xml/aalto-manual xml/fastinfo-manual xml/xstream+c-woodstox xml/xstream+c-aalto xml/xstream+c-fastinfo xml/javolution
    [done]

    create     ser   deser   total   size  +dfl
    java-manual                          64     798     694    1492    255   147
    kryo-manual                          63     459     586    1045    211   131
    protostuff-manual                    64     456     737    1193    239   150
    avro-generic                        451    1179    1050    2229    221   133
    json/jackson/manual                  62    1137    1519    2656    468   253
    json/jackson/tree                    63    2045    2650    4695    485   259
    json/protostuff-manual               63    1474    1940    3414    449   233
    json/google-gson/manual              65    5249    3991    9240    468   253
    json/google-gson/manual/tree         66    6836    5442   12278    485   259
    json/json.simple/manual              64    6331    9256   15588    495   269
    json/json.simple/manual/tree         67    6286    9701   15987    495   269
    json/json-smart/manual/tree          65    5496    3365    8862    495   269
    json/org.json/manual/tree            66    7147    9097   16243    485   259
    json/jsonij-manual/tree              65   28783    6665   35447    478   263
    json/argo-manual/tree                65   73870   15965   89835    485   263
    smile/jackson/manual                 67    1010    1110    2120    341   244
    smile/protostuff-manual              65    1132    1633    2766    321   229
    bson/mongodb                         65    3523    8125   11648    495   278
    xml/woodstox-manual                  66    3374    4999    8373    653   304
    xml/aalto-manual                     68    2230    3311    5541    653   304
    xml/fastinfo-manual                  65    6730    5838   12568    377   284
    xml/xstream+c-woodstox               64    5200   10488   15688    525   273
    xml/xstream+c-aalto                  65    4346    8783   13130    525   273
    xml/xstream+c-fastinfo               66    8094    8761   16854    345   264
    xml/javolution                       63    7719    8351   16071    504   263






    Last edited by zavakid,a month ago

    来自:http://www.oschina.net/question/12_91812

  • 相关阅读:
    关于接口和接口中多肽问题的实例
    java 简单的单例 实现
    关于动态数组的问题
    一百以内的杨辉三角
    将阿拉伯数字转为中文大写读法
    sql server 2005 优化方法
    Sql Server 2005 数据库 优秀辅助工具推荐
    SSIS高级内容 系列一
    锁定
    SQL Server 2005查询处理结构用户模式计划(UMS)
  • 原文地址:https://www.cnblogs.com/langtianya/p/4978814.html
Copyright © 2020-2023  润新知