json-benchmark

nativejson-benchmark in Rust (by serde-rs)

Json-benchmark Alternatives

Similar projects and alternatives to json-benchmark

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better json-benchmark alternative or higher similarity.

json-benchmark reviews and mentions

Posts with mentions or reviews of json-benchmark. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-22.
  • Do You Know How Much Your Computer Can Do in a Second?
    2 projects | news.ycombinator.com | 22 Jun 2023
    I don’t really understand what this is trying to prove:

    - you don’t seem to specify the size of the input. This is the most important omission

    - you are constructing an optimised representation (in this case, strict with fields in the right places) instead of a generic ‘dumb’ representation that is more like a tree of python dicts

    - rust is not a ‘moderately fast language’ imo (though this is not a very important point. It’s more about how optimised the parser is, and I suspect that serde_json is written in an optimised way, but I didn’t look very hard).

    I found[1], which gives serde_json to a dom 300-400MB/s on a somewhat old laptop cpu. A simpler implementation runs at 100-200, a very optimised implementation gets 400-800. But I don’t think this does that much to confirm what I said in the comment you replied to. The numbers for simd json are a bit lower than I expected (maybe due to the ‘dom’ part). I think my 50MB/a number was probably a bit off but maybe the python implementation converts json to some C object and then converts that C object to python objects. That might half your throughput (my guess is that this is what the ‘strict parse’ case for rustc_serialise is roughly doing).

    [1] https://github.com/serde-rs/json-benchmark

  • Serde Json vs Rapidjson (Rust vs C++)
    6 projects | /r/rust | 17 Jan 2023
    But the code OP posted deserializes JSON without knowing anything about the structure, which is known to be slow in serde-json and doesn't appear to be the focus for the library. The json and json-deserializer crates should perform much better in that scenario.
    6 projects | /r/rust | 17 Jan 2023
    Deserializing without the structure being known in advance doesn't seem to be a focus for serde-json. Other parsers such as the json crate perform better for that use case according to serde's own benchmarks.
    6 projects | /r/rust | 17 Jan 2023
    This result is not unexpected because serde-json's own benchmarks show that when parsing into a structure that's not known in advance, it's about as fast as rapidjson built with clang and slower than rapidjson built with GCC, which you're using here.
  • Good example of high performance Rust project without unsafe code?
    20 projects | /r/rust | 2 Aug 2022
  • I'm a veteran C++ programmer, what can Rust offer me?
    2 projects | /r/rust | 24 Mar 2022
  • Rust is just as fast as C/C++
    6 projects | /r/rust | 23 Feb 2022
    Of course that doesnt mean that in practice the available libraries are as optimized. Did you try actix? It tends to be faster than rocket. Also json-rust and simd-json are usually faster than serde-json, when you don't deserialize a known structure. Here are some benchmarks: https://github.com/serde-rs/json-benchmark
  • Serde zero-copy benchmarks?
    2 projects | /r/rust | 1 Apr 2021
    I found two projects: * https://github.com/djkoloski/rust_serialization_benchmark - doesn't use Serde zero copy * https://github.com/serde-rs/json-benchmark - has copy vs borrowed, but the results were the same for both, so something's off there
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 28 Mar 2024
    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. Learn more →

Stats

Basic json-benchmark repo stats
12
165
4.8
3 days ago
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com