# LedgerMath > Open-source benchmarks, run on real cloud machines every day. Every number links to the Runs behind it. The numbers are a data API of static JSON files, starting at https://api.ledgermath.com/v1/index.json. Each page below is plain Markdown; the same page as HTML is at its address without `.md` (without `index.md` for an address that ends in a slash). ## Start here - [From a question to a number you can cite](https://ledgermath.com/docs/index.md): 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. ## API reference - [The data API](https://ledgermath.com/docs/api/index.md): 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](https://ledgermath.com/docs/api/table-of-contents.md): 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](https://ledgermath.com/docs/api/series-list.md): 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](https://ledgermath.com/docs/api/benchmark-list.md): v1/benchmarks/.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](https://ledgermath.com/docs/api/series.md): v1/series/.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](https://ledgermath.com/docs/api/series-month.md): v1/series//.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](https://ledgermath.com/docs/api/prices.md): v1/prices/.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](https://ledgermath.com/docs/api/run.md): 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](https://ledgermath.com/docs/api/events.md): 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](https://ledgermath.com/docs/benchmarks/memory_read.md): 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](https://ledgermath.com/docs/benchmarks/memory_read_random.md): 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](https://ledgermath.com/docs/benchmarks/memory_write.md): 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](https://ledgermath.com/docs/benchmarks/compressed_memory_read.md): 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](https://ledgermath.com/docs/benchmarks/hash.md): 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](https://ledgermath.com/docs/benchmarks/sort.md): How fast one thread sorts 64-bit integer keys: a copy of size_bytes of unsorted keys, sorted by an LSD radix sort. - [syscall](https://ledgermath.com/docs/benchmarks/syscall.md): 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](https://ledgermath.com/docs/benchmarks/mutex.md): 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](https://ledgermath.com/docs/benchmarks/tcp_echo.md): 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](https://ledgermath.com/docs/benchmarks/disk_read_sequential.md): Reading a file front to back the way a program does, on one thread: buffered preads 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](https://ledgermath.com/docs/benchmarks/disk_read_random.md): 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](https://ledgermath.com/docs/benchmarks/disk_read_io_uring.md): 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](https://ledgermath.com/docs/benchmarks/disk_write.md): 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](https://ledgermath.com/docs/benchmarks/http_get.md): 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](https://ledgermath.com/docs/machines.md): 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](https://ledgermath.com/docs/methods.md): 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](https://ledgermath.com/docs/prices.md): 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](https://ledgermath.com/docs/glossary.md): 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.