Skip to content

It seems that the performance decreased #26

ingeniarius opened this Issue May 18, 2012 · 2 comments

3 participants

node node-msgpack/bench.js

msgpack pack:   4614 ms
msgpack unpack: 1252 ms
json    pack:   1148 ms
json    unpack: 421 ms

I'm seeing similar numbers under Node 0.8.8. It looks like msgpack is faster, but JSON parse() and stringify() are much faster, but perhaps for artificial reasons. There have been significant performance improvements in Node and V8, but these results seem out of proportion.

Anyone have an explanation?

I'm currently considering msgpack for some semi-structured messages to and from Lua scripts in Redis 2.6. It imports cjson and cmsgpack, so my choices are between msgpack and plain JSON. These results make me lean towards JSON.


Going to close this to keep one thread about performance going.

@godsflaw godsflaw closed this Jun 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.