Skip to content

Instantly share code, notes, and snippets.

@iworker
Created April 24, 2015 07:31
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 iworker/56336ae47e36c79102f5 to your computer and use it in GitHub Desktop.
Save iworker/56336ae47e36c79102f5 to your computer and use it in GitHub Desktop.
BSON:
Running benchmark for...
bson
100000 times
Test completed!!
Encoding time: 0.69315004348755
Decoding time: 0.82649397850037
Total time: 1.5196440219879
Encoded size: 900 bytes
JSON:
Running benchmark for...
json
100000 times
Test completed!!
Encoding time: 1.7905299663544
Decoding time: 3.170912027359
Total time: 4.9614419937134
Encoded size: 808 bytes
Serialize:
Running benchmark for...
native
100000 times
Test completed!!
Encoding time: 1.3737659454346
Decoding time: 1.3643879890442
Total time: 2.7381539344788
Encoded size: 1122 bytes
igbinary:
Running benchmark for...
igbinary
100000 times
Test completed!!
Encoding time: 2.4562809467316
Decoding time: 1.479875087738
Total time: 3.9361560344696
Encoded size: 517 bytes
msgpack:
Running benchmark for...
msgpack
100000 times
Test completed!!
Encoding time: 0.58707785606384
Decoding time: 1.2358381748199
Total time: 1.8229160308838
Encoded size: 667 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment