Documentation
¶
Overview ¶
Command streamperf is the load harness for GoStream.
It answers the questions the design could not answer by argument: how much throughput a held-poll transport sustains Go→JS, whether anything is lost or reordered under load, what it costs in host and content-process memory, and how long a Send blocks.
It drives StreamConn.Send directly — the transport entry point — so what is measured is the transport, not application-level fanout.
Run (macOS):
go run ./tests/stream-performance -duration 20s
One scenario only:
go run ./tests/stream-performance -only rate-5000
Click to show internal directories.
Click to hide internal directories.