Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
203 lines (178 sloc) 8.45 KB

Python Serialization Benchmark

  • Platform : Linux-3.13.0-27-generic-i686-with-Ubuntu-14.04-trusty
  • Python : CPython/2.7.6
  • Benchmark version : 1.2.0
  • Run at : 2014-07-29 12:59:06.854007
  • Randomization seed : seed_thrift_vs_proto
  • Benchmarks sample size : 128
  • Benchmark repeat : 128

NumStuff serialize

  • L1 : 4
framework status op_time rank
json 2.0.9 OK 39.90 us 4.62
msgpack 0.4.2 OK 12.68 us 1.47
protobuf/py 2.5.0 OK 121.67 us 14.09
thrift/py 0.9.0 OK 50.89 us 5.89
protobuf/pyext 2.5.0 OK 34.47 us 3.99
thrift/pyext 0.9.0 OK 8.64 us 1
pycapnp 0.4.4 OK 133.80 us 15.49

NumStuff deserialize

  • L1 : 4
framework status op_time rank
json 2.0.9 OK 25.07 us 5.74
msgpack 0.4.2 OK 4.36 us 1
protobuf/py 2.5.0 OK 99.02 us 22.69
thrift/py 0.9.0 OK 71.16 us 16.31
protobuf/pyext 2.5.0 OK 41.17 us 9.43
thrift/pyext 0.9.0 OK 12.03 us 2.76
pycapnp 0.4.4 OK 48.80 us 11.18

StringStuff serialize

  • L1 : 4
  • BS : 64
framework status op_time rank
json 2.0.9 OK 24.02 us 2.44
msgpack 0.4.2 OK 16.32 us 1.66
protobuf/py 2.5.0 OK 67.59 us 6.87
thrift/py 0.9.0 OK 52.35 us 5.32
protobuf/pyext 2.5.0 OK 32.57 us 3.31
thrift/pyext 0.9.0 OK 9.84 us 1
pycapnp 0.4.4 OK 14.35 us 1.46

StringStuff deserialize

  • L1 : 4
  • BS : 64
framework status op_time rank
json 2.0.9 OK 88.36 us 25.39
msgpack 0.4.2 OK 3.48 us 1
protobuf/py 2.5.0 OK 62.32 us 17.91
thrift/py 0.9.0 OK 75.03 us 21.56
protobuf/pyext 2.5.0 OK 43.22 us 12.42
thrift/pyext 0.9.0 OK 10.67 us 3.07
pycapnp 0.4.4 OK 41.42 us 11.9

ComboStuff serialize

  • L1 : 4
  • BS : 64
framework status op_time rank
json 2.0.9 OK 60.39 us 4.5
msgpack 0.4.2 OK 20.66 us 1.54
protobuf/py 2.5.0 OK 179.80 us 13.41
thrift/py 0.9.0 OK 97.31 us 7.25
protobuf/pyext 2.5.0 OK 60.86 us 4.54
thrift/pyext 0.9.0 OK 13.41 us 1
pycapnp 0.4.4 OK 147.54 us 11

ComboStuff deserialize

  • L1 : 4
  • BS : 64
framework status op_time rank
json 2.0.9 OK 109.04 us 14.36
msgpack 0.4.2 OK 7.59 us 1
protobuf/py 2.5.0 OK 154.26 us 20.32
thrift/py 0.9.0 OK 137.49 us 18.11
protobuf/pyext 2.5.0 OK 77.85 us 10.25
thrift/pyext 0.9.0 OK 16.86 us 2.22
pycapnp 0.4.4 OK 63.73 us 8.39

ComboBunch serialize

  • L1 : 4
  • BS : 64
  • L2 : 32
framework status op_time rank
json 2.0.9 OK 4.92 ms 6.34
msgpack 0.4.2 OK 1.17 ms 1.51
protobuf/py 2.5.0 OK 22.81 ms 29.39
thrift/py 0.9.0 OK 8.71 ms 11.22
protobuf/pyext CRASHED CRASHED CRASHED
thrift/pyext 0.9.0 OK 776.10 us 1.00
pycapnp CRASHED CRASHED CRASHED

ComboBunch deserialize

  • L1 : 4
  • BS : 64
  • L2 : 32
framework status op_time rank
json 2.0.9 OK 10.49 ms 10.83
msgpack 0.4.2 OK 968.61 us 1.00
protobuf/py 2.5.0 OK 16.30 ms 16.82
thrift/py 0.9.0 OK 13.45 ms 13.89
protobuf/pyext CRASHED CRASHED CRASHED
thrift/pyext 0.9.0 OK 1.29 ms 1.33
pycapnp 0.4.4 OK 4.77 ms 4.92
You can’t perform that action at this time.