rust_serialization_benchmark VS rkyv

Compare rust_serialization_benchmark vs rkyv and see what are their differences.

rust_serialization_benchmark

Benchmarks for rust serialization frameworks (by djkoloski)

rkyv

Zero-copy deserialization framework for Rust (by rkyv)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
rust_serialization_benchmark rkyv
22 13
512 2,566
- 1.4%
7.7 8.9
5 days ago 6 days ago
Rust Rust
- MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

rust_serialization_benchmark

Posts with mentions or reviews of rust_serialization_benchmark. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-13.
  • Rkyv: Rkyv zero-copy deserialization framework for rust
    2 projects | news.ycombinator.com | 13 Jan 2024
    https://github.com/djkoloski/rust_serialization_benchmark

    Apache/arrow-rs: https://github.com/apache/arrow-rs

    From https://arrow.apache.org/faq/ :

    > How does Arrow relate to Flatbuffers?

    > Flatbuffers is a low-level building block for binary data serialization. It is not adapted to the representation of large, structured, homogenous data, and does not sit at the right abstraction layer for data analysis tasks.

    > Arrow is a data layer aimed directly at the needs of data analysis, providing a comprehensive collection of data types required to analytics, built-in support for “null” values (representing missing data), and an expanding toolbox of I/O and computing facilities.

    > The Arrow file format does use Flatbuffers under the hood to serialize schemas and other metadata needed to implement the Arrow binary IPC protocol, but the Arrow data format uses its own representation for optimal access and computation

  • Comfy Engine 0.3 - No Lifetimes, User Shaders, Text Rendering, 2.5D, LDTK
    1 project | /r/rust | 9 Dec 2023
    Nice that comfy gets even easier. Also, if serde's compile time is an issue, then there's nanoserde which is usually much much faster according to benchmarks
  • Müsli - An experimental binary serialization framework with more choice
    7 projects | /r/rust | 18 May 2023
    A note on performance and size: Some benchmarks and statistics are included in the README. But only because people will be curious. I've based my methodology on rust_serialization_benchmark, but decided to not extend it (for now) since it seems to exclude any Rust types which are not widely supported by all formats being tested (like HashMap's and 128-bit numbers). The test suite is already quite nice if you want to take it for a spin.
  • bitcode 0.4 release - binary serialization format
    6 projects | /r/rust | 14 May 2023
    While we haven't benchmarked either of those ourselves. You can checkout rust_serialization_benchmark which has protobuf under the name prost.
  • Announcing bitcode format for serde
    4 projects | /r/rust | 16 Apr 2023
    Update: Benchmark PR submitted: https://github.com/djkoloski/rust_serialization_benchmark/pull/37
  • Best format for high-performance Serde?
    4 projects | /r/rust | 27 Mar 2023
    Here is a speed and size benchmark of different rust binary serialization formats: https://github.com/djkoloski/rust_serialization_benchmark Warning: I think the creator of this benchmark is also the creator of rkyv, one of the best positioned formats in the benchmark.
  • Grammatical, automatic furigana with SQLite and Rust
    1 project | /r/rust | 2 Feb 2023
    So I assume you're deserializing them before processing the book? If so then if you want an easy speed-up you could also take a look at these benchmarks and pick a faster serialization crate. (: (Although you might or might not get a big speedup; depends on what exactly you're deserializing and how much you are deserializing.)
  • GitHub - epage/parse-benchmarks-rs
    7 projects | /r/rust | 18 Jul 2022
    You can add the rust serialization benchmark to that list
  • The run-up to v1.0 for Postcard
    1 project | /r/rust | 10 May 2022
    Hey! Similar to bincode, it provides a very similar, compact binary format. The rkyv benchmark is the most comprehensive I'm aware of, but compared to bincode, postcard is generally a similar speed for serialization or deserialization (maybe a touch slower), but generally produces a slightly smaller "on the wire" size.
  • I made a blazing fast and small new data serialization format called "DLHN" in Rust.
    4 projects | /r/rust | 9 May 2022
    You should add your crate to these benchmarks. (Which are, AFAIK, the most comprehensive set of benchmarks currently available for Rust serialization libraries.)

rkyv

Posts with mentions or reviews of rkyv. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-18.
  • Müsli - An experimental binary serialization framework with more choice
    7 projects | /r/rust | 18 May 2023
    And before you ask: This only provides partial zero-copy support in strings and byte arrays like serde. But it's not like rkyv which constructs validated references into the data.
  • A new major version of jql has been released
    4 projects | /r/rust | 23 Apr 2023
    Regarding JSON, what kind of other implementation do you have in mind? I've seen e.g. `rkyv` which looks really neat (https://github.com/rkyv/rkyv/issues/85). So far `serde_json` is providing a clean surface API but maybe there's best solution?
  • My negative views on Rust
    6 projects | /r/programming | 10 Dec 2022
    Thank you for your concern. I've done plenty of projects that go beyond a "Hello World" such as a GPU accelerated password cracker. I am starting soon a C++/Rust job. I already contributed to codebases I didn't write.
  • Hey Rustaceans! Got a question? Ask here! (37/2022)!
    12 projects | /r/rust | 12 Sep 2022
    rkyv is awesome because it supports full zero-copy deserialization. You can serialize your HashMap to a file. Later you can directly use the HashMap from the file without creating and populating a new HashMap in memory (rkyv directly indexes into the raw bytes). For even faster access times you can even mmap the file.
  • Bizarre memory leak caused by tokio runtime
    4 projects | /r/rust | 8 Sep 2022
    I had the same problem when trying to deserialize a big struct with rkyv: see rkyv#277.
  • Advice for the next dozen Rust GUIs
    9 projects | /r/rust | 15 Jul 2022
    Any chance of working with zero-copy deserialization frameworks? like https://github.com/rkyv/rkyv or capnproto
  • Pijul 1.0 Beta
    5 projects | news.ycombinator.com | 19 Jan 2022
    Hi, you seem to know a bit about Sanakirja!

    It stores 4kb blobs, right? Does Pijul first parses the data (copying it to other allocations), or uses the data as is? I mean, there are some libraries like cap'n'proto[0] and rkyv[1] that can directly use the file contents as an in-memory data structure, I was wondering if Pijul did anything like that.

    I mean, is this btree page [2] stored exactly like this on disk, and does Pijul exploits that to avoid further copying data?

    (I guess there's a trouble with compression there: to decompress you really need to write in another buffer)

    Also, is the I/O done with something that prevent userspace copies like mmap or io_uring, or does it eventually calls read() to copy the data to its own buffer?

    I want to build something like Sanakirja, but with those features, so I'm wondering if there's any overlap.

    [0] https://github.com/capnproto/capnproto-rust

    [1] https://github.com/rkyv/rkyv

    [2] https://docs.rs/sanakirja-core/latest/sanakirja_core/btree/p...

  • Is there a library like Serde but which makes it easy to mutate serialized data stored in a [u8] or Vec<u8>?
    2 projects | /r/rust | 6 Dec 2021
    I think https://github.com/rkyv/rkyv does this. Also capnproto like was mentioned here, and perhaps https://docs.rs/zerocopy/0.6.1/zerocopy/index.html too
  • rkyv 0.7: Endian-agnostic types, `no_std` validation, performance improvements, github sponsors and more!
    4 projects | /r/rust | 7 Jul 2021
    It's been two months since the last major rkyv release, and three months since the last major feature release. After all that time, I'm proud to announce that rkyv 0.7 is finally out!
  • rkyv 0.5: Comparison derives, serialize bounds, and the future
    2 projects | /r/rust | 5 Apr 2021
    After roughly two months of work, rkyv 0.5 is finally out!

What are some alternatives?

When comparing rust_serialization_benchmark and rkyv you can also consider the following projects:

json-benchmark - nativejson-benchmark in Rust

rust-serialization-benchmarks

NoProto - Flexible, Fast & Compact Serialization with RPC

bebop - 🎷No ceremony, just code. Blazing fast, typesafe binary serialization.

capnproto-rust - Cap'n Proto for Rust

unsafe-code-guidelines - Forum for discussion about what unsafe code can and can't do

zero-copy-pads - Padding/aligning values without heap allocation

dlhn - DLHN implementation for Rust

jj - A Git-compatible VCS that is both simple and powerful

bincode - A binary encoder / decoder implementation in Rust.

tree-buf - An experimental serialization system written in Rust