Versioned project notes for @stackline/sse 1.0.5. Original attribution is retained in the linked repository.
Benchmark Methodology
The checked-in benchmark compares the incremental parser with
[email protected] using the same 50,000-event document. It measures a
single document, 16 KiB chunks, encoding throughput, and an adversarial stream
split one character at a time.
npm ci
npm run benchmark
Both parsers are warmed before measurement and must produce the expected event count. The adversarial case is reported separately because fragmented input is a complexity and memory-safety concern, not only a throughput concern.
Results depend on Node.js, CPU, chunk shape, event size, callbacks, and enabled limits. Publish the complete command, environment, and raw JSON output. Do not compare unlike parser, client, encoder, and server contracts as if they were the same operation.