Last active
January 10, 2021 03:51
-
-
Save kriszyp/82b5729e6892a169fe493f7924d8662d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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