Performance Benchmark
pewsplosions opened this issue · comments
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!
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)
FYI, you can look at this link for the idea https://github.com/arangodb/velocypack/blob/main/Performance.md