msgpack-node - MessagePack implementation for Node.js

  •        0

`node-msgpack` is currently slower than the built-in `JSON.stringify()` and`JSON.parse()` methods. In recent versions of node.js, the JSON functionshave been heavily optimized. node-msgpack is still more compact, and we arecurrently working performance improvements. Testing shows that, over 500kiterations, `msgpack.pack()` is about 5x slower than `JSON.stringify()`, and`msgpack.unpack()` is about 3.5x slower than `JSON.parse()`.Old performance numbers are below.The following tests were performed with 500,000 instances ofthe JavaScript object `{'abcdef' : 1, 'qqq' : 13, '19' : [1, 2, 3, 4]}`: * `JSON.stringify()` 7.17 seconds * `JSON.parse(JSON.stringify())` 22.18 seconds * `msgpack.pack()` 5.80 seconds * `msgpack.unpack(msgpack.pack())` 8.62 secondsNote that `node-msgpack` produces and consumes Buffer objects, and a such doesnot incur encoding/decoding overhead when performing I/O with native strings.

https://github.com/msgpack/msgpack-node

Tags
Implementation
License
Platform

   




Related Projects

node-msgpack-rpcjs - pure js implementation of the msgpack rpc using the msgpack-js module


pure js implementation of the msgpack rpc using the msgpack-js module

node-msgpack-rpc


node-msgpack-rpc is an implementation of the Msgpack-RPC protocol specification for node.js.

msgpack5 - A msgpack v5 implementation for node.js, with extension points / msgpack.org[Node]


A msgpack v5 implementation for node.js, with extension points / msgpack.org[Node]

node-document-serializer-msgpack - Serializer adapter `msgpack` for `node-document` ODM for Node.js.


Serializer adapter `msgpack` for `node-document` ODM for Node.js.

msgpack-csv-stream - msgpack -> csv streamer (in node.js)


msgpack -> csv streamer (in node.js)

qb - NOT PRODUCTION-READY -- A job queue for node.js backed by redis and msgpack


NOT PRODUCTION-READY -- A job queue for node.js backed by redis and msgpack

msgpack-codec-nodejs - The msgpack codec, in Node.JS JavaScript, using require('bitsyntax').


The msgpack codec, in Node.JS JavaScript, using require('bitsyntax').

node-msgpack3


A speedy implementation of the MessagePack serialization protocol, written from scratch.

msgpack-rpc-node - Node.js RPC with MessagePack serialization


Node.js RPC with MessagePack serialization