bson vs json

Benchmark created on


Preparation HTML

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