Skip to content

Instantly share code, notes, and snippets.

@tsee
Created January 27, 2014 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsee/8648558 to your computer and use it in GitHub Desktop.
Save tsee/8648558 to your computer and use it in GitHub Desktop.
Start benchmark for small ...
Sereal Decode ...
Sereal Encode ...
Sereal OO Decode ...
Sereal OO Encode ...
MP Decode ...
MP Encode ...
JSON Decode ...
JSON Encode ...
CBOR Decode ...
CBOR Encode ...
Finish benchmark for small ...
Result :
{
CBOR {
decode 983040,
encode 1922388,
size 30
},
JSON {
decode 843293,
encode 1077142,
size 42
},
MP {
decode 688127,
encode 1404372,
size 30
},
Sereal {
decode 712272,
encode 879274,
size 38
},
'Sereal OO' {
decode 1004884,
encode 1835007,
size 38
}
}
Start benchmark for large ...
Sereal Decode ...
Sereal Encode ...
Sereal OO Decode ...
Sereal OO Encode ...
MP Decode ...
MP Encode ...
JSON Decode ...
JSON Encode ...
CBOR Decode ...
CBOR Encode ...
Finish benchmark for large ...
Result :
{
CBOR {
decode 10099,
encode 16541,
size 2757
},
JSON {
decode 6719,
encode 13624,
size 3941
},
MP {
decode 7167,
encode 19549,
size 2653
},
Sereal {
decode 10288,
encode 44516,
size 2902
},
'Sereal OO' {
decode 9774,
encode 53759,
size 2902
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment