msgpack vs bjson vs json
JavaScript performance comparison
Info
Performance test beetween bjson and jsperf
Preparation code
<script src="http://jonasfj.github.com/BJSON.coffee/src/encoding.js">
</script>
<script src="http://jonasfj.github.com/BJSON.coffee/bin/BJSON.js">
</script>
<script src="https://raw.github.com/msgpack/msgpack-javascript/master/msgpack.js">
</script>
<script>
Benchmark.prototype.setup = function() {
var objectTest = {
'abcdef': 1,
'qqq': 13,
'19': [1, 2, 3, 4]
};
};
</script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
BJSON |
|
pending… |
msgpack |
|
pending… |
JSON |
|
pending… |
Compare results of other browsers
Revisions
You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:
- Revision 1: published by deStrO
- Revision 4: published by Andrew Bennett
0 comments