bson vs json (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script type='text/javascript' src='https://raw.github.com/schteppe/js-bson/master/bundled/bson.min.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

Revisions

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