-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
performance #17
Comments
I ended up just writing a test. borc vs https://github.com/hildjj/node-cbor vs JSON. JSON encode/decode is significantly faster. Is this just because the cbor encode/decode is happening in pure JS? If not, what is the benefit/selling point of using cbor? If cbor is not required, and if binary xfer is not required, what is the benefit of cbor when working in IoT environment? If working in IoT, I would think most data payloads would already be small, so size of JSON vs cbor is not a factor IMO. Output:
|
Thank you, if you check the benchmarks they compare to |
fwiw iMac 5k got following results on the benchmarks included in this repo. Needed to add
|
Have you happen to have done any performance analysis of using this lib to encode/decode cbor vs encoding/decoing JSON?
Similar to what Paul Irish did for cbor in browser paroga/cbor-js#11
If it has not already been done, I'm happy to write tests.
The text was updated successfully, but these errors were encountered: