LedgerMath

Math

A napkin-math scratchpad: compose a request from live operations, and see what it adds up to in time and in dollars.

Your scratchpad, not a published figure. Every operation's P50, P99, rate and unit cost below is a live LedgerMath figure, as its Method derived it. Every total is your arithmetic on them, under the assumptions listed at the end: it is not a Derivation of any LedgerMath Method.

Presets

Workload

Each row is one step of a request; steps run one after another, and their percentiles are added, a rough heuristic rather than a bound.

  1. P50
    ≥ 22.9 ms
    P99
    ≥ 33.4 ms
    Per request
    $0.0000064

    slowest of 16: at least one op's P50 and P99; 1 − 0.99^16 = 14.9% of requests wait past one op's P99 (independence assumed)

    16 × $0.4 / 10⁶ requests

  2. P50
    58.4 ms
    P99
    58.4 ms
    Per request
    $0.0000111

    64 MiB ÷ 1.15 GB/s

    0.0671 GB × $0.5968 per GB/s·h / 3,600 s

  3. P50
    408 µs
    P99
    569 µs
    Per request
    —

    P50 2 × 204 µs · P99 2 × 285 µs

    priced per GB moved, and a round trip's bytes are not measured: use a data volume row of Cross-AZ transfer

Traffic

Per request, and per month

Sum of P50s
≥ 81.8 ms
Sum of P99s
≥ 92.4 ms
Cost per request
$0.0000175
Requests per month
262,800,000
Monthly AWS cost
$4,606

2 of 3 rows priced

What the totals assume

What they leave out

Operations

Each is one row of the home timetable, on the machine its Reference stack names: the figures are the Series', as the Methods derived them.

CPU & memory

OperationMachineP50P99RateUnit cost
Memory read, sequential, one thread per 1 GiB passc8i.2xlarge53.89 ms—19.93 GB/s$0.0186 /GB/s·h
Decode bit-packed integers per 256 B blockc8i.2xlarge24.30 ns—42.13 GB/s$0.00904 /GB/s·h
SHA-256 of 64 B per hashc8i.2xlarge76.69 ns—834.5 MB/s$0.00000798 /1M ops
Sort 1 MiB per 1 MiB sortc8i.2xlarge1.680 ms—624.0 MB/s$0.175 /1M ops

Storage

OperationMachineP50P99RateUnit cost
NVMe random readi4i.2xlarge119.3 µs142.3 µs—$0.839 /10k IOPS·h
NVMe sequential read per 8 KiB preadi4i.2xlarge7.134 µs—1.148 GB/s$0.597 /GB/s·h
EBS gp3 random readc8i.2xlarge342.0 µs733.3 µs—$1.25 /10k IOPS·h

Network

OperationMachineP50P99RateUnit cost
Same-AZ RTTc8g.2xlarge78.46 µs116.2 µs—$0 /GB moved
Cross-AZ RTTc8g.2xlarge203.8 µs284.7 µs—$0.02 /GB moved
Cross-AZ transfer per 128 MiB samplec8g.2xlarge83.59 ms—1.607 GB/s$0.02 /GB moved
Cross-Region RTT, to eu-west-1c8i.2xlarge78.12 ms91.75 ms——

Object storage (S3)

OperationMachineP50P99RateUnit cost
S3 Standard GET 4 KiBc8i.2xlarge22.94 ms33.42 ms—$0.4 /1M req
S3 Express GET 4 KiBc8i.2xlarge4.489 ms5.538 ms—$0.03 /1M req
S3 Standard PUT 4 KiBc8i.2xlarge24.51 ms31.33 ms—$5 /1M req
S3 Standard GET throughputc8i.2xlarge509.6 ms2.188 s1.829 GB/s$0.205 /GB/s·h
S3 Standard HEADc8i.2xlarge9.896 ms32.13 ms—$0.4 /1M req