Closed reivilibre closed 2 years ago
Thanks for the PR, it looks good so far! As long as the benchmarks compile, I can run them and update the README with the latest numbers. It takes a while to run them all so I usually do it on a separate machine with nothing else running in the background. But you're also welcome to run them yourself!
Here we go, I've ran through all the benchmarks now, so this should be OK to merge. Very cool setup! :)
Looks good, thanks for the time and effort. I’ll get the benchmarks updated with the latest numbers later today. I’ll leave a comment on this issue when they get released.
Benchmarks have been updated!
Thanks for this benchmark!
I like BARE's dense encoding quite a bit, so thought it'd be interesting to see how it stacks up against the competition. I've only run the benchmark for a few of the libraries that I've been considering (partially because some of the other benchmarks don't compile, or need external tools which weren't easy to figure out how to install).
EDIT: Here are the results for the formats I was particularly interested in. BARE seems to have an advantage when it comes to size, which is interesting to know :).
log
This data set is composed of HTTP request logs that are small and contain many strings.
Raw Data
For operations, time per iteration; for size, bytes. Lower is better.
Serialize / deserialize speed and size
Zero-copy deserialization speed
Comparison
Relative to best. Higher is better.
Serialize / deserialize speed and size
Zero-copy deserialization speed
mesh
This data set is a single mesh. The mesh contains an array of triangles, each of which has three vertices and a normal vector.
Raw Data
For operations, time per iteration; for size, bytes. Lower is better.
Serialize / deserialize speed and size
Zero-copy deserialization speed
Comparison
Relative to best. Higher is better.
Serialize / deserialize speed and size
Zero-copy deserialization speed
minecraft_savedata
This data set is composed of Minecraft player saves that contain highly structured data.
Raw Data
For operations, time per iteration; for size, bytes. Lower is better.
Serialize / deserialize speed and size
Zero-copy deserialization speed
Comparison
Relative to best. Higher is better.
Serialize / deserialize speed and size
Zero-copy deserialization speed