throughput

command
v0.3.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

README

TCP throughput example

This debuglet sends fixed-size chunks to a TCP sink for a chosen time and prints the bytes sent. It measures application-level throughput; it does not prove link capacity or packet-level enforcement.

Run locally

Start a local sink in one terminal:

socat -u TCP-LISTEN:8080,bind=127.0.0.1,reuseaddr,fork OPEN:/dev/null

Build and submit in another:

make wasm SAMPLE_DIR=examples/debuglets/go/throughput
dbl run --wasm examples/debuglets/go/throughput/debuglet.wasm \
  --allow 127.0.0.1 --duration 25s --wait \
  -- -addr 127.0.0.1:8080 -secs 20 -chunk 128

Keep the debuglet duration shorter than the submitted job budget. Stop the sink when finished.

Documentation

Overview

throughput — TCP throughput sender, written with the Debuglet Go SDK.

Read the respective README.md for more information on how to use this example.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL