Skip to content

Performance Benchmark #31

Open
Open

Description

@pewsplosions

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!

Activity

  1. kroggen commented on May 7, 2020

    @kroggen
    Collaborator

    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)

  2. Dan-Do commented on Oct 1, 2021

    @Dan-Do

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions