TCP throughput between machines
net_throughput · compared across Services · 3 Series on 1 machine types · AWS us-east-2
Service
Scope
Streams
Order
| Compare | Service | Variant | Machine | P50 | P99 | Rate | Unit cost | Runs |
|---|---|---|---|---|---|---|---|---|
| Peer, same AZ | c8g.2xlarge | 154.9 ms | — | 1.742 GB/s | $0.186 /GB/s·h | 4 |
Compared:Peer, same AZ · c8g.2xlarge
Run-to-run spread
time per sample across counted RunsOver time
newest counted Runs, time per sample(one request each to the data API)
What this measures
TCP throughput from this box to a peer box: a fixed number of bytes per sample, over one or more parallel connections, checked by the peer, under a hard cap on the bytes a Run may send.
What it does not measure
- Latency: see
net_rtt. - Connection setup: connections are opened before each sample.
- More than the bytes asked for: a short transfer is dominated by slow start, a long one by the instance's network allowance, and AWS lets a burst exceed the sustained baseline.
Code & config
Benchmark docsSeries JSONPeer, same AZ · c8g.2xlarge · same az · 4 streams
199static void transfer(stream *s) {// …210 uint64_t left = s->bytes;211 while (left > 0) {212 size_t n = left < P.chunk ? (size_t)left : P.chunk;213 if (!lm_net_send_all(s->fd, s->chunk, n)) {214 s->error = errno;215 return;216 }217 left -= n;218 lm_progress_note(&s->progress, s->bytes - left);219 }// …319 uint64_t t0 = lm_now_ns();320 pthread_barrier_wait(&g_start);321 pthread_barrier_wait(&g_end);322 uint64_t t1 = lm_now_ns();
Configuration
- benchmarknet_throughput
- buildstatic
- instancec8g.2xlarge
- regionus-east-2
- azuse2-az3
- servicenet_peer_same_az
- params.bytes_per_sample268435456
- params.chunk_bytes131072
- params.max_total_bytes4294967296
- params.scopesame_az
- params.streams4
- params.timeout_ms10000