GitHub - hypergeometric/notepack: A fast Node.js implementation of the latest MessagePack spec
Performance is currently comparable to msgpack-node (which presumably needs optimizing and suffers from JS-native overhead) and is significantly faster than other implementations. Several micro-optimizations are used to improve the performance of short string and Buffer operations.
Encoding (this will take a while):
+----------------------------+-----------------+-----------------+----------------+---------------+
| │ tiny │ small │ medium │ large |
+----------------------------+-----------------+-----------------+----------------+---------------+
| notepack │ 758,340 ops/sec │ 172,415 ops/sec │ 18,614 ops/sec │ 262 ops/sec |
+----------------------------+-----------------+-----------------+----------------+---------------+
| msgpack-js │ 100,768 ops/sec │ 27,229 ops/sec │ 3,044 ops/sec │ 93.47 ops/sec |
+----------------------------+-----------------+-----------------+----------------+---------------+
| msgpack-node │ 206,825 ops/sec │ 107,619 ops/sec │ 20,362 ops/sec │ 284 ops/sec |
+----------------------------+-----------------+-----------------+----------------+---------------+
| JSON.stringify (to Buffer) │ 528,632 ops/sec │ 154,229 ops/sec │ 12,023 ops/sec │ 7.82 ops/sec |
+----------------------------+-----------------+-----------------+----------------+---------------+
Decoding (this will take a while):
+--------------------------+-------------------+-----------------+----------------+---------------+
| │ tiny │ small │ medium │ large |
+--------------------------+-------------------+-----------------+----------------+---------------+
| notepack │ 756,003 ops/sec │ 163,630 ops/sec │ 15,771 ops/sec │ 144 ops/sec |
+--------------------------+-------------------+-----------------+----------------+---------------+
| msgpack-js │ 425,628 ops/sec │ 101,821 ops/sec │ 10,117 ops/sec │ 123 ops/sec |
+--------------------------+-------------------+-----------------+----------------+---------------+
| msgpack-node │ 717,093 ops/sec │ 165,781 ops/sec │ 23,506 ops/sec │ 155 ops/sec |
+--------------------------+-------------------+-----------------+----------------+---------------+
| JSON.parse (from Buffer) │ 1,441,579 ops/sec │ 396,923 ops/sec │ 28,594 ops/sec │ 33.94 ops/sec |
+--------------------------+-------------------+-----------------+----------------+---------------+
* Note that JSON is provided as an indicative comparison only