msgpack (v4)

Revision 4 of this benchmark created on


Preparation HTML

<script src="https://raw.github.com/uupaa/msgpack.js/master/msgpack.js"></script>
//<script src="https://raw.github.com/msgpack/msgpack-javascript/master/msgpack.js"></script>
<script>
  var testPack = [];
  
  for (var i = 0; i < 50000; i += 1) {
      testPack.push(new Date());
  }
  
  var testUnpack1 = JSON.stringify(testPack);
  var testUnpack2 = msgpack.pack(testPack);
  var testUnpack3 = msgpack.pack(testPack, true);
</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
msgpack Pack (to string)
msgpack.pack(testPack, true);
ready
msgpack Unpack
msgpack.unpack(testUnpack3);
ready

Revisions

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