jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
Just a quick comparsion of bson to json deserialization
<script src="https://rawgithub.com/mongodb/js-bson/master/browser_build/bson.js"></script>
var data = {
"glossary": {
"title": "example glossary",
"GlossDiv": {
"title": "S",
"GlossList": {
"GlossEntry": {
"ID": "SGML",
"SortAs": "SGML",
"GlossTerm": "Standard Generalized Markup Language",
"Acronym": "SGML",
"Abbrev": "ISO 8879:1986",
"GlossDef": {
"para": "A meta-markup language, used to create markup languages such as DocBook.",
"GlossSeeAlso": ["GML", "XML"]
},
"GlossSee": "markup"
}
}
}
}
};
var bsonBuffer = bson().BSON.serialize(data, false, true, false);
var jsonBuffer = JSON.stringify(data);
Ready to run.
Test | Ops/sec | |
---|---|---|
BSON |
| ready |
JSON |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.