Mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sharad Agarwal" <shara...@yahoo-inc.com>
Subject Re: benchmark site: thrift-protobuf-compare
Date Tue, 12 May 2009 12:47:16 GMT
ok. I got a chance to try my hand at it. Ran the benchmark on my dev box. Good to see the relative
nos:

                        ,   Object create,   Serialization, Deserialization,      Total Time,
Serialized Size
avro-generic            ,      2453.88000,      5335.50000,      4526.00000,     12315.38000,
       211
avro-specific           ,      1024.00000,      2912.50000,     10415.00000,     14351.50000,
       211
protobuf                ,      1196.20000,      8483.00000,      5965.00000,     15644.20000,
       217
thrift                  ,      1089.70000,      7744.00000,      8796.50000,     17630.20000,
       314
hessian                 ,      1019.92500,    355739.00000,     49838.50000,    406597.42500,
       463
java                    ,      1018.29500,     26675.50000,     87540.50000,    115234.29500,
       845
java (externalizable)   ,      1028.99000,     10002.50000,     23270.50000,     34301.99000,
       315


Note that in above results, I have moved the Utf-8 conversion out of the create() call. With
Utf-8 conversion in create, the object create times are:
                        ,   Object create   
avro-generic            ,      4236.55500   
avro-specific           ,      2982.89000


Serialized size is small as expected. We are doing pretty good in Serialization time as well.
Deserialization time is relatively high, I think again it is due to Utf-8 object creation.

I will post a patch soon to the project.

- Sharad


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message