Skip to content

Add perf measuring suite #2

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JustinTulloss
Copy link

I was playing around with this in an effort to start supporting the encoding spec. That ended up being a horribly slow bust, but I thought this perf tool might be useful.

@creationix
Copy link
Owner

For string-heavy stuff, JSON is hard to beat because of how it's integrated with the JS engine. But for number and array-heavy loads, msgpack-js is much faster in my testing.

@JustinTulloss
Copy link
Author

Yeah, that's awesome. Unfortunately there are a lot of string-heavy
payloads out there.

I'm looking forward to the encoding spec getting some implementations.

http://encoding.spec.whatwg.org/

On Mon, Apr 29, 2013 at 8:17 AM, Tim Caswell [email protected]:

For string-heavy stuff, JSON is hard to beat because of how it's
integrated with the JS engine. But for number and array-heavy loads,
msgpack-js is much faster in my testing.


Reply to this email directly or view it on GitHubhttps://github.com//pull/2#issuecomment-17172983
.

@skrat
Copy link

skrat commented Feb 5, 2014

Thank you! I intend to use msgpack for loading 3D data in browser, ie. loads of float arrays. I did a little benchmark with 1e6 float array:

  • File size
    • JSON: 20M
    • msgpack: 4M
  • Decode per second
    • JSON: 4.5 ops/s
    • msgpack: 460 ops/s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants