bson vs msgpack vs json (v3)

Revision 3 of this benchmark created on


Preparation HTML

<script type='text/javascript' src='http://www.saykor.com/bson.js'></script>
<script type='text/javascript' src='http://www.saykor.com/msgpack.js'></script>

Setup

var obj = {a: 'testing', b: {a: 3, c: 4, d: 'testing'}};

Test runner

Ready to run.

Testing in
TestOps/sec
bson
BSON.serialize(obj);
ready
json
JSON.stringify(obj);
ready
msgpack
msgpack.pack(obj);
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.