Skip to content

cboudereau/serde-bench

Repository files navigation

json serialization/deserializaton benchmark

json serialization and deserialization benchmark

  • deserialization
    • java
    • dotnet
    • rust
    • golang
  • serialization
    • java
    • dotnet
    • rust
    • golang

setup

./uncompress.sh

prepare json files

a basic small.json file (from https://json.org/example.html) is used to create samples

generate json files

fsi ./setup.fsx

create the setup files

./compress.sh

Benchmark result

Lang Version Benchmark time Maximum resident set size (kbytes)
Rust 1.73.0 v3 avg 334ms 275220KB
Rust 1.73.0 v2 avg 3341ms 2176KB
Rust 1.73.0 v1 avg 3772ms 4484KB
Java 20 gson avg 764ms 121300KB
Java 20 jackson avg 869ms 128952KB
Dotnet 8 v3 avg 958.82ms 87084KB

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published