msgpack (v3)

Revision 3 of this benchmark created on


Preparation HTML

<script src="https://raw.github.com/uupaa/msgpack.js/master/msgpack.js"></script>
<script>
  var testPack = [];
  
  for (var i = 0; i < 50000; i += 1) {
      testPack.push(""+new Date() +"" + i);
  }
  
  var testUnpack1 = JSON.stringify(testPack);
  var testUnpack2 = msgpack.pack(testPack);
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
JSON Pack
JSON.stringify(testPack);
ready
msgpack Pack
msgpack.pack(testPack);
ready
JSON Unpack
JSON.parse(testUnpack1);
ready
msgpack Unpack
msgpack.unpack(testUnpack2);
ready
JSON eval
var x = eval(testUnpack1);
ready

Revisions

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