Skip to content

Benchmarks

Benchmarks use the example schemas in examples/. Each example contains:

  • a delta-pack schema (schema.yml)
  • a protobuf schema (schema.proto)
  • 2 or more data snapshots (schema1.json, ..., schemaN.json)

Snapshot Encoding Size

JSON, MessagePack, Protobuf, and Delta-Pack compared for snapshot encoding. Lower is better.

Snapshot encoding size comparison

Delta Encoding Size

Delta-Pack diffs vs JSON Patch (RFC 6902) for delta encoding. Lower is better.

Delta encoding size comparison

Performance

Per-language encoding/decoding speed benchmarks:

  • TypeScript (vs JSON, msgpackr, protobufjs)
  • C# (vs System.Text.Json, MessagePack-CSharp, Google.Protobuf)
  • Rust (vs JSON, rmp-serde, prost)

Released under the MIT License.