LedgerMath
← All benchmarksHow memory_read_random works

Read memory in random order

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

CPU
CompareMachineVariantP50P99RateRuns
c8a.2xlarge74.59 ms—14.40 GB/s89
c8g.2xlarge123.5 ms—8.695 GB/s4
i4g.2xlarge186.2 ms—5.766 GB/s4
c8i.2xlarge213.0 ms—5.041 GB/s89
c6i.8xlarge275.9 ms—3.891 GB/s89
i4i.2xlarge276.8 ms—3.880 GB/s89
m6id.2xlarge278.4 ms—3.857 GB/s1
m5.large308.4 ms—3.481 GB/s91
Compared:m5.largec8g.2xlargec8i.2xlarge

Run-to-run spread

time per 1 GiB pass across counted Runs

Over time

newest counted Runs, time per 1 GiB pass

(one request each to the data API)

What this measures

How fast one thread reads a buffer in random order: the first word of every 64-byte element, in a shuffled order, with reads that do not depend on one another, so that many cache misses can be in flight at once. It is the throughput of random reads, not the latency of one.

What it does not measure

  • It is not the latency of one read. Each read's address comes from the shuffled order, not from the read before it, so the reads can overlap; nothing records whether they did.
  • Each repetition also reads the shuffled order front to back, 8 bytes per element.
  • Bytes per second counts the 64 bytes of every element the loop reads from, of which the thread uses 8.

The whole method, on its page →

c8i.2xlarge

Beat this hot path on GitHub ↗