-
Notifications
You must be signed in to change notification settings - Fork 14
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
Benchmark request - flexbuffers and avro #7
Comments
Hey thanks for the issue, that's a good idea. I didn't realize how much NoProto has in common with Apache Avro! I got the benchmarks together, results below:
The most popular Apache Avro library , I feel super proud that NoProto is beating out Flexbuffers, I didn't expect that result. I'll have these benchmarks in the next release! |
Yeah, avro and noproto seem sort of analagous to protobuf and capnproto, so I thought the comparison was appropriate. Very interesting to see these results - I'm in agreement that there's nothing fundamental to avro that makes it as slow as it is, really most of avro could be zero-copy even, similar to how protobuf is. Great to see beating out flexbuffers. Pretty cool project, I really look forward to watching it. I also wonder if that size comparison is maybe including the schema with avro? Avro by default will attach the schema to the data, but that's not fundamental - you can remove it. |
The benchmarks right now compare NoProto to formats that are fairly different - either the data carries along a schema (json), or the schema is precompiled (protobuf).
I think flexbuffers and avro are probably much better comparisons, as they're both formats where the schemas can be loaded dynamically. I think it would be very interesting to see comparisons to those two.
The text was updated successfully, but these errors were encountered: