Documentation
¶
Overview ¶
yload is a WebSocket load generator for a ygo/yserve deployment, built on the public ygo client. It opens rooms×conns real sync clients (full handshake), designates the first W conns of each room as writers that push a timestamp string every interval, and measures write→observe propagation latency on the room's other clients. Each write carries the run's id and its writer's id, so a client counts neither its own insert nor content an earlier run left in the room: every sample is a delivery through the server. Writing starts only when every client is connected and synced (a run where that fails stops before writing), and the report gives the deliveries expected, made and missing next to the latency figures.
With -slow N the last N connections of each room are slow readers instead: raw WebSocket connections that consume -slowrate bytes per second, a little every 10 ms (0 stops reading after the first message). They are left out of the latency figures, which then show what the room's other clients see while a slow client is connected. -payload pads every write, so a slow reader fills the socket buffers sooner.
Usage:
yload -url ws://127.0.0.1:8080 -rooms 10 -conns 20 -writers 2 \
-interval 500ms -duration 30s -connrate 100
yload -rooms 1 -conns 10 -slow 1 -slowrate 0 -payload 16384 -interval 50ms