LedgerMath
← All benchmarksHow memory_read works

Read memory sequentially

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

Build
CPU
Path
Threads
Order
CompareMachineVariantP50P99RateUnit costRuns
c8a.2xlarge23.25 ms—46.18 GB/s$0.00926 /GB/s·h89
c8i.2xlarge53.89 ms—19.93 GB/s$0.0186 /GB/s·h89
c6i.8xlarge77.03 ms—13.94 GB/s$0.0975 /GB/s·h91
i4i.2xlarge78.47 ms—13.68 GB/s$0.0531 /GB/s·h89
m6id.2xlarge80.77 ms—13.29 GB/s$0.0357 /GB/s·h1
m5.large85.85 ms—12.51 GB/s$0.00767 /GB/s·h91
Compared:m5.largec8i.2xlargec8a.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 a buffer of 64-bit words is read front to back and summed, on one unpinned thread or on one pinned thread per allowed CPU, with a hand-written x86 scalar loop or with AVX2 loads. Whether the buffer comes from memory or from cache depends on its size and the machine.

What it does not measure

  • Whether the buffer is read from memory or from cache depends on size_bytes and on the machine's caches. A size that fits in a cache gives a cache figure, not a memory figure. The Run's dump sections lscpu and sys_cpu record the cache sizes.
  • threads 1 is one unpinned thread: it is not what the whole box can read.
  • The figure is of these two loops. A program that reads memory with other code is not measured here.

The whole method, on its page →

c8a.2xlarge · static · avx2 · 1 thread

Beat this hot path on GitHub ↗