1# SchemaBinary benchmark
2
3Run the benchmark from the repository root:
4
5```sh
6nix develop -c pnpm --dir packages/effect exec node benchmark/schema/SchemaBinary.ts
7```
8
9The benchmark compares SchemaBinary's default and fingerprint modes with JSON and Protobuf. It measures encoded, gzip, and zstd sizes together with one-shot encode/decode throughput.
10
11The streaming section compares reusable SchemaBinary parsers, Protobuf delimited decoding, and NDJSON channels. It covers single frames, batches, and frames fragmented after the first byte. Codec, schema, and Protobuf descriptor construction are excluded from timings.
12
13Compare formats within the same case and run. Absolute throughput varies with the machine and runtime.