Loopback, AZ, Region
A TCP round trip over loopback, within an Availability Zone, across Availability Zones and across Regions, and what AWS charges per GB moved within a Region.
live10 of 10 figures live · AWS us-east-2
Round trip
Loopback echoes 32 KiB; the peers echo 64 B; across Regions, a TCP handshake from us-east-2| Colour | Setup | Variant | Machine | P50 | P99 | P99/P50 | Unit cost | Runs |
|---|---|---|---|---|---|---|---|---|
| Loopback | 127.0.0.132 KiB | c8g.2xlarge | 15.35 µs | — | — | — | 4 | |
| Same AZ | same AZ64 B | c8g.2xlarge | 78.46 µs | 116.2 µs | ×1.5 | $0 /GB moved | 4 | |
| Cross AZ | cross AZ64 B | c8g.2xlarge | 203.8 µs | 284.7 µs | ×1.4 | $0.02 /GB moved | 4 | |
| us-east-2 → us-east-1 | cross RegionTCP handshake | c8g.2xlarge | 11.47 ms | 14.62 ms | ×1.3 | — | 4 | |
| us-east-2 → eu-west-1 | cross RegionTCP handshake | c8g.2xlarge | 78.12 ms | 81.26 ms | ×1.0 | — | 4 | |
| us-east-2 → ap-southeast-1 | cross RegionTCP handshake | c8g.2xlarge | 206.6 ms | 217.1 ms | ×1.1 | — | 4 |
Round trips on one scale
P50 bar, P99 tick; log scaleLoopback
Same AZ
Cross AZ
us-east-2 → us-east-1
us-east-2 → eu-west-1
us-east-2 → ap-southeast-1
Loopback (32 KiB): the median Run's time per repetition (runs v1), with no P99. Same AZ (64 B), Cross AZ (64 B), us-east-2 → us-east-1 (TCP handshake), us-east-2 → eu-west-1 (TCP handshake), us-east-2 → ap-southeast-1 (TCP handshake): P50 and P99 of every operation, pooled across Runs.
Latency histograms
pooled across counted Runs, each to its own peak
(one request each to the data API)
Throughput
One stream against four; the cost is what AWS charges per GB moved| Colour | Setup | Variant | Machine | Rate | Unit cost | Runs |
|---|---|---|---|---|---|---|
| Loopback | 127.0.0.132 KiB | c8g.2xlarge | 2.134 GB/s | — | 4 | |
| Same AZ, 1 stream | same AZ1 stream | c8g.2xlarge | 907.6 MB/s | $0 /GB moved | 4 | |
| Same AZ, 4 streams | same AZ4 streams | c8g.2xlarge | 1.742 GB/s | $0 /GB moved | 4 | |
| Cross AZ, 4 streams | cross AZ4 streams | c8g.2xlarge | 1.607 GB/s | $0.02 /GB moved | 4 |
Every Region to every Region: the full 7 × 7 matrix →
Code & config
Benchmark docsSeries JSONLoopback · c8g.2xlarge
66static void send_all(int fd, const uint8_t *buf, size_t len) {67 size_t off = 0;68 while (off < len) {69 ssize_t n = send(fd, buf + off, len - off, MSG_NOSIGNAL);// …79static void recv_exact(int fd, uint8_t *buf, size_t len) {80 size_t off = 0;81 while (off < len) {82 ssize_t n = recv(fd, buf + off, len - off, 0);// …103/* One repetition: one round trip of the whole buffer. */104static uint64_t tcp_echo_run(void *arg) {105 tcp_echo_ctx_t *ctx = (tcp_echo_ctx_t *)arg;106 send_all(ctx->client_fd, ctx->send_buf, ctx->bytes);107 recv_exact(ctx->client_fd, ctx->recv_buf, ctx->bytes);108 return checksum_echo(ctx->recv_buf, ctx->bytes);109}// …233 lm_measure(tcp_echo_run, &tcp);
Configuration
- benchmarktcp_echo
- buildstatic
- instancec8g.2xlarge
- regionus-east-2
- azuse2-az3
- params.size_bytes32768