At $work, we are looking to replace JSON encoding with another format, to increase encode/decode speed and required storage size.
Requirements:
- fast decode: we can trade slower encode speed for size, but decode should be fast;
- language support: stack is Perl, Go, and JavaScript. PHP is a plus, but not required;
- no schema requirement: data is JSON-compatible, deeply nested in cases, but we don't have a schema to start from.
We are testing msgpack, cbor, sereal, and others, but here I wanted to compare just sereal (the current forerunner) with the new VPack from ArangoDB project.
We used the sample files from VPack project tests/jsonSample/.
Please note: we are only comparing size at the moment (spoiler: frankly it was enough, no need to compare it further, Sereal won...)