t3-code-android-nightly/.repos/effect-smol/packages/effect/benchmark/schema/SchemaBinary.md
Julius Marminge e3c85ead63
chore(refs): sync Effect and Alchemy references to rc.115 and beta.78 (#12327)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-17 23:21:25 -07:00

724 B

SchemaBinary benchmark

Run the benchmark from the repository root:

nix develop -c pnpm --dir packages/effect exec node benchmark/schema/SchemaBinary.ts

The 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.

The 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.

Compare formats within the same case and run. Absolute throughput varies with the machine and runtime.