LedgerMath
← All benchmarksHow tcp_echo works

TCP echo over loopback

tcp_echo · compared across machine types · 8 Series on 8 machine types · AWS us-east-2

CPU
CompareMachineVariantP50P99RateRuns
c8a.2xlarge6.871 µs—4.769 GB/s89
c8g.2xlarge15.35 µs—2.134 GB/s4
c6i.8xlarge24.56 µs—1.334 GB/s89
i4i.2xlarge24.84 µs—1.319 GB/s89
m6id.2xlarge25.17 µs—1.302 GB/s1
m5.large26.47 µs—1.238 GB/s91
i4g.2xlarge29.17 µs—1.123 GB/s4
c8i.2xlarge46.34 µs—707.1 MB/s89
Compared:m5.largec8g.2xlargec8i.2xlarge

Run-to-run spread

time per round trip across counted Runs

Over time

newest counted Runs, time per round trip

(one request each to the data API)

What this measures

The round trip of a buffer over loopback TCP inside one process, between its main thread and a server thread that echoes it back: the kernel's TCP stack and system calls, with no network card and no network.

What it does not measure

  • Loopback involves no network card and no other machine. It is not a figure for traffic between two machines.
  • One connection, opened before measuring, carries every repetition, so opening a connection is not in the figure.
  • A repetition also hashes every 997th byte it read back, and the last, so the figure is not the kernel's work alone.

The whole method, on its page →

c8i.2xlarge

Beat this hot path on GitHub ↗