Best case on large low-entropy prose.
132× overall on the same corpus, 106 KB → 800 B.
The best case is not part of the per-type chart - that chart peaks at 416×.
Evidence The measured figures, each with the method that produced it, so a number can be checked instead of believed.
INDEX 04 / 14
A tool call's output becomes part of the model's context, and a long result is paid for on every turn that carries it. These are the measurements of what Aphrodite leaves of it.
They come from the project's own benchmarks and from a study of the author's real Hermes sessions.
Benchmark ratios are measured; session savings are estimated, and the uncertainty band is stated with the estimate.
Every plate carries the corpus it was measured on and the SRC line that contains it, and the harness at the foot of the page re-derives the measured figures from a checkout.
Every figure is extracted from a pinned revision of the repository - HEAD at 8bf6884ae for this build - so what a reader checks is the number the tree carried, not a number someone typed here.
Read the four together and the shape of the product is in them:
The ceiling and the median belong to the next section - how much output a marker replaces. The round-trip band and the classification floor belong to the one after it - what that replacement costs. The per-class mechanism follows, then the recorded sessions and the field audit, the harness, and the limits, in that order.
The ceiling is the number quoted in the repository's first line; the median is the ordinary case - the one to plan a context budget against, as far as a median over 5 selected samples can tell you.
SRC: README.md:671-740 (the ceiling, the corpus, the latency band, the classification floor)
SRC: README.md:694-740 (the 200-session study)
01 // BENCHMARKS // THE HEADLINE // FOUR FIGURES
What follows is the best case and the corpus it belongs to, with the per-class detail in the mechanism chapter. Every figure in this section is measured - arithmetic on a fixed corpus - and the method that computes it is stated before the first one so the unit is never in doubt.
Best case on large low-entropy prose.
132× overall on the same corpus, 106 KB → 800 B.
The best case is not part of the per-type chart - that chart peaks at 416×.
A ratio is one payload counted twice: the tokens the tool produced, the tokens the model actually reads, and the first divided by the second.
Nothing else enters the number - no weighting, no projection, no averaging across calls.
The denominator is not the raw output minus a preview.
It is the whole replacement the model receives: the marker, its type, its size, and the short preview that lets the model decide whether the bytes are worth retrieving.
| STEP | WHAT IS COUNTED | WHERE IT COMES FROM |
|---|---|---|
| BEFORE | the payload as the tool produced it, in tokens | the corpus sample |
| AFTER | the marker plus its preview, in tokens | the compressed sample |
| ▲ RATIO | before ÷ after, reported as a whole multiple | ▲ the before and after counts |
The corpus is fixed, and it is the same corpus for every row: the per-type table takes one representative sample per output class, and the headline figure aggregates the whole set - 106 KB in, 800 B out, 132× overall, with the single best document reaching 610×.
The three figures that are timed rather than counted are in the next section, on their own axis: the classification floor, the compress step, and the round-trip a client waits for.
Fewer tokens on tool output - the median the README reports for its per-type table.
It is the number the README reports for that table, and it is the one to plan a context budget against.
That over-reads a median across 5 selected samples. What a session actually saves depends on the output type, on the size of that output, on how much of it repeats, on where the per-type thresholds sit, and on how often the agent retrieves instead of reading the preview.
SRC: README.md:671-740 (the ceiling, the corpus)
02 // PILLARS // OVERHEAD
Timing is reported on a different axis on purpose. A ratio says how much is replaced; it says nothing about what the replacement costs to produce, and a reader deciding whether to put a proxy in front of their client needs the second number more than the first.
Including the HTTP round-trip; the headline figure is ~10 ms.
Eight milliseconds is the fast case, forty the slow one: one call, compression and retrieve path included.
Classification is the step before it: naming the content type costs nanoseconds, and it runs on every call.
The whole compress step is sub-millisecond.
8-40 ms is what a client waits once the HTTP round-trip is included, and the ~10 ms headline sits near the fast end of that band. Classification is 40-123 ns and is timed on its own because it runs on every call. The whole compress step is sub-millisecond, so its lane marks a ceiling rather than a range.
SRC: README.md:671-740 (the latency band, the classification floor, the round trips)
SRC: README.md:305-371 (the compress step and the marker format)
03 // MECHANISM // MEASURED // PER-TYPE COMPRESSION
The bars are drawn at the ratios' log-scale positions, so the top row sits at full width and each subsequent row reads as a step down. Because a log position is a ranking rather than a proportion, the counts behind each row are stated first.
| SAMPLE | ORIGINAL TOKENS | REPLACEMENT TOKENS | RATIO |
|---|---|---|---|
BROWSER SNAPSHOT one serialised page: every element, every attribute, the same wrapper nesting repeated to the leaves | ~5,000 tok | ~12 tok | 416× |
BUILD OUTPUT a compiler and linker log - repeated paths, repeated warning shapes, one error restated at the end | ~1,400 tok | ~10 tok | 140× |
JSON one structured API payload: keys, nesting, and the values a reader needs kept byte-exact | ~400 tok | ~10 tok | 40× |
GIT DIFF a patch: hunk headers, context lines, and the same file path on both sides of every change | ~350 tok | ~15 tok | 23× |
TERMINAL shell output - listings, test runners, the progress lines that carry no verdict | ~200 tok | ~10 tok | 20× |
one serialised page: every element, every attribute, the same wrapper nesting repeated to the leaves
a compiler and linker log - repeated paths, repeated warning shapes, one error restated at the end
one structured API payload: keys, nesting, and the values a reader needs kept byte-exact
a patch: hunk headers, context lines, and the same file path on both sides of every change
shell output - listings, test runners, the progress lines that carry no verdict
Decade marks on the log axis: 1×, 10×, 100×. The top bar reaches 416×, which is why the last mark sits short of the right edge.
The chart peaks at 416×, on the browser snapshot: a serialised DOM repeats the same wrapper nesting down to the leaves, and the ratio is a measure of exactly that repetition.
The 610× plate is deliberately outside this chart.
It is not a sixth class: it is the best case on a single long low-entropy document, while the 5 per-class figures are one representative sample each and 132× is the whole corpus counted at once.
Plotting a best case beside five class samples would invite a comparison the number cannot support.
Read the chart as a ranking, not a promise: a diff, a build log and a terminal session are the ordinary material of an agent turn, and they land between 20× and 140×, while the median the README reports for the same table is 23×.
SRC: README.md:671-740 (the per-type table)
04 // PROFILE // THE SHAPE OF A SESSION // FOUR PAYOFFS
The study takes 200 real Hermes sessions - 6,843 API calls over three days - and reconstructs every call's payload from the session transcript.
Each payload is counted twice: as the model saw it, with the CCR markers in place, and with every marker expanded back to the content it replaced, which is what stock Hermes would have sent.
The difference between those two counts is the saving.
Nothing is simulated in that arithmetic - the markers, the retrieval calls and the expansions are the ones the transcripts contain - but the expansion depends on a tokenizer, so the result is a band rather than a point.
Across 200 recorded sessions, with a sensitivity band of ~24-33%. The band is the result: 156,342,817 tokens is the same reconstruction counted at the centre of that range.
• the centre of the sensitivity band - the single figure to quote, with the band attached
| MEASURE | VALUE | UNIT | KIND | SCOPE |
|---|---|---|---|---|
| Recorded context | 424,959,588 | tokens | MEASURED | every call's payload as the model saw it, markers in place, across 200 sessions |
| Expanded reconstruction | 581,302,405 | tokens | ESTIMATED | the same payloads with every marker expanded back to its content - what stock Hermes would have sent |
| Estimated tokens saved | 156,342,817 | tokens | ESTIMATED | expanded reconstruction minus recorded context, across 200 sessions |
| Estimated context reduction (point estimate) | 26.9% | % | ESTIMATED | the share of the expanded context budget the markers deflected, across 200 sessions |
| Sensitivity band | ~24-33% | % | ESTIMATED | the same figure at 3.0-4.5 chars/token - the sensitivity range, not a second measurement |
| Calls analysed | 6,843 | API calls | MEASURED | the same 200 sessions, Sep 18-20 |
| Sessions with nonzero estimated reduction | 183 / 200 | sessions | ESTIMATED | sessions with a nonzero estimated reduction, of 200 recorded |
| Sessions with no estimated reduction | 17 | sessions | ESTIMATED | sessions where the reconstruction found nothing to save, of 200 recorded |
| Median session ratio | 22.9% | % | ESTIMATED | the median session's saved ratio, across the sessions that saved something |
| Average saved per call | 22,921 | tokens | ESTIMATED | per API call, averaged over 6,843 calls |
| Tokens returned by retrieval (the re-entry toll) | 2,011,583 | tokens | MEASURED | the tokens those 2,275 retrievals returned |
| Retrieval calls | 2,275 | retrieve calls | MEASURED | every retrieval the transcripts record, across 200 sessions |
| Retrieval as a share of the saving | 1.3% | % | DERIVED | retrieval traffic as a share of the estimated tokens saved - the cost side of the ledger |
| Full output paid again instead would have cost | 78× | × | DERIVED | what paying the full output again would have cost, against paying retrieval instead |
The study is the author's own work - multi-agent atomization fan-outs, merge/PR work, plugin integration - reconstructed payload-by-payload from the session transcripts.
It is an author-run reconstruction, not a randomised comparison: it establishes neither better task success nor universal cost savings. What it measures is how much context the markers replaced in these sessions, and what that reconstruction cost in tokens.
Every figure above carries its own method and the pinned revision it was extracted from - the register on the benchmarks page lists all of them with their IDs.
Savings track tool-output volume, not session count.
A chat-only session has nothing to compress, so it saves ~0%.
A light developer session saves ~5%.
A tool-heavy session lands in the 20-25% band.
And a simulated pure-tool loop - a diff, an ls, a build and a search on repeat - reaches 76-82%.
That last figure is a stress test, not real usage, and it is labelled as one where it is printed.
This range comes from a scripted loop, not from the study's sessions. It is the engine's behaviour on an input nobody's day produced, and it is here to show where the ceiling of the recorded shapes sits - never to be quoted as a session result.
SRC: README.md:694-740 (the session study and its band)
SRC: README.md:671-740 (the session-shape bands)
05 // FIELD AUDIT // RECORDED SESSIONS // COUNTED
| READING | VALUE | UNIT | SCOPE |
|---|---|---|---|
| COVERAGE // SESSIONS WITH A SAVING | 183 / 200 | sessions | sessions with a nonzero estimated reduction, of 200 recorded |
| RATES // MEDIAN SESSION | 22.9% | % | the median session's saved ratio, across the sessions that saved something |
| RATES // AVERAGE PER CALL | 22,921 | tokens | per API call, averaged over 6,843 calls |
| THE RETRIEVAL TAX // THE COST SIDE | 1.3% | % | retrieval traffic as a share of the estimated tokens saved - the cost side of the ledger |
The 183 / 200 row is the other way to read the same data: in 183 of the 200 sessions something was saved.
The two rates above answer different questions - 22.9% is the median session's saved ratio, 22,921 is what an average call did not have to carry - and both are reported because neither alone describes the study.
The retrieval tax is the cost side of the ledger: 2,275 retrieve calls returned 2,011,583 tokens, roughly 1.3% of what was saved.
Savings are gross; this row is what the model paid to get its bytes back.
The same engine, four payoffs - savings track tool-output volume.
SRC: README.md:694-740.
06 // REPRODUCE // REPRODUCTION
The harness is five examples in the aphrodite crate, and each one prints the figure its own row quotes.
Nothing in the table is a vendor number: a reader with a checkout can re-derive every row on their own machine.
# requires a source checkout + Rust (see the SETUP page for versions)
$ git clone https://github.com/PlayForm/Aphrodite.git && cd Aphrodite
$ git submodule update --init --recursive
$ cargo run --release -p aphrodite --example bench_01_corpus
$ cargo run --release -p aphrodite --example bench_02_threshold
$ cargo run --release -p aphrodite --example bench_03_retrieve
$ cargo run --release -p aphrodite --example bench_04_ema
$ cargo run --release -p aphrodite --example bench_05_type_coverageEach example starts its own proxies, drives them over HTTP, and exits non-zero the moment a promise breaks - so a green run is a verdict, not a printout.
/ccr/create, retrieves each one through /retrieve, then prints the per-label table. Exits non-zero on any retrieve miss, so a ratio it prints is a ratio that survived the round-trip./ccr/create and /retrieve across the threshold-adjacent sizes - the inline zone, then 1 KB, 4 KB and 8 KB - in both cache and token mode. Content is always stored, a hash is always returned, and the stored bytes come back byte-for-byte; a boundary violation exits non-zero.The examples live in the aphrodite crate, not in the published binary - clone the repository, because cargo install ships the binary and not the harness.
The versions the site builds against are on the SETUP page; the harness is ordinary cargo, so a toolchain that builds the crate builds the benchmarks.
The plugin and the vendored Headroom fork are submodules - without them the crate resolves but the integration path does not.
Every figure is a release run - the harness commands pass --release - and a debug build is not comparable to the plates.
The versions the site builds against are on SETUP , and the crate layout that holds the examples is on CRATES .
Nothing is typed by hand: every figure is extracted from the repository on the build that produces the site - not copied into a template once and trusted afterwards.
The generator reads the README and the docs tree, writes the numbers into a generated record, and the page renders that record. A figure the repository stops carrying stops the build; it never survives as a stale plate.
The revision for this build is HEAD at 8bf6884ae (8bf6884aebab79632ef8c6b3312c6ebd6bd666d7). That is the pin the generator read, so "generated" here means generated from an address a reader can check out - not merely that no one retyped the number.
The provenance chain is the whole of it: the fact, the file it is read from, and the section it feeds.
| FACT | READ FROM | WHAT IT FEEDS |
|---|---|---|
| the measured study | README.md:694-740 | the session ledger, the session-shape bands, the retrieval tax |
| the benchmark corpus | README.md:671-740 | the four plates and the per-type chart: the ceiling, the corpus totals, the per-type rows, the latency band, the classification floor |
| the classification surface | README.md:305-371 | the catalog count and the threshold tiers |
| the classification registry | docs/classification/content-types.md:120 | the registry size the catalog footnote quotes |
| the release history | CHANGELOG.md:1290-3 | the release register on /versions/ |
SRC: README.md:671-740
SRC: crates/aphrodite/examples/bench_01_corpus.rs
SRC: crates/aphrodite/examples/bench_05_type_coverage.rs
07 // INTEGRITY // LIMITATIONS // WHAT THE NUMBERS ARE NOT
The page has two halves and they do not carry the same confidence.
Everything in the plates and the per-type chart is measured: a fixed payload goes in, a marker comes out, and the quotient is arithmetic.
The session study is an estimate by construction: it reconstructs what each API call would have carried with every marker expanded, so its figure depends on the tokenizer used to count that reconstruction.
That is why it ships as a band with a stated sensitivity range rather than as a single percentage.
Neither half is a vendor number.
A reader with a checkout can re-derive the measured half exactly and the estimated half to within its band - the harness section is the first half of that sentence, and the case study is where the second half is argued.
Every figure is a record with a stable ID. The kind says how it came to exist - measured is arithmetic on a fixed corpus, estimated is a reconstruction that depends on a tokenizer, simulated is a workload that never happened, and derived is a quotient of two other records.
The page joins each record by ID, never by position, so a label cannot drift onto a neighbouring figure's value. A missing record stops the build and names the ID.
| FIGURE | KIND | VALUE | UNIT | SCOPE | METHOD |
|---|---|---|---|---|---|
| benchmark.ceiling | measured | 610× | × | standard corpus, the single best document: large low-entropy prose | one payload counted twice: the tokens the tool produced over the tokens the model actually reads, on a fixed corpus |
| benchmark.overall | measured | 132× | × | standard corpus, the whole set at once: 106 KB in, 800 B out | one payload counted twice: the tokens the tool produced over the tokens the model actually reads, on a fixed corpus |
| benchmark.corpus.in | measured | 106 KB | bytes | standard corpus, the whole set as the tool produced it | measured size of the corpus input |
| benchmark.corpus.out | measured | 800 B | bytes | standard corpus, the whole set after replacement | measured size of the replacement the model receives |
| benchmark.median | measured | 23× | × | the five per-type samples, median of their ratios - not a median over sessions | median of the per-type table's ratios |
| benchmark.round-trips | measured | 20/20 compressed, 20/20 retrieve round-trips OK | round trips | the standard corpus, token mode, one retrieve per sample | each sample stored, retrieved and compared byte-for-byte; a miss exits non-zero |
| benchmark.class.git-diff | measured | 23× | × | standard corpus, one sample: Git diff (42L), ~350 tok in and ~15 tok out | one payload counted twice: the tokens the tool produced over the tokens the model actually reads, on a fixed corpus |
| benchmark.class.build-output | measured | 140× | × | standard corpus, one sample: Build output (142L), ~1,400 tok in and ~10 tok out | one payload counted twice: the tokens the tool produced over the tokens the model actually reads, on a fixed corpus |
| benchmark.class.terminal-output | measured | 20× | × | standard corpus, one sample: Terminal output, ~200 tok in and ~10 tok out | one payload counted twice: the tokens the tool produced over the tokens the model actually reads, on a fixed corpus |
| benchmark.class.json-blob | measured | 40× | × | standard corpus, one sample: JSON blob (30 keys), ~400 tok in and ~10 tok out | one payload counted twice: the tokens the tool produced over the tokens the model actually reads, on a fixed corpus |
| benchmark.class.browser-snapshot | measured | 416× | × | standard corpus, one sample: Browser snapshot (342 el), ~5,000 tok in and ~12 tok out | one payload counted twice: the tokens the tool produced over the tokens the model actually reads, on a fixed corpus |
| benchmark.realworld.terminal | estimated | 74× | × | recorded sessions, one row per output type: terminal | the study's per-output ratio for that type, orig tokens to a ~33-token marker |
| benchmark.realworld.table | estimated | 61× | × | recorded sessions, one row per output type: table | the study's per-output ratio for that type, orig tokens to a ~33-token marker |
| benchmark.realworld.source-code | estimated | 45× | × | recorded sessions, one row per output type: source code | the study's per-output ratio for that type, orig tokens to a ~33-token marker |
| benchmark.realworld.ls | estimated | 37× | × | recorded sessions, one row per output type: ls | the study's per-output ratio for that type, orig tokens to a ~33-token marker |
| benchmark.realworld.diff | estimated | 23× | × | recorded sessions, one row per output type: diff | the study's per-output ratio for that type, orig tokens to a ~33-token marker |
| benchmark.realworld.build | estimated | 23× | × | recorded sessions, one row per output type: build | the study's per-output ratio for that type, orig tokens to a ~33-token marker |
| benchmark.realworld.search | estimated | 20× | × | recorded sessions, one row per output type: search | the study's per-output ratio for that type, orig tokens to a ~33-token marker |
| narrative.preview-tokens | measured | ~15 tok | tokens | one replacement: the metadata preview the model reads instead of the output | the shipped preview budget, counted on the format the engine emits |
| narrative.marker-tokens | measured | ~33 tok | tokens | one replacement: the marker line, its type and its size | the shipped marker format, counted on the format the engine emits |
| benchmark.latency | measured | 8-40 ms | ms | end-to-end, one call, compression and retrieve path included, HTTP round-trip included | timed on a release build; the band spans the fast case to the slow one |
| benchmark.latency.headline | measured | ~10 ms | ms | end-to-end, the fast end of the same band | the headline reading of the latency band |
| benchmark.classify | measured | 40-123 ns | ns | one classification, one invocation, first match wins | timed on its own because it runs on every call |
| benchmark.compress-step | measured | sub-millisecond | wall time | the whole compress step, one payload, classification and preview included | timed on a release build |
| study.sessions | measured | 200 | sessions | the author's own Hermes sessions, Sep 18-20 | counted from the session transcripts |
| study.api-calls | measured | 6,843 | API calls | the same 200 sessions, Sep 18-20 | counted from the session transcripts |
| study.period | measured | Sep 18-20 | days | the window the 200 sessions were recorded in | the first and last session timestamps in the transcripts |
| study.tokens.recorded | measured | 424,959,588 | tokens | every call's payload as the model saw it, markers in place, across 200 sessions | the recorded payloads counted as sent |
| study.tokens.expanded | estimated | 581,302,405 | tokens | the same payloads with every marker expanded back to its content - what stock Hermes would have sent | reconstructed payload-by-payload from the session transcripts, with every marker expanded and counted through a calibrated chars/token ratio |
| study.tokens.saved | estimated | 156,342,817 | tokens | expanded reconstruction minus recorded context, across 200 sessions | reconstructed payload-by-payload from the session transcripts, with every marker expanded and counted through a calibrated chars/token ratio |
| study.reduction.percent | estimated | 26.9% | % | the share of the expanded context budget the markers deflected, across 200 sessions | reconstructed payload-by-payload from the session transcripts, with every marker expanded and counted through a calibrated chars/token ratio |
| study.reduction.band | estimated | ~24-33% | % | the same figure at 3.0-4.5 chars/token - the sensitivity range, not a second measurement | the same reconstruction recounted across a 3.0-4.5 chars/token range |
| study.reduction.center | estimated | ~27% | % | the centre of the sensitivity band - the single figure to quote, with the band attached | the same reconstruction recounted across a 3.0-4.5 chars/token range |
| study.median-ratio | estimated | 22.9% | % | the median session's saved ratio, across the sessions that saved something | reconstructed payload-by-payload from the session transcripts, with every marker expanded and counted through a calibrated chars/token ratio |
| study.average-per-call | estimated | 22,921 | tokens | per API call, averaged over 6,843 calls | reconstructed payload-by-payload from the session transcripts, with every marker expanded and counted through a calibrated chars/token ratio |
| study.sessions.saved | estimated | 183 / 200 | sessions | sessions with a nonzero estimated reduction, of 200 recorded | reconstructed payload-by-payload from the session transcripts, with every marker expanded and counted through a calibrated chars/token ratio |
| study.sessions.unsaved | estimated | 17 | sessions | sessions where the reconstruction found nothing to save, of 200 recorded | reconstructed payload-by-payload from the session transcripts, with every marker expanded and counted through a calibrated chars/token ratio |
| study.retrieval.calls | measured | 2,275 | retrieve calls | every retrieval the transcripts record, across 200 sessions | counted from the session transcripts |
| study.retrieval.tokens | measured | 2,011,583 | tokens | the tokens those 2,275 retrievals returned | the retrieved payloads counted as returned |
| study.retrieval.share | derived | 1.3% | % | retrieval traffic as a share of the estimated tokens saved - the cost side of the ledger | study.retrieval.tokens over study.tokens.saved |
| study.retrieval.factor | derived | 78× | × | what paying the full output again would have cost, against paying retrieval instead | study.tokens.saved over study.retrieval.tokens |
A wrong figure is fixed in the repository and the pin advances - never in the generated record, which the next build overwrites.
That is what makes the SRC line under each plate an address rather than a formality: the line numbers beside it come from the same pass that produced the number it describes.
None of this weakens the claim the page makes.
A compression proxy earns its place on the ordinary turn - a diff, a build log, a terminal dump - where the ratio is 20× to 140× and the model keeps working from the preview.
The ceiling is what the engine can do; the median is what a session gets.
If a number here disagrees with your own run, the harness is the arbiter: the examples ship with the crate, and the SRC lines name the README section each figure is copied from.
SRC: README.md:671-740
SRC: README.md:694-740
SRC: crates/aphrodite/examples/