LedgerMath
← All benchmarksHow memory_write works

Write memory

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

CPU
Order
Order
CompareMachineVariantP50P99RateUnit costRuns
c8a.2xlarge32.45 ms—33.09 GB/s$0.013 /GB/s·h89
c8g.2xlarge37.64 ms—28.53 GB/s$0.0111 /GB/s·h4
i4g.2xlarge57.21 ms—18.77 GB/s$0.0329 /GB/s·h4
c8i.2xlarge60.81 ms—17.66 GB/s$0.0206 /GB/s·h89
c6i.8xlarge92.98 ms—11.55 GB/s$0.117 /GB/s·h89
i4i.2xlarge94.87 ms—11.32 GB/s$0.0611 /GB/s·h89
m6id.2xlarge95.47 ms—11.25 GB/s$0.0422 /GB/s·h1
m5.large107.5 ms—9.990 GB/s$0.00947 /GB/s·h91
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 a buffer is written, front to back or in random order, one 64-byte element at a time (two 32-byte AVX2 stores, then a read of the element's last word), by one thread or by one pinned thread per allowed CPU.

What it does not measure

  • Each element's last 8-byte word is read back right after the element is written, so a repetition is not stores alone.
  • The stores are ordinary AVX2 stores, not non-temporal ones, so each line written is first read into the cache (a read for ownership) unless the processor avoids it.
  • random also reads the shuffled order front to back, 8 bytes per element, during each repetition. With threads all, each thread's order covers only its own slice: the writes are random within a slice, not across the buffer.

The whole method, on its page →

c8i.2xlarge · sequential

No excerpt for these settings: read the benchmark's source on GitHub ↗

Configuration

  • benchmarkmemory_write
  • buildstatic
  • instancec8i.2xlarge
  • regionus-east-2
  • azuse2-az3
  • params.ordersequential
  • params.size_bytes1073741824
  • params.threads1

Beat this hot path on GitHub ↗