Skip to content

Instantly share code, notes, and snippets.

@kriszyp
Last active January 10, 2021 03:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kriszyp/82b5729e6892a169fe493f7924d8662d to your computer and use it in GitHub Desktop.
Save kriszyp/82b5729e6892a169fe493f7924d8662d to your computer and use it in GitHub Desktop.
operation op/s
buf = Buffer(JSON.stringify(obj)); 526300
obj = JSON.parse(buf); 527300
require('msgpackr').pack(obj); 1081280
require('msgpackr').unpack(buf); 675080
msgpackr w/ shared structures: packr.pack(obj); 1284720
msgpackr w/ shared structures: packr.unpack(buf); 2770860
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment