Skip to content
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 Benchmark #31

Open
pewsplosions opened this issue May 5, 2020 · 2 comments
Open

Performance Benchmark #31

pewsplosions opened this issue May 5, 2020 · 2 comments
Labels

Comments

@pewsplosions
Copy link

Hi, I was just curious if there are any performance benchmark numbers for binn?

For example, how do common operations compare to flatbuffers (flatcc) or maybe json libraries or any other serialization libraries. Like on the flatbuffers google page there is this: https://google.github.io/flatbuffers/flatbuffers_benchmarks.html

Currently I'm just playing around with storing structs in a serialized format in a key/value database. Not super worried about performance and really like the simplicity of binn. But it would be kind of cool to see how it stacks up vs larger libraries and such.

Thanks for the nice library!

@kroggen
Copy link
Collaborator

kroggen commented May 7, 2020

Hi,

This is an interesting idea. I don't know any benchmark with binn at this moment.

Binn also reads values directly from the buffer, without unpacking, and it is zero-copy for strings and blobs on reading. So it is sufficiently fast.

Although the main goal of Binn is to be very easy to use. And I don't know any other simpler way to serialize and deserialize data in C.

If you plan to make a benchmark, please share the results (and maybe the code for reproducing)

@Dan-Do
Copy link

Dan-Do commented Oct 1, 2021

FYI, you can look at this link for the idea https://github.com/arangodb/velocypack/blob/main/Performance.md

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

No branches or pull requests

3 participants