LedgerMath

View as Markdown

A benchmark's list of Series

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).

Where it is

  • Address: https://api.ledgermath.com/v1/benchmarks/<benchmark>.json, with the benchmark's name; a benchmark whose name is not 1 to 64 characters, a lower-case letter, then lower-case letters, digits and underscores, has no list.
  • Reached from: the table of contents (benchmarks.list[].url, for the benchmarks it names, as many as fit its budget), or its template benchmarks.benchmark_file_url_template with the benchmark's name, which every row and every Series' file gives (benchmark).
  • Links to: each listed Series' file (series[].url); the table of contents (index); its schema (schema_url).
  • A Series the list leaves out is in the list of every Series, v1/series.json, the complete list.
  • Schema: LedgerMath data API, version 1: one benchmark's list of Series, served by the API.

What its schema says

v1/benchmarks/<benchmark>.json: the Series of one benchmark, one row per Series, each with the address of its own file.

Each row is the Series' row in the list of every Series, v1/series.json, by the same definition of a row, and in files of one update the same, value for value and byte for byte, in the same order; so from the table of contents a reader reaches any Series this file lists in two requests: this file, whose row of the Series gives a summary of each Method's Derivation of it and the address of its file, then that file. The table of contents, a benchmark's list, the list of every Series and a Series' file are each whole, but fetched together they can be of different updates of the files: an update writes them one after another, a cache may hold one of them from before another changed, and an update that stopped part way leaves them so until the next one. Their counts and rows can then differ: one may hold a Series, or count a Run, that another does not. So a reader takes each file as true of its own update; where two of them differ, it fetches them again later, and they agree once both are of one update. Of the benchmark's Series whose rows take at most 16384 bytes written as JSON with no white space, this file lists, in the order of its rows, as many as fit in 250000 bytes, each row counted as those bytes and 6 more; the first that does not fit and every one after it are left out, as is a longer row, and left_out counts them: each is in v1/series.json and has its own file. So neither what one Series' strings hold nor how many Series there are can make this file too large to publish. Every benchmark whose name is 1 to 64 characters, a lower-case letter then lower-case letters, digits and underscores, has this file, always, whether the table of contents names it or not; its address is the table of contents' benchmarks.benchmark_file_url_template with the name in it, the name every row and every Series' file gives. A benchmark named otherwise has no file of its own: its Series are in v1/series.json alone, and the table of contents counts them. Each Method's own words for what its numbers mean are in v1/series.json and in each Series' file. Each row is written on one line of its own. Version 1 only ever gains fields: a field, once in a v1 file, keeps its name, its type and its meaning, and a reader ignores any field it does not know, which is why no object in this schema forbids members it does not list. A change that would break a reader is published as v2, beside v1.

Example

An excerpt, made by the generator, of the file at https://api.ledgermath.com/v1/benchmarks/http_get.json (57,331 bytes) as LedgerMath's fixed sample took it on 2026-11-26; that address serves the file as it is now.

{
  "schema": "ledgermath.api.benchmark/1",
  "schema_url": "https://api.ledgermath.com/v1/schemas/benchmark.schema.json",
  "index": "https://api.ledgermath.com/v1/index.json",
  "url": "https://api.ledgermath.com/v1/benchmarks/http_get.json",
  "benchmark": "http_get",
  "count": 25,
  "left_out": 0,
  "newest_run_started_at": "2026-11-26T17:07:26.339184401Z",
  "series": [
    {
      "id": "32eeb4d8b906",
      "url": "https://api.ledgermath.com/v1/series/32eeb4d8b906.json",
      "benchmark": "http_get",
      "params": {
        "auth": "sigv4",
        "budget_seconds": 120,
        "ca_file": "/etc/pki/tls/certs/ca-bundle.crt",
        "connection": "new",
        "gap_mean_ms": 200,
        "key": "http_get/v1/16777216",
        "object_bytes": 16777216,
        "resolv_conf": "/etc/resolv.conf",
        "timeout_ms": 10000
      },
      "build": "static",
      "instance_type": "c6i.8xlarge",
      "availability_zone_id": "use2-az3",
      "runs": 60,
      "boots": 60,
      "oldest_run_started_at": "2026-11-11T22:24:44.369088517Z",
      "newest_run_started_at": "2026-11-26T16:25:16.104890872Z",
      "derivations": {
        "series_v1": {
          "method": {"name": "series", "version": 1},
          "counted_runs": 60,
          "failed_runs": 0,
          "groups": 1,
          "percentiles": {
            "time_per_repetition_ns": {
              "count": 60,
              "p5": 171810667.475,
              "p50": 172643456.5,
              "p95": 173233043.05
            },
            "bytes_per_second": null
          }
        },
        "requests_v1": {
          "method": {"name": "requests", "version": 1},
          "counted_runs": 60,
          "failed_runs": 0,
          "groups": 1,
          "pool": {
            "runs": 60,
            "requests": 2400,
            "failed": 0,
            "phases": {
              "dns": {
                "count": 2400,
                "min": 107163,
                "max": 20163173,
                "p50": 185344,
                "p90": 667648,
                "p95": 831897.6,
                "p99": 2736783.36,
                "p99.9": 8625750.016,
                "at_or_above": {"p50": 1200, "p90": 240, "p95": 120, "p99": 24, "p99.9": 3}
              }
            }
          }
        }
      }
    }
  ]
}
What the excerpt leaves out, in 2 places

The excerpt is made by one rule, applied at every depth, and changes nothing else. A list of more than one element keeps its first, unless every element is a string, a number, true, false or null and the list takes at most 120 characters as JSON: then it is kept whole. An object keeps every member its schema names, but of members whose schemas are each nothing but a reference to one and the same definition (such as a request's eight phases), it keeps the first. Of an object's members whose names its schema does not fix, it keeps the first, then each next one while the values kept, as excerpted, take at most 300 bytes as JSON, and none after the first that does not fit. A string longer than 160 characters keeps its first 160 and ends with …

  • series: its first element of 25
  • series[0].derivations.requests_v1.pool.phases: the first of its 8 members whose schemas are the same reference

Fields

Each field is named by its path from the top of the file: a.b is the member b of the object a, [] stands for each element of a list, * for a member whose name is not fixed (its object's type says when the names must match a pattern), and a name with a dot in it is written ["p99.9"]. Under each path are its type and whether it is required (present wherever the object holding it is) or optional (it may be absent). An object said to have no other members holds none but those listed for it; any other object may hold members this page does not list. A shape used in more than one place is described once, under Shared shapes, and each place links to it. Version 1 only ever gains fields, so a file may hold a field this page does not list yet: a reader ignores it.

schema

always "ledgermath.api.benchmark/1" · required

What this file is, and which version of its shape.

schema_url

string matching ^https?:// · required

The address of this schema.

An address: an absolute URL starting http:// or https://.

index

string matching ^https?:// · required

The address of the table of contents, v1/index.json, which gives the address of the list of every Series.

An address: an absolute URL starting http:// or https://.

url

string matching ^https?:// · required

This file's own address.

An address: an absolute URL starting http:// or https://.

benchmark

string matching ^[a-z][a-z0-9_]{0,63}$ · required

The benchmark's name, as its Runs give it: 1 to 64 characters, a lower-case letter, then lower-case letters, digits and underscores.

count

integer, 0 or more · required

How many Series are listed.

left_out

integer, 0 or more · required

How many of the benchmark's Series are not listed: each because its row takes more than 16384 bytes written as JSON with no white space, or did not fit in 250000 bytes.

Each is in v1/series.json and has its own file.

newest_run_started_at

string matching ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]+)?Z$ or null · required

When the newest Run of the Series listed started; null when none is listed.

UTC, to the nanosecond, as the Run records it.

series

list of objects · required

One row per Series of the benchmark, in the order instance type, zone ID, params, build: each the Series' row in v1/series.json.

Each element: One Series.

series[].id

string matching ^[0-9a-f]{12}$ · required

The Series' id: the first 12 hex digits of the sha256 of its key (benchmark, params, build, instance type, zone ID) as canonical JSON.

series[].url

string matching ^https?:// · required

The address of the Series' own file, v1/series/<id>.json.

An address: an absolute URL starting http:// or https://.

series[].benchmark

string · required

The benchmark's name, as its Runs give it.

series[].params

object · required

The parameter set, as each Run was given it (LM_PARAM_*).

series[].params.*

string, number or boolean · any number of them

One parameter's value, under the parameter's name, as each Run was given it.

series[].build

string · required

The named build of the benchmark (static, dynamic).

series[].instance_type

string or null · required

The EC2 instance type, as the provider names it.

series[].availability_zone_id

string or null · required

The Availability Zone ID, as the provider names it.

series[].runs

integer, 1 or more · required

Runs in the Series, counted or not.

series[].boots

integer, 1 or more · optional

How many boots its Runs were made on: the distinct boots its points name, counted or not.

A boot is one fresh machine; each point names its boot (boot) and links its summary (boot_summary). Written since layout 2 (the layout of v1/index.json); a row written before it lacks it.

series[].oldest_run_started_at

string matching ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]+)?Z$ · required

When its oldest Run started.

UTC, to the nanosecond, as the Run records it.

series[].newest_run_started_at

string matching ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]+)?Z$ · required

When its newest Run started: the moment a citation of the Series as it stands names.

UTC, to the nanosecond, as the Run records it.

series[].derivations

object · required

A summary of each Method's Derivation of the Series, keyed <method name>_v<version>.

Method series v1 derives every Series; Method requests v1 only those whose samples are requests, and its key is absent from the others.

series[].derivations.series_v1

object · required

A summary of Method series v1's Derivation of the Series.

series[].derivations.series_v1.method

object · required

The Method, by name and version: series, version 1.

series[].derivations.series_v1.method.name

always "series" · required

The Method's name: series.

series[].derivations.series_v1.method.version

always 1 · required

The Method's version: 1.

series[].derivations.series_v1.counted_runs

integer, 0 or more · required

Runs this Method counts.

series[].derivations.series_v1.failed_runs

integer, 0 or more · required

Runs it does not count: shown in their month's file with why, in no percentile.

series[].derivations.series_v1.groups

integer, 1 or more · required

How many groups its split facts make of the Series' Runs.

series[].derivations.series_v1.percentiles

object · required

Across every counted Run of the Series, whatever its group.

time_per_repetition_ns is null when no Run counts; bytes_per_second is null when no counted Run observed a finite bytes per repetition above 0.

series[].derivations.series_v1.percentiles.time_per_repetition_ns

object or null · required

Nanoseconds per repetition: each Run's median over its counted samples.

Percentiles of time per repetition across the Series' counted Runs.

Every counted Run has a time per repetition. A counted Run's time per repetition is infinite, past a double's range, when it is the mean of its two middle samples' ns_per_repetition and their sum overflows (both near the top of a double's range; no real clock comes near): JSON cannot hold it, so its point shows null, and it is counted here all the same; a percentile taken from it, or interpolated towards it, is null. The Runs behind them are the Series' counted points, as its month files hold them.

series[].derivations.series_v1.percentiles.time_per_repetition_ns.count

integer, 1 or more · required

Counted Runs.

series[].derivations.series_v1.percentiles.time_per_repetition_ns.p5

number or null · required

The 5th percentile of the counted Runs' times per repetition (count of them), in nanoseconds, by linear interpolation between closest ranks (R type 7).

Null when it is infinite or undefined: taken from, or interpolated towards, an infinite time per repetition.

A number, or null.

series[].derivations.series_v1.percentiles.time_per_repetition_ns.p50

number or null · required

The 50th percentile of the counted Runs' times per repetition (count of them), in nanoseconds, by linear interpolation between closest ranks (R type 7).

Null when it is infinite or undefined: taken from, or interpolated towards, an infinite time per repetition.

A number, or null.

series[].derivations.series_v1.percentiles.time_per_repetition_ns.p95

number or null · required

The 95th percentile of the counted Runs' times per repetition (count of them), in nanoseconds, by linear interpolation between closest ranks (R type 7).

Null when it is infinite or undefined: taken from, or interpolated towards, an infinite time per repetition.

A number, or null.

series[].derivations.series_v1.percentiles.bytes_per_second

object or null · required

Bytes per second: each Run's bytes per repetition × 10^9 / its time per repetition in nanoseconds.

Percentiles of bytes per second across the Series' counted Runs that observed a finite bytes per repetition above 0.

A Run among them whose bytes per second is infinite, past a double's range (chiefly one whose time per repetition is 0), cannot have it written in JSON: it is counted here all the same, and a percentile taken from it, or interpolated towards it, is null. The Runs behind them are the Series' counted points whose bytes_per_repetition is not null, as its month files hold them.

series[].derivations.series_v1.percentiles.bytes_per_second.count

integer, 1 or more · required

Counted Runs that observed a finite bytes per repetition above 0, a Run with a bytes per second that is not a finite number included.

series[].derivations.series_v1.percentiles.bytes_per_second.p5

number or null · required

The 5th percentile of the bytes per second of the counted Runs that observed a finite bytes per repetition above 0 (count of them), by linear interpolation between closest ranks (R type 7).

Null when it is infinite or undefined: taken from, or interpolated towards, a bytes per second that is not a finite number.

A number, or null.

series[].derivations.series_v1.percentiles.bytes_per_second.p50

number or null · required

The 50th percentile of the bytes per second of the counted Runs that observed a finite bytes per repetition above 0 (count of them), by linear interpolation between closest ranks (R type 7).

Null when it is infinite or undefined: taken from, or interpolated towards, a bytes per second that is not a finite number.

A number, or null.

series[].derivations.series_v1.percentiles.bytes_per_second.p95

number or null · required

The 95th percentile of the bytes per second of the counted Runs that observed a finite bytes per repetition above 0 (count of them), by linear interpolation between closest ranks (R type 7).

Null when it is infinite or undefined: taken from, or interpolated towards, a bytes per second that is not a finite number.

A number, or null.

series[].derivations.requests_v1

object · optional

A summary of Method requests v1's Derivation of the Series; absent when that Method does not derive it.

series[].derivations.requests_v1.method

object · required

The Method, by name and version: requests, version 1.

series[].derivations.requests_v1.method.name

always "requests" · required

The Method's name: requests.

series[].derivations.requests_v1.method.version

always 1 · required

The Method's version: 1.

series[].derivations.requests_v1.counted_runs

integer, 0 or more · required

Runs this Method counts (exit 0, or 4 with failed requests).

series[].derivations.requests_v1.failed_runs

integer, 0 or more · required

Runs it does not count: shown in their month's file with why, left out of its request statistics.

series[].derivations.requests_v1.groups

integer, 1 or more · required

How many groups its split facts, Method series v1's, make of the Series' Runs.

series[].derivations.requests_v1.pool

object · required

Every succeeded request of the Series' counted Runs, pooled: each phase's statistics, read from the summed histogram (the Series' file holds the histograms, and the breakdowns by request fact).

series[].derivations.requests_v1.pool.runs

integer, 0 or more · required

Counted Runs.

series[].derivations.requests_v1.pool.requests

integer, 0 or more · required

Succeeded requests.

series[].derivations.requests_v1.pool.failed

integer, 0 or more · required

Failed requests, never timed.

series[].derivations.requests_v1.pool.phases

object · required

Each phase's statistics, by phase; a phase no request had is absent (dns, connect and tls over a kept connection).

series[].derivations.requests_v1.pool.phases.dns

object (shape request_stats) · optional

One phase over a set of requests, in nanoseconds: the count of requests, the least and greatest time, and each percentile the count supports (null when it does not), with how many requests are ranked at or above each one reported.

series[].derivations.requests_v1.pool.phases.connect

object (shape request_stats) · optional

One phase over a set of requests, in nanoseconds: the count of requests, the least and greatest time, and each percentile the count supports (null when it does not), with how many requests are ranked at or above each one reported.

series[].derivations.requests_v1.pool.phases.tls

object (shape request_stats) · optional

One phase over a set of requests, in nanoseconds: the count of requests, the least and greatest time, and each percentile the count supports (null when it does not), with how many requests are ranked at or above each one reported.

series[].derivations.requests_v1.pool.phases.send

object (shape request_stats) · optional

One phase over a set of requests, in nanoseconds: the count of requests, the least and greatest time, and each percentile the count supports (null when it does not), with how many requests are ranked at or above each one reported.

series[].derivations.requests_v1.pool.phases.first_byte

object (shape request_stats) · optional

One phase over a set of requests, in nanoseconds: the count of requests, the least and greatest time, and each percentile the count supports (null when it does not), with how many requests are ranked at or above each one reported.

series[].derivations.requests_v1.pool.phases.headers

object (shape request_stats) · optional

One phase over a set of requests, in nanoseconds: the count of requests, the least and greatest time, and each percentile the count supports (null when it does not), with how many requests are ranked at or above each one reported.

series[].derivations.requests_v1.pool.phases.body

object (shape request_stats) · optional

One phase over a set of requests, in nanoseconds: the count of requests, the least and greatest time, and each percentile the count supports (null when it does not), with how many requests are ranked at or above each one reported.

series[].derivations.requests_v1.pool.phases.total

object (shape request_stats) · optional

One phase over a set of requests, in nanoseconds: the count of requests, the least and greatest time, and each percentile the count supports (null when it does not), with how many requests are ranked at or above each one reported.

Shared shapes

… stands for the path at which the shape is used; each shape gives every place it is used.

Shape request_stats

object

One phase over a set of requests, in nanoseconds: the count of requests, the least and greatest time, and each percentile the count supports (null when it does not), with how many requests are ranked at or above each one reported.

Used at series[].derivations.requests_v1.pool.phases.dns, series[].derivations.requests_v1.pool.phases.connect, series[].derivations.requests_v1.pool.phases.tls, series[].derivations.requests_v1.pool.phases.send, series[].derivations.requests_v1.pool.phases.first_byte, series[].derivations.requests_v1.pool.phases.headers, series[].derivations.requests_v1.pool.phases.body and series[].derivations.requests_v1.pool.phases.total.

….count

integer, 0 or more · required

How many requests the figures are of: those of the set that succeeded and had this phase.

….min

number · required

The least of their times, in nanoseconds, exactly.

….max

number · required

The greatest of their times, in nanoseconds, exactly.

….p50

number or null · required

The 50th percentile of their times, in nanoseconds, read from the summed histogram: within 1/128 of the exact percentile of the same requests. Null when count is under 2, too few to support it.

A number, or null.

….p90

number or null · required

The 90th percentile of their times, in nanoseconds, read from the summed histogram: within 1/128 of the exact percentile of the same requests. Null when count is under 10, too few to support it.

A number, or null.

….p95

number or null · required

The 95th percentile of their times, in nanoseconds, read from the summed histogram: within 1/128 of the exact percentile of the same requests. Null when count is under 20, too few to support it.

A number, or null.

….p99

number or null · required

The 99th percentile of their times, in nanoseconds, read from the summed histogram: within 1/128 of the exact percentile of the same requests. Null when count is under 100, too few to support it.

A number, or null.

…["p99.9"]

number or null · required

The 99.9th percentile of their times, in nanoseconds, read from the summed histogram: within 1/128 of the exact percentile of the same requests. Null when count is under 1000, too few to support it.

A number, or null.

….at_or_above

object · required

For each percentile reported, how many requests are ranked at or above it (ties counted by rank).

….at_or_above.p50

integer · optional

How many requests are ranked at or above the 50th percentile; absent when it is not reported.

….at_or_above.p90

integer · optional

How many requests are ranked at or above the 90th percentile; absent when it is not reported.

….at_or_above.p95

integer · optional

How many requests are ranked at or above the 95th percentile; absent when it is not reported.

….at_or_above.p99

integer · optional

How many requests are ranked at or above the 99th percentile; absent when it is not reported.

….at_or_above["p99.9"]

integer · optional

How many requests are ranked at or above the 99.9th percentile; absent when it is not reported.