Documentation
¶
Overview ¶
latency — TCP round-trip latency, written with the Debuglet Go SDK.
Opens one TCP connection per round trip to -addr, sends -probe, waits for the first reply bytes and reports the elapsed time. The target must answer with at least one byte; a line-oriented echo service is enough.
Build and run:
make wasm SAMPLE_DIR=examples/debuglets/go/latency dbl run --wasm examples/debuglets/go/latency/debuglet.wasm \ --executor EXECUTOR_ID --allow 127.0.0.1 --wait -- -addr 127.0.0.1:8080 -count 3
The destination must be in the job's --allow list; a destination outside it ends the job without guest output past the connect line.
Click to show internal directories.
Click to hide internal directories.