# From a question to a number you can cite

How to answer a question about the cost or speed of work on AWS from LedgerMath's data: find the measured figure and the price that fit the question, read them rightly, build the estimate, and cite every number so that another reader can check it.

You need nothing but a way to fetch a URL. LedgerMath gives you no program to install or run: every file named here is a static file at `https://api.ledgermath.com`, fetched with `curl` or any other client. The API's files, the Run files and the boot summaries are JSON; a blob, such as a Run's binary or its stdout, is the bytes its hash names.

A question about a price alone, such as what an instance hour or a GB sent to the internet costs, needs no measured figure: go straight to [Find a price](#find-a-price).

## What LedgerMath holds, and what it does not

LedgerMath runs small benchmarks on real AWS machines several times a day and keeps every execution as a Run. A Series is the Runs of one benchmark, parameter set, build, instance type and Availability Zone ID; a versioned Method turns a Series' Runs into figures. Beside them, LedgerMath keeps at most one price file a day: AWS's public On-Demand prices for what it measures, in AWS's own words.

- **Measured figures** for small operations, such as reading memory, hashing, sorting, system calls, a mutex, loopback TCP, disk reads and writes, and HTTPS GETs from S3, on the instance types listed on [Machines](/docs/machines), which also says which benchmarks run on some types only. Each benchmark has a page of its own, such as [memory_read](/docs/benchmarks/memory_read).
- **AWS's prices** that LedgerMath's rules select. Rule set 1 selects each measured instance type's On-Demand Linux price by the hour, EBS gp3 storage, IOPS and throughput, S3 Standard storage and requests, and data sent out of the Region to the internet. See [Prices](/docs/prices).
- **No measured figure for anything LedgerMath has not measured.** On 2026-11-26 that meant, among others, a network between two machines, a CDN, a GPU, any Region but `us-east-2`, and any provider but AWS. Nor any price but AWS's public On-Demand price: no Reserved Instance, Savings Plan or Spot price, no negotiated or private rate, no tax ([Prices](/docs/prices), "What is not held").

**What has been measured** is in the files themselves. The table of contents names benchmarks' lists, as many as fit its budget, each by the benchmark's name (`benchmarks.list[].name`); `benchmarks.unlisted` counts the lists it does not name, and `benchmarks.left_out` the Series that are in no benchmark's list. A benchmark's list gives a row for each Series it lists, under `series`, and counts the ones it leaves out in `left_out`. The list of every Series, `https://api.ledgermath.com/v1/series.json`, has a row for every Series, each with its `benchmark`, `params`, `build`, `instance_type` and `availability_zone_id`, and its `newest_run_started_at`, which says how recently the Series was measured. For prices, a price file's `measured` gives the Region and the instance types its rules priced, and `sources[].selections[]` gives each rule with what it selects in words (`selects`): a price no rule selects is not in the file.

**How fresh the data are.** Each instance type is booted four times a day, at the times [Machines](/docs/machines) gives, and the API's files are rebuilt and published once after each round of boots: on 2026-11-27 the rebuild was scheduled at 00:05, 06:05, 12:05 and 18:05 UTC, about two hours after each round's first boot. A rebuild can start late or fail, and a boot's files can arrive after the rebuild that follows its round, so a Run can take longer to appear. The table of contents says what the files you fetched hold: `newest_run_started_at`, when the newest Run in them started, and `recent_rounds`, the newest rounds of boots, each with when it started and how many Runs its boots left.

LedgerMath does not estimate. You build the estimate from its numbers, and each number keeps its citation.

## Find a figure

Start from the table of contents, and follow the links each file gives: every address you need is written in the files, or made from a template the table of contents gives. The words used below, such as Run, Series, group and point, are defined in the [glossary](/docs/glossary).

Fetched with GET over HTTPS, an address the API holds no file at answers 403 when it has the shape of an address the API serves, such as a Series file, a Run file or a blob that does not exist, or a price file of a day with none; any other address answers 404. A request refused for coming too fast also answers 403.

1. Fetch the table of contents:

   ```
   curl -s https://api.ledgermath.com/v1/index.json
   ```

   `benchmarks.list[]` names benchmarks' lists, as many as fit its budget: each with the benchmark's name (`benchmarks.list[].name`), how many Series its list holds (`benchmarks.list[].series`) and the list's address (`benchmarks.list[].url`). `benchmarks.unlisted` counts the lists it does not name; each is still at `benchmarks.benchmark_file_url_template`, with the benchmark's name in place of `{benchmark}`. `series.url` is the address of the list of every Series; `prices.newest.url` is the newest price file's, and `prices.newest` is null when none is held. See [the table of contents](/docs/api/table-of-contents).

2. Read the benchmark's page, such as [memory_read](/docs/benchmarks/memory_read), before its numbers: what a figure means, what it does not show, and what each parameter changes.

3. Fetch the benchmark's list:

   ```
   curl -s https://api.ledgermath.com/v1/benchmarks/memory_read.json
   ```

   Its rows are under `series`, one per Series it lists: the Series' `series[].id`, `series[].params`, `series[].build`, `series[].instance_type` and `series[].availability_zone_id`; how many Runs it holds (`series[].runs`); a summary of each Method's figures (`series[].derivations`); and the address of the Series' file (`series[].url`). A benchmark's list may leave rows out, and says how many (`left_out`). The list of every Series, `https://api.ledgermath.com/v1/series.json`, holds every row, under `series` too. See [a benchmark's list](/docs/api/benchmark-list) and [the list of Series](/docs/api/series-list).

   **When the row is enough.** A row holds each Method's figures for the whole Series: for Method `series` v1, `series[].derivations.series_v1`, with its `percentiles` and each one's `count`, its `counted_runs` and `failed_runs`, and how many `groups` there are; for Method `requests` v1, `series[].derivations.requests_v1`, with its `pool`: the pool's `runs`, `requests` and `failed`, and each phase's statistics under `pool.phases`. To quote a figure of the whole Series, the row is enough, with its `newest_run_started_at` as the moment. Fetch the Series' file for a group's figures, the newest points, the Method's definitions, or a pool's histograms, failures and breakdowns.

4. Fetch the Series' file, at the row's `url`:

   ```
   curl -s https://api.ledgermath.com/v1/series/a655ffb3e7dd.json
   ```

   It holds each Method's figures beside the Method's own definitions, under `derivations.series_v1` (and `derivations.requests_v1` for a Series of requests): the Series' figures (`derivations.series_v1.percentiles`), its groups with each group's facts and figures (`derivations.series_v1.groups[]`), and the points of its newest Runs (`derivations.series_v1.newest_points[]`). `months[]` gives each month file's address (`months[].url`), sha256 (`months[].sha256`) and size (`months[].bytes`). See [a Series file](/docs/api/series).

   The table of contents, a benchmark's list, the list of every Series and a Series' file, fetched one after another, can be of different updates, and then disagree on a count or a row. Take each as true of its own update, and fetch them again later where they disagree.

5. To check a figure against its Runs, follow its evidence. Each month file (`months[].url`) holds the point of every Run of the Series that started that month (`derivations.series_v1.points[]`, and `derivations.requests_v1.points[]` for a Series of requests), and each point links its Run file (`evidence`). A Run file names its binary, its stdout and the dumps of the machine taken before and after it (`environment.before`, `environment.after`) by hash, each a blob at `https://api.ledgermath.com/blobs/sha256/<hex>`. A dump is an index naming its sections, each a blob too, such as `lscpu`, which records the processor, and `memory`, which holds the box's own `/proc/meminfo` ([the data API](/docs/api/) says what each section holds). See [a month file](/docs/api/series-month) and [a Run file](/docs/api/run).

   Before you use a month file, compare its sha256 with the one its Series file lists in `months[].sha256`. If they differ, fetch the Series file again, then the month file, and use neither while they still differ ([the data API](/docs/api/)).

## Choose the Series that fits

Several Series can look alike: on 2026-11-26, `memory_read` had eight Series on `c6i.8xlarge`, two builds by two read loops by one thread or all. Match the parts of a Series' key to the question, and say which Series you chose, by its id, and why:

- **The benchmark**: the work it measures. Its page's "What a figure means" and "What a figure does not show" say what one figure is, and what it is not.
- **The parameters** (`params`): its page's "Parameters" says what each one changes.
- **The build** (`build`): a named way of building the benchmark, such as `static` or `dynamic`. Two builds are two Series.
- **The instance type** (`instance_type`): the question's. When the question names none, say which you used and why, or give the range across types.
- **The Availability Zone ID** (`availability_zone_id`): the zone its Runs ran in.

Where two Series fit equally well, give both, or the range across them.

**Two benchmarks for one task.** Some work is measured in more than one way, and the figures differ. A file read from start to finish is measured by [disk_read_sequential](/docs/benchmarks/disk_read_sequential), one thread making buffered reads of 8 KiB with the kernel's readahead, and by [disk_read_io_uring](/docs/benchmarks/disk_read_io_uring) with `access` `sequential`, which keeps 64 reads of 32 KiB submitted with `O_DIRECT`. Read on each page what it measures; unless the question says how the program reads, give both, each with what it assumes of the program.

For example, for a question about scanning memory with a whole `c6i.8xlarge`, [memory_read](/docs/benchmarks/memory_read)'s page says:

- `threads`: `all` reads on one pinned thread per allowed CPU; `1` is one unpinned thread, which is not what the whole box can read.
- `path`: `avx2` reads with four 32-byte loads per step, `scalar` with a loop of five x86 instructions written in assembly. A figure is of these loops: a program that reads memory with other code is not measured. Choose the loop nearer your program's, and say so.
- `build`: on the `avx2` path, the check of 2026-11-18 found no difference between the two builds. On the `scalar` path they have given different figures on some Intel instance types; an investigation found the cause in where the loop lands in each binary, not in how it is linked. Never use the pair to say that one kind of linking is faster.
- `size_bytes`: whether the buffer is read from memory or from cache depends on its size and on the machine's caches, which a Run's dump sections `lscpu` and `sys_cpu` record. A size that fits in a cache gives a cache figure, not a memory figure.

## Read a figure rightly

Each Method publishes its own definitions in the API, and [Methods](/docs/methods) says, for each Method, what you need to quote its numbers. What matters most:

- **What a percentile is taken across.** Method `series` v1 derives every Series. A counted Run can give two numbers: its time per repetition (`time_per_repetition_ns`), the median over its counted samples, and bytes per second (`bytes_per_second`), where the benchmark observed bytes per repetition; [Methods](/docs/methods) gives when a counted Run's point shows either as null. Each counted Run gives at most one value of each, so the 5th, 50th and 95th percentiles (`p5`, `p50`, `p95`) are percentiles across Runs, not of samples or of requests, and their spread is the spread across Runs. Method `requests` v1 derives the Series of requests (on 2026-11-26, the 25 Series of `http_get`): each phase's 50th to 99.9th percentiles across the counted requests that succeeded and had that phase, within each Run and pooled across Runs. A failed request gives no time, nor does the warmup, so a Run whose failures were slow can still show a good 99th percentile among its successes ([Methods](/docs/methods)). A pooled percentile is read from summed histograms, within 0.78% of the exact one.
- **The count behind it.** A `series` v1 percentile comes with `count`, the Runs it was taken over. A pooled `requests` v1 phase comes with its `count` of requests (`pool.phases.<phase>.count`), beside the pool's `runs` (`pool.runs`), and each percentile reported comes with `at_or_above`, how many requests are ranked at or above it. Give the count with the figure, so that a reader sees how many Runs or requests it rests on.
- **Groups.** A Series' Runs are split into groups by facts recorded of each Run, such as the binary that ran, the runner and the machine image; the Method's `split_on` lists them all. The Series' percentiles mix every group, and `derivations.series_v1.groups` in its row says how many groups there are. The Series' file gives each group, under `derivations.series_v1.groups[]`, with its letter (`id`), its `facts`, its `counted_runs` and its `percentiles`. Version 1 does not say which group is current: the group of the Series' newest Run is the `group` of the last point in `derivations.series_v1.newest_points`, which are in time order. Which figures to quote:
  - A group's, when the question is about one setup and a group's `facts` match it, such as the binary and runner of the newest Run. Quote them with the group's letter, its count and the facts that set it apart.
  - The whole Series', when the question is about the benchmark on the instance type and names none of the facts the groups differ in. Say how many groups they mix. Where the groups' figures differ, the mix is no one setup's: compare them in the Series' file, and where the difference could change the answer, give each group's figures, or the range across them.
- **Null.** A null figure is not held; it is never a zero. Among the causes: no counted Run, for `time_per_repetition_ns`; no counted Run that observed bytes per repetition, for `bytes_per_second` (on 2026-11-26, every Series of `http_get`, `mutex` and `syscall`); too few requests for a `requests` v1 percentile, which needs 2 for a 50th, 10 for a 90th, 20 for a 95th, 100 for a 99th and 1000 for a 99.9th. A phase no request had, such as `dns`, `connect` and `tls` over a reused connection, is absent. Never fill a null from another figure: say the figure is not held, and why. [Methods](/docs/methods) gives every case.
- **Units.** A duration is in nanoseconds of the Run's clock unless its field's name says otherwise. Bytes per second are bytes per second. A price is per its own `unit`, in AWS's words.
- **Runs a Method does not count.** Each Method decides which Runs it counts. A Run one Method does not count is still shown, as a point with `counted: false` and why, and is left out of that Method's figures; another Method may count it. An `http_get` Run that exited 4 is not counted by `series` v1, and can be by `requests` v1. `counted` and `failed_runs` are each Method's own.

## Find a price

1. The table of contents lists every price file (`prices.files[]`, oldest first) and the newest (`prices.newest`), each with its `date`, its `path` and its `url`. Fetch the file at its `url`:

   ```
   curl -s https://api.ledgermath.com/v1/prices/2026-11-26.json
   ```

   A price file's `path`, `prices/<yyyy>/<mm>/<dd>/aws.json`, is the name a citation gives it, not an address: at the API it answers 404. The file is at `https://api.ledgermath.com/v1/prices/<yyyy>-<mm>-<dd>.json`, the `url` beside that `path`.

2. Find a price by the name of the rule that selected it, not by searching AWS's words: in the file of 2026-11-26, a search for "storage" also finds every instance type's product. A file has one entry in `sources[]` for each AWS offer it read. In each, `sources[].selections[]` holds the rules that selected from that offer, each with its `rule`, what it selects in words (`selects`) and the SKUs it selected (`skus`). In the same source as the selection, the product is `sources[].products[<sku>]`, and its prices are under `sources[].terms.OnDemand[<sku>]`: each term at `<sku>.<offerTermCode>`, and in it one price dimension per rate code, under `priceDimensions`. [Prices](/docs/prices) lists the rules, such as `ec2-instance-on-demand-linux` for an instance's hour, `data-transfer-out-to-internet` for data sent out to the internet and `s3-standard-requests` for S3 requests.

3. Read `pricePerUnit` against its `unit`, not against AWS's `description`, which can state the same price per another quantity. In the file of 2026-11-26, the S3 GET price is `0.0000004000` USD per `Requests`, which its description gives per 10,000 requests.

4. **Tiers.** In the file of 2026-11-26, each price with tiers is one product whose On-Demand term holds one price dimension per tier, each with its own rate code, its `beginRange` and `endRange`, and its price; AWS's descriptions give the tiers per month. LedgerMath applies no tier and states no rule for how AWS applies them. Cite each tier you use, with its bounds, and say in words how you applied them, as an assumption. For data sent out to the internet, that includes how you combine the global free tier, a record of its own, with the Region's tiers; [Prices, "Tiers"](/docs/prices#tiers), says what the records show.

5. **AWS's words.** The price files give `GB`, `GB-Mo` and every other unit as AWS writes them; [Prices](/docs/prices) says what is, and what is not, published about how many bytes AWS's GB is. An instance type's product also carries AWS's catalog words, such as `memory` ("64 GiB" for `c6i.8xlarge` in the file of 2026-11-26) and `vcpu`. They are AWS's text, not LedgerMath's measurements: quote them as AWS's, and mark your reading of one as a number as your assumption. What a box itself recorded, such as its processor (dump section `lscpu`) and the memory its kernel reports (dump section `memory`), is in each Run's environment dump, and can differ from AWS's words; the fleet example below uses the dump.

A price being held does not mean LedgerMath measures what it prices, and a price file holds only the records its rules select.

## Build the estimate

1. **Write the model** as a few factors with units, such as cost = downloads × size × price per GB.
2. **Fill each factor** with a number from LedgerMath and its citation, a quantity from the question, or an assumption, marked as one, with where it comes from. A quantity the question leaves to you, such as the size of an update, is an assumption. When the answer needs a measurement LedgerMath does not hold, see below.
3. **Check that each figure fits what you use it for.** Read the benchmark's "What a figure does not show". Many machines, each doing on its own the work one box was measured doing, is a model you may state for a rate or a capacity: the rate or capacity of one box times a count of machines, with the assumption, said, that each does what the measured box did and that nothing between them is counted. A time or a percentile is not multiplied so: two machines each taking 10 ms a request do not take 20 ms. Using a figure for work LedgerMath did not measure is not a model: one thread's figure for a whole machine, one input size's for another, a loopback figure for a network, one instance type's for another, a client sending one request at a time for one under load, AWS's catalog words for a measurement. When the answer needs such a figure, LedgerMath does not hold the answer: see [When LedgerMath does not hold the answer](#when-ledgermath-does-not-hold-the-answer). A number worked from one is a scenario, stated as one, and never a bound on the true answer.
4. **Check capacity as well as rate.** Where data must be held somewhere, in memory or on a disk, count the machines its size needs as well as those the rate needs, and take the larger. Some questions can be read both ways: "scan 10 TB a second" is a rate, and can also be a 10 TB data set that must fit in memory. Say which reading you answer, or answer both.
5. **Show the arithmetic**, one operation per line (one ×, ÷, + or −, a total of terms added, or the larger of counts), every operand in digits with its unit. Round a count of machines up.
6. **Give a range.** For Method `series` v1, carry the 5th and the 95th percentile through the same arithmetic as the 50th: for a time, the slow end is the 95th percentile; for a rate, such as bytes per second, it is the 5th. Method `requests` v1 gives no 5th percentile: each phase gives its 50th, 90th, 95th, 99th and 99.9th percentiles where enough requests support them, and its least and greatest times (`min`, `max`); a range needs two percentiles that are both held, and how many requests each needs is in the table on [Methods](/docs/methods#the-fewest-requests-for-each-percentile). Where an assumption decides the answer, such as the size of an update, work the answer at more than one value of it, and give the range. Name what dominates the uncertainty.
7. **Never state a number LedgerMath does not hold as if it did.** An assumption is never written as a measurement, and AWS's catalog words are never written as LedgerMath's.

## What a citation names

A citation tells another reader where a number came from. As [Methods](/docs/methods) gives it, a figure's citation names:

- the Series' id, and the key of the Method: `series_v1` or `requests_v1`;
- the figure by its place: for example `percentiles.bytes_per_second.p50`, or `pool.phases.total.p99`;
- the group's letter, when the figure is a group's;
- the count behind it: for a `series` v1 percentile, its `count`; for a pooled `requests` v1 phase percentile, the phase's `count` and the pool's `runs`; for one Run's own, the phase's `count` and the Run;
- the unit: nanoseconds of the Run's clock for a time, bytes per second for bytes per second;
- the moment: the Series' `newest_run_started_at`, in its file or its row, when you read the figure. It helps a later reader find the state of the Series you read, but does not pin it: a Run that arrives late, having started before the Series' newest, can change a figure while `newest_run_started_at` stays the same. If an exact check matters, keep the values you read.

For example:

```
Series a655ffb3e7dd, series_v1, percentiles.bytes_per_second.p50: 145497618462.33847 bytes per second, count 63, as of 2026-11-26T16:13:49.030665839Z
```

A price is cited by the price file's path, the SKU and the rate code, and a tier's bounds by the same price dimension's `beginRange` and `endRange` ([Prices](/docs/prices)). The path holds the file's date, which says which day's price you used; it is a name, and the file's address is the `url` the table of contents gives beside it:

```
prices/2026/11/26/aws.json, SKU NKB8DU47ZKKBXW65, rate code NKB8DU47ZKKBXW65.JRTCKXETXF.6YS6EN2CT7: 1.3600000000 USD per Hrs
```

A record from a Run's environment dump is cited by the Run's id, the dump (`environment.before` or `environment.after`), the section and what in it you read, such as `MemTotal` in `/proc/meminfo`. A Run file and its blobs are never edited.

An assumption says where it comes from: "20 GB (assumption: the size of the update)".

## When LedgerMath does not hold the answer

When the answer turns on a measurement or a price LedgerMath does not hold:

1. Say so first, plainly.
2. Name the nearest thing it does hold, and say why it is not the same thing.
3. Stop. Do not put an assumed or adjusted number in the missing one's place, and do not scale the nearest figure to stand for it. Say what would have to be measured.

A number you work from an assumption about what is missing, such as "if the second hardware thread doubled the rate", is a scenario, not a measurement. If you give one, say that it is not measured, and never offer it as the answer, or as a bound on the true answer: nothing measured shows on which side of it the true answer lies.

When the question can also be answered for a design LedgerMath does price, you may answer it for that design: say so as an assumption, and say what is not priced. The first example below prices an update sent straight from S3, and says that a CDN is not priced.

## Worked examples

Each example takes its numbers from LedgerMath's fixed sample of the API: a copy of the API's files as they were on 2026-11-26, kept with LedgerMath's source ([on GitHub](https://github.com/smrdotgg/ledgermath/tree/main/docs/api-sample)), so that every number in the examples can be checked against the file it came from. Each example names the address of each file it read. A live address serves today's file, so your figures can be newer; a price file, a Run file and a blob are never edited, so their addresses serve the same bytes. Every input is in a table with where it comes from, every result is worked in the lines below it, one operation a line, and the answer names each result by its line.

<details>
<summary>Example: the cost of sending a game update to 30 million players, at a price with tiers</summary>

**Question.** What would it cost to distribute a new update of a large game to 30 million players?

This question needs prices only: in this model the cost is per GB sent and per request, so no Series is used. The prices are from the price file `https://api.ledgermath.com/v1/prices/2026-11-26.json`, path `prices/2026/11/26/aws.json`, as LedgerMath's fixed sample took it on 2026-11-26. A price file is never edited, so that address serves the same file.

**Model.** cost = transfer cost + request cost. The transfer is players × downloads per player × size, priced tier by tier after the global free tier. The requests are players × downloads per player × requests per download × the price of a GET request.

**Assumptions.** The update is served from S3 Standard in `us-east-2` straight to the players, and is charged as data sent out of the Region to the internet: the price file holds no record of S3's own for data sent out, and does not say whether a download from S3 is billed under this one. Every download falls in one calendar month, the period AWS's descriptions give the tiers. Nothing else goes out to the internet that month. AWS counts the global free tier first and applies the Region's tiers, from their start, to the rest: the free tier's price dimension lists the Region's transfer product, SKU `36H7S3NU9B7S3UT5`, among the SKUs it applies to (`appliesTo`), and AWS describes the Region's first tier as beyond the global free tier, but LedgerMath states no rule for how AWS applies them, so this order is an assumption. The question gives no size for the update, and the size decides the cost, so the answer is worked at three sizes. Each download is one GET request; a launcher that fetches the update in pieces makes a request for each piece, and the answer works that too.

| Input | Value | From |
|---|---|---|
| Players | 30000000 | the question |
| Downloads per player | 1 | assumption: each player downloads the update once |
| Size of the update | 20 GB | assumption: the size of one download, in the unit of the price |
| Size of the update, small | 5 GB | assumption: a smaller update, in the unit of the price |
| Size of the update, large | 50 GB | assumption: a larger update, in the unit of the price |
| GET requests per download | 1 Requests | assumption: one GET request for each download, in the unit of the price |
| GET requests per download, in pieces | 20000 Requests | assumption: a launcher that fetches the 20 GB update in 20000 pieces, one GET request each |
| Global free tier, bounds | 0 to 100 GB | `prices/2026/11/26/aws.json`, SKU `PB257JUQ8U6E6UPM`, rate code `PB257JUQ8U6E6UPM.A429C66SYZ.ETY2894C67`, `beginRange` to `endRange` |
| Global free tier, price | 0.0000000000 USD per GB | `prices/2026/11/26/aws.json`, SKU `PB257JUQ8U6E6UPM`, rate code `PB257JUQ8U6E6UPM.A429C66SYZ.ETY2894C67`, `pricePerUnit.USD` |
| Tier 1, bounds | 0 to 10240 GB | `prices/2026/11/26/aws.json`, SKU `36H7S3NU9B7S3UT5`, rate code `36H7S3NU9B7S3UT5.JRTCKXETXF.Q3Z75P77EN`, `beginRange` to `endRange` |
| Tier 1, price | 0.0900000000 USD per GB | `prices/2026/11/26/aws.json`, SKU `36H7S3NU9B7S3UT5`, rate code `36H7S3NU9B7S3UT5.JRTCKXETXF.Q3Z75P77EN`, `pricePerUnit.USD` |
| Tier 2, bounds | 10240 to 51200 GB | `prices/2026/11/26/aws.json`, SKU `36H7S3NU9B7S3UT5`, rate code `36H7S3NU9B7S3UT5.JRTCKXETXF.VF6T3GAUKQ`, `beginRange` to `endRange` |
| Tier 2, price | 0.0850000000 USD per GB | `prices/2026/11/26/aws.json`, SKU `36H7S3NU9B7S3UT5`, rate code `36H7S3NU9B7S3UT5.JRTCKXETXF.VF6T3GAUKQ`, `pricePerUnit.USD` |
| Tier 3, bounds | 51200 to 153600 GB | `prices/2026/11/26/aws.json`, SKU `36H7S3NU9B7S3UT5`, rate code `36H7S3NU9B7S3UT5.JRTCKXETXF.N9EW5UVVPA`, `beginRange` to `endRange` |
| Tier 3, price | 0.0700000000 USD per GB | `prices/2026/11/26/aws.json`, SKU `36H7S3NU9B7S3UT5`, rate code `36H7S3NU9B7S3UT5.JRTCKXETXF.N9EW5UVVPA`, `pricePerUnit.USD` |
| Tier 4, bounds | 153600 to Inf GB | `prices/2026/11/26/aws.json`, SKU `36H7S3NU9B7S3UT5`, rate code `36H7S3NU9B7S3UT5.JRTCKXETXF.GPHXDESFBB`, `beginRange` to `endRange` |
| Tier 4, price | 0.0500000000 USD per GB | `prices/2026/11/26/aws.json`, SKU `36H7S3NU9B7S3UT5`, rate code `36H7S3NU9B7S3UT5.JRTCKXETXF.GPHXDESFBB`, `pricePerUnit.USD` |
| S3 GET request, price | 0.0000004000 USD per Requests | `prices/2026/11/26/aws.json`, SKU `DJEKB32FV4HNZJZY`, rate code `DJEKB32FV4HNZJZY.JRTCKXETXF.6YS6EN2CT7`, `pricePerUnit.USD` |

```
Downloads: 30000000 × 1 = 30000000
Free tier, width: 100 GB − 0 GB = 100 GB
Free tier: 100 GB × 0 USD per GB = 0 USD
Tier 1, width: 10240 GB − 0 GB = 10240 GB
Tier 1: 10240 GB × 0.09 USD per GB = 921.6 USD
Tier 2, width: 51200 GB − 10240 GB = 40960 GB
Tier 2: 40960 GB × 0.085 USD per GB = 3481.6 USD
Tier 3, width: 153600 GB − 51200 GB = 102400 GB
Tier 3: 102400 GB × 0.07 USD per GB = 7168 USD
Free tier and tiers 1 to 3: 0 USD + 921.6 USD + 3481.6 USD + 7168 USD = 11571.2 USD
Transfer in the month: 30000000 × 20 GB = 600000000 GB
Beyond the free tier: 600000000 GB − 100 GB = 599999900 GB
In tier 4: 599999900 GB − 153600 GB = 599846300 GB
Tier 4: 599846300 GB × 0.05 USD per GB = 29992315 USD
Transfer cost: 11571.2 USD + 29992315 USD = 30003886.2 USD
GET requests: 30000000 × 1 Requests = 30000000 Requests
GET requests cost: 30000000 Requests × 0.0000004 USD per Requests = 12 USD
Cost: 30003886.2 USD + 12 USD = 30003898.2 USD
GET requests, in pieces: 30000000 × 20000 Requests = 600000000000 Requests
GET requests cost, in pieces: 600000000000 Requests × 0.0000004 USD per Requests = 240000 USD
Cost, in pieces: 30003886.2 USD + 240000 USD = 30243886.2 USD
Transfer in the month, small: 30000000 × 5 GB = 150000000 GB
Beyond the free tier, small: 150000000 GB − 100 GB = 149999900 GB
In tier 4, small: 149999900 GB − 153600 GB = 149846300 GB
Tier 4, small: 149846300 GB × 0.05 USD per GB = 7492315 USD
Transfer cost, small: 11571.2 USD + 7492315 USD = 7503886.2 USD
Cost, small: 7503886.2 USD + 12 USD = 7503898.2 USD
Transfer in the month, large: 30000000 × 50 GB = 1500000000 GB
Beyond the free tier, large: 1500000000 GB − 100 GB = 1499999900 GB
In tier 4, large: 1499999900 GB − 153600 GB = 1499846300 GB
Tier 4, large: 1499846300 GB × 0.05 USD per GB = 74992315 USD
Transfer cost, large: 11571.2 USD + 74992315 USD = 75003886.2 USD
Cost, large: 75003886.2 USD + 12 USD = 75003898.2 USD
Cost of each GB of update size: 30000000 × 0.05 USD per GB = 1500000 USD per GB
```

**Answer.**

- Cost: 30003898.2 USD, about 30.0 million USD, to send a 20 GB update to 30 million players in one month, with one GET request per download.
- Cost, small: 7503898.2 USD, about 7.5 million USD, for a 5 GB update.
- Cost, large: 75003898.2 USD, about 75.0 million USD, for a 50 GB update.
- Cost, in pieces: 30243886.2 USD, for the 20 GB update fetched in pieces.
- Transfer cost: 30003886.2 USD.
- GET requests cost: 12 USD.
- GET requests cost, in pieces: 240000 USD.
- Cost of each GB of update size: 1500000 USD per GB, while the month's transfer stays in the last tier.

The update's size, an assumption, decides the result; the requests of a launcher that fetches in pieces change it far less, at the pieces assumed here. LedgerMath holds no CDN price, so an update sent through a CDN is not priced here, and it measures nothing of how fast S3 can send the update to so many players.

</details>

<details>
<summary>Example: how many machines a rate and a data set need, and their cost an hour (a fleet)</summary>

**Question.** How many `c6i.8xlarge` does it take to scan a 10 TB data set, held in memory, once a second, and what does that cost an hour?

The question binds two ways: the rate, 10 TB read each second, and the capacity, 10 TB held in memory at once. Count the machines each one sets, round each count up, and take the larger. The model is many machines, each reading its own share on its own at the rate one measured box read, with nothing between them counted. The figures are from the list of every Series, `https://api.ledgermath.com/v1/series.json`, and the prices from the price file `https://api.ledgermath.com/v1/prices/2026-11-26.json`, as LedgerMath's fixed sample took them on 2026-11-26. The memory of one box is from the environment dump of the Series' newest Run in that list: its Run file, `https://api.ledgermath.com/runs/2026/11/26/01a218a2-7266-7944-8543-12fe31110096.json`; the index of the dump taken before it, `https://api.ledgermath.com/blobs/sha256/0060de111e13e07b23bdcc90d41f07e9bc200c747bd45d8f6dc1c7098a3fa2a4`; and the dump's section `memory`, `https://api.ledgermath.com/blobs/sha256/5583c937aba5da5f163b6281cf5f7aed1e6ff90e399fe3c86fe4f16bf7811f6a`, which holds the box's own `/proc/meminfo`. The list changes as Runs arrive; a price file, a Run file and a blob are never edited.

**The Series.** [memory_read](/docs/benchmarks/memory_read) on `c6i.8xlarge`, Series `a655ffb3e7dd`: `threads` `all`, since the whole box reads; `path` `avx2`, the vector loop; build `static`, the check of 2026-11-18 having found no difference between the two builds on the `avx2` path. Its buffer, 1073741824 bytes, is larger than this type's caches as a Run's `lscpu` dump section records them, so it gives a memory figure, not a cache figure; that the same rate holds for the far larger share of the data each box holds is an assumption. The benchmark reads each word and adds it to a sum: a scan that does more with each byte, or reads with other code, is not what was measured, and the answer says so.

**Groups.** The Series has 3 groups, and its row's percentiles mix them. This example quotes the figures of the whole Series: the question is about the instance type, and names none of the facts the groups differ in. It does not compare the groups' figures, which the Series' file gives and the list does not, because the rate does not decide the answer: the counts it sets are far below the count the capacity sets.

| Input | Value | From |
|---|---|---|
| Data set | 10 TB | the question |
| Scans | 1 per second | the question |
| Bytes in a TB | 10^12 bytes per TB | assumption: the question's TB read as 10^12 bytes |
| Read rate, 5th percentile | 133397432303.20653 bytes per second | Series `a655ffb3e7dd`, `series_v1`, `percentiles.bytes_per_second.p5`, count 63, as of `2026-11-26T16:13:49.030665839Z` |
| Read rate, 50th percentile | 145497618462.33847 bytes per second | Series `a655ffb3e7dd`, `series_v1`, `percentiles.bytes_per_second.p50`, count 63, as of `2026-11-26T16:13:49.030665839Z` |
| Read rate, 95th percentile | 149821518147.55743 bytes per second | Series `a655ffb3e7dd`, `series_v1`, `percentiles.bytes_per_second.p95`, count 63, as of `2026-11-26T16:13:49.030665839Z` |
| Groups | 3 | Series `a655ffb3e7dd`, `series_v1`, `groups`, as of `2026-11-26T16:13:49.030665839Z` |
| Buffer | 1073741824 bytes | Series `a655ffb3e7dd`, `params.size_bytes` |
| Memory of one box, as its kernel reported it | 64776680 kB | Run `01a218a2-7266-7944-8543-12fe31110096` of Series `a655ffb3e7dd`, `environment.before`, section `memory`, `/proc/meminfo`, `MemTotal` |
| Bytes in a kB | 1024 bytes per kB | assumption: the kernel's `kB` in `/proc/meminfo` read as 1024 bytes; LedgerMath does not state it |
| Memory of one box, AWS's catalog words | 64 GiB | AWS's catalog words: `prices/2026/11/26/aws.json`, SKU `NKB8DU47ZKKBXW65`, `attributes.memory` |
| Bytes in a GiB | 2^30 bytes per GiB | assumption: AWS's "GiB" read as 2^30 bytes |
| Share of memory that holds data | 1 | assumption: all of it; if the program needs room of its own, take less, and the count rises |
| Price of one box | 1.3600000000 USD per Hrs | `prices/2026/11/26/aws.json`, SKU `NKB8DU47ZKKBXW65`, rate code `NKB8DU47ZKKBXW65.JRTCKXETXF.6YS6EN2CT7`, `pricePerUnit.USD` |

```
Bytes in the data set: 10 TB × 10^12 bytes per TB = 10000000000000 bytes
Bytes to read each second: 10000000000000 bytes × 1 per second = 10000000000000 bytes per second
Boxes for the rate, 50th percentile: 10000000000000 bytes per second ÷ 145497618462.33847 bytes per second = 68.73 → 69 (rounded up)
Boxes for the rate, 95th percentile: 10000000000000 bytes per second ÷ 149821518147.55743 bytes per second = 66.75 → 67 (rounded up)
Boxes for the rate, 5th percentile, the slow end: 10000000000000 bytes per second ÷ 133397432303.20653 bytes per second = 74.96 → 75 (rounded up)
Bytes of memory in one box: 64776680 kB × 1024 bytes per kB = 66331320320 bytes
Bytes one box holds for data: 66331320320 bytes × 1 = 66331320320 bytes
Boxes for the capacity: 10000000000000 bytes ÷ 66331320320 bytes = 150.76 → 151 (rounded up)
Bytes in AWS's catalog memory: 64 GiB × 2^30 bytes per GiB = 68719476736 bytes
Boxes for the capacity, on AWS's catalog words: 10000000000000 bytes ÷ 68719476736 bytes = 145.52 → 146 (rounded up)
Boxes: max(69, 151) = 151
Boxes at the slow end: max(75, 151) = 151
Cost an hour: 151 × 1.36 USD per Hrs = 205.36 USD per Hrs
```

**Answer.**

- Boxes: 151 `c6i.8xlarge`.
- Boxes at the slow end: 151.
- Cost an hour: 205.36 USD per Hrs.

Capacity decides the count:

- Boxes for the capacity: 151, the fewest boxes that hold 10 TB if every byte of the memory each box's kernel reported holds data.
- Boxes for the capacity, on AWS's catalog words: 146, fewer, because AWS's 64 GiB is more than the kernel reported; the box's own record is the better source.
- Boxes for the rate, 50th percentile: 69.
- Boxes for the rate, 95th percentile: 67.
- Boxes for the rate, 5th percentile, the slow end: 75.

The count assumes that every byte of memory holds data, and a real program leaves less: the kernel, the program and its own structures need memory too, and the count rises as the share that holds data falls. In the same `/proc/meminfo`, `MemAvailable` is lower than `MemTotal`; neither says how much a running program can hold. The counts the rate sets answer the question read as a rate alone, and are not the answer: so few boxes cannot hold 10 TB. The rate is that of `memory_read`'s loop, over 63 Runs in 3 groups; a scan that does more with each byte than add it to a sum is not what was measured.

</details>

<details>
<summary>Example: an answer LedgerMath does not hold</summary>

**Question.** What is the 99th-percentile round trip of a 32 KiB message between two `c6i.8xlarge` in the same zone?

**Answer.** Not held. On 2026-11-26 LedgerMath measured nothing between two machines, so it held no round trip between them, and no 99th percentile of one.

The nearest measurement it holds is [tcp_echo](/docs/benchmarks/tcp_echo) on `c6i.8xlarge`, Series `d58cd285010e`: the round trip of 32768 bytes over loopback TCP inside one process, 24605.69761657715 ns at the 50th percentile across 61 Runs, in 2 groups. It is from the list of every Series, `https://api.ledgermath.com/v1/series.json`, as LedgerMath's fixed sample took it on 2026-11-26. It is not the same thing:

- Loopback involves no network card and no other machine, so it is not a figure for traffic between two machines.
- Each sample times many round trips together, and a Run's figure is the median of its samples' time per round trip; the Series gives the 5th, 50th and 95th percentiles of those across Runs. No 99th percentile of single round trips is held.

So the answer stops here. Do not scale the loopback figure, or add an assumed network time to it, to stand for the round trip asked about, and give no range for it either. What would have to be measured is a round trip between two instances, each one timed, so that a 99th percentile of single round trips could be taken.

| Input | Value | From |
|---|---|---|
| Message | 32 KiB | the question |
| Loopback round trip, 50th percentile across Runs | 24605.69761657715 ns | Series `d58cd285010e`, `series_v1`, `percentiles.time_per_repetition_ns.p50`, count 61, as of `2026-11-26T16:17:51.492430622Z` |
| Bytes sent and echoed back each round trip | 32768 bytes | Series `d58cd285010e`, `params.size_bytes` |
| Groups | 2 | Series `d58cd285010e`, `series_v1`, `groups`, as of `2026-11-26T16:17:51.492430622Z` |

</details>

## All pages

### API reference

- [The data API](/docs/api/): LedgerMath's data API, at `https://api.ledgermath.com`, is a tree of static JSON files: the table of contents, the list of every Series, the benchmarks' lists, a file per Series and per month of it, and the price files, at most one a day, each kind with a JSON schema, which a reader reaches by following links from the table of contents; and, linked from them, the evidence behind the numbers: Run files, boot summaries and blobs.
- [The table of contents](/docs/api/table-of-contents): `v1/index.json` is where a reader of LedgerMath's data API starts. It gives the API's rules in words; the addresses of the list of every Series, of the price files and of the schemas; benchmarks' lists of Series with their counts, as many as fit its budget; templates for the address of a benchmark's list, of a Series file and of a blob; and the newest rounds of boots.
- [The list of Series](/docs/api/series-list): `v1/series.json` lists every Series, one row each with what the Series is, its counts, a summary of each Method's figures and the address of its own file, and gives each Method's own words for how its numbers are made, with the Run files the Method could not read.
- [A benchmark's list of Series](/docs/api/benchmark-list): `v1/benchmarks/<benchmark>.json` holds one benchmark's rows of the list of every Series, the same byte for byte when both files are of one update, so that a reader can find the benchmark's Series and their figures without fetching the whole list; it may leave rows out, and says how many (`left_out`).
- [A Series file](/docs/api/series): `v1/series/<id>.json` holds one Series: what it is, each Method's summary figures and definitions, the points of its newest Runs, and the list of its month files, each with the file's sha256 and size.
- [A month file](/docs/api/series-month): `v1/series/<id>/<yyyy-mm>.json` holds every point of the Runs of one Series that started in one month (UTC), each with its Run file's sha256 and address, and its boot summary's address when there is one the API can link; and Method `series` v1's entries of what differed between consecutive Runs.
- [A price file](/docs/api/prices): `v1/prices/<yyyy-mm-dd>.json` is one day's copy of AWS's public On-Demand prices for what LedgerMath measures: the records a versioned rule set selected from AWS's price lists, kept verbatim, added once and never edited.
- [A Run file](/docs/api/run): A Run file records one execution of one benchmark binary, with one parameter set, on one box, whether it succeeded or failed: the evidence each Method's figures rest on.
- [An event: one line of a Run's stdout](/docs/api/events): A benchmark prints a stream of events to its stdout, one JSON object per line; the events schema gives the shape of each line, and a Method counts a Run only when every line of its stdout has that shape.

### Benchmarks

- [memory_read](/docs/benchmarks/memory_read): 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.
- [memory_read_random](/docs/benchmarks/memory_read_random): 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.
- [memory_write](/docs/benchmarks/memory_write): How fast one thread writes a buffer, 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.
- [compressed_memory_read](/docs/benchmarks/compressed_memory_read): How fast one thread unpacks integers stored at a width of `bits` into 32-bit integers, the decode step of a compressed column, cycling through a pool of `blocks` blocks meant to come from memory rather than cache. Whether the pool exceeds the cache depends on the machine.
- [hash](/docs/benchmarks/hash): How long one thread takes to hash a 64-byte input with CRC32C, with SipHash-1-3 under a fixed key (the variant Rust's `DefaultHasher` uses), or with SHA-256, using the SHA extensions when the processor has them.
- [sort](/docs/benchmarks/sort): How fast one thread sorts 64-bit integer keys: a copy of `size_bytes` of unsorted keys, sorted by an LSD radix sort.
- [syscall](/docs/benchmarks/syscall): The cost of one call into the kernel on one thread (`getpid`, `getrusage`, and `stat`, whose cost depends on the file system that answers it, which each Run observes), beside `gettimeofday`, which the vDSO normally answers without entering the kernel; whether it did is not observed, and the Run's dump section `kernel` records the clock source.
- [mutex](/docs/benchmarks/mutex): What a critical section under a pthread mutex costs: uncontended on one thread, and with two threads contending for it on two physical cores or on the two hardware threads of one core.
- [tcp_echo](/docs/benchmarks/tcp_echo): 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.
- [disk_read_sequential](/docs/benchmarks/disk_read_sequential): Reading a file front to back the way a program does, on one thread: buffered `pread`s of `request_bytes` with the kernel's stock readahead, the kernel asked first to drop each sample's region from the page cache. It is a cold read when the eviction worked, which each Run records, where it can count them, as each sample's resident pages.
- [disk_read_random](/docs/benchmarks/disk_read_random): The latency of one `O_DIRECT` read of `request_bytes` from a disk, on one thread, with no other read of the binary's outstanding: from the root EBS volume, or from the instance's own NVMe disk on the instance types that have one.
- [disk_read_io_uring](/docs/benchmarks/disk_read_io_uring): How many reads a disk completes when one thread keeps `queue_depth` of them submitted, `O_DIRECT` through `io_uring`. In the Runs examined on EC2 the counted samples sat on the provider's throughput or IOPS limit for the disk, not on the device's own; the binary does not require a limit to bind, and where the dumps took them, the device's counters show the time spent over each limit.
- [disk_write](/docs/benchmarks/disk_write): What a buffered `pwrite` of `request_bytes` costs, on one thread, one write at a time: followed by `fdatasync` (the time until the device has the data) or by nothing (the buffered write alone). How the kernel and the device make the data durable is theirs, not the binary's; where the binary could read them, each Run observes the disk's write cache and FUA support.
- [http_get](/docs/benchmarks/http_get): How long an HTTPS GET of an object takes, from the box to the S3 endpoint its Service names, over a new connection per request or over one kept connection, one request at a time on one thread, each request after the first preceded by a pause whose mean is `gap_mean_ms`: a lightly loaded client. With `auth` `sigv4`, as scheduled, each request is signed before its clock starts; each phase it reaches (name resolved, connected, secured, request sent, first byte, headers, body) is an event, and the body of each 2xx response that ends without a failure is checked against the Fixture.

### Machines, Methods, prices and the glossary

- [Machines](/docs/machines): LedgerMath's schedule runs its benchmarks on 5 EC2 instance types, each booted fresh at fixed times of day in one Availability Zone: this page lists each type with its vCPUs, its zone and the times the schedule boots it. A boot started by hand may be at another time, or of another type.
- [Methods](/docs/methods): A Method is the versioned procedure that turns Runs into the numbers LedgerMath publishes. This page says, for each of the two Methods, what a reader needs to quote one of its numbers correctly: which Runs count, what is taken from each Run, how the figures across Runs are made, and when a figure is null.
- [Prices](/docs/prices): A price file is a day's copy of AWS's public On-Demand prices selected by LedgerMath's rules, holding AWS's own records verbatim. This page says which prices are kept, in which Region, currency and units, how tiers appear, how to cite a price, and what is not held.
- [Glossary](/docs/glossary): The words a reader of LedgerMath's data API meets, each defined in a sentence or two as the built system uses it, with where the reader meets it.
