localbench

$ localbench --method

Method

Rubric version 3. Changing a threshold bumps the version and re-states every verdict; the old rubric stays readable in the repository. Verdicts are never silently recomputed against history.

Two axes, in this order

Primary — how fast does it actually run here. Measured, not opined. Secondary — does this format hold quality at all. Blind-scored against a reference answer.

Speed leads because a slow configuration is visible in two seconds, while a fast one that quietly produces garbage is invisible to the reader. That order is also what makes the judge safe to use: throughput carries none of the judge's bias, so the scoring opinion sits next to the number rather than underneath every ranking.

Protocol: blind A/B against a reference answer, both orders averaged, independent absolute rubric, normalised so the reference = 100

Performance tiers

TierAt leastWhat it feels like
FAST 40tok/sFaster than anyone reads. Agents feel instant.
WORKABLE 20tok/sAbout reading speed. Single-user agentic work is fine.
SLOW 8tok/sFine for a job you walk away from; unpleasant to watch.
MARGINAL 0tok/sBelow this an agent loop feels broken, and it usually is.

Sustained versus burst is not a refinement here. Most of this fleet is thermally bounded and several are laptops, so a burst figure published as a sustained one is a false verdict. A row without a stated measurement window renders without a tier rather than inheriting one.

Fast enough to do what, specifically

These thresholds are arithmetic and they are here to be disagreed with, line by line. Send the disagreement, we will re-run it.

Use NeedsWhy that number
Interactive chatdecode ≥ 20 tok/s
first token ≤ 2000 ms
20 tok/s roughly keeps pace with reading, so the text stops arriving behind the eye. Under ~20 the interface feels like it is lagging even when it is not. First token over ~2 s reads as a hang regardless of what follows.
Agentic loopprefill ≥ 400 tok/s
decode ≥ 12 tok/s
An agent spends most of its wall clock on prefill, not decode: it re-sends the whole context every turn and reads the output itself, so 12 tok/s of output is fine while 400 tok/s of input is the difference between a 75-second and a 100-second turn on a 30k-token context. This is the axis that quantization and small VRAM actually destroy, via KV-cache eviction at long context, and it is the axis almost nobody publishes.
Voice realtimedecode ≥ 45 tok/s
first token ≤ 600 ms
Turn-taking feels natural when generation out-runs speech by a margin and the first token lands inside the pause a listener already expects. Half-duplex tools can hide a slow first token; a conversation cannot.
Batch / backgrounddecode ≥ 5 tok/s Nobody watches a batch job. What matters here is throughput per box and per watt and whether it survived eight hours, which is why the sustained-versus-burst rule is not optional for this use.
Concurrent usersaggregate ≥ 60 tok/s
concurrent streams ≥ 4
Sixty aggregate tok/s across four or more streams is roughly one usable reader each. A box that does 200 tok/s single-stream and 60 across four is a single-user box, and saying so is the whole point of measuring concurrency.

A use is never judged on a guess: if any input is missing the verdict is UNMEASURED and the page names the missing metric. An empty cell that reads as a pass is how a benchmark site loses an argument. Passing a threshold from within 10% of it is flagged marginal — performance noise is not yet measured the way quality noise is, so the band is shown rather than asserted away.

Turn latency: the derived number, and its limits

Charts of this number appear on the front page and every model page. The workload lives in the published rubric, so anyone can recompute them for their own input and output sizes and check our arithmetic.

tok/s is the unit this niche quotes, and it hides the main finding, because prefill and decode are quoted in the same unit while doing wildly different amounts of work. Two boxes can decode within 8% of each other and take twice as long over a real turn. So we also publish wall-clock for a workload stated in the rubric, not chosen to flatter a chart:

Workload Input tokensOutput tokensChosen because
agent turn (30k in / 1.5k out)30,0001,500An ordinary agent turn: a file or repo slice, a tool schema, the transcript so far, then a generous answer or a tool call with reasoning.
chat turn (2k in / 400 out)2,000400A short exchange with a modest amount of context. Five times the output share of the agent turn, so decode dominates here and a fast-prefill box earns almost nothing from that.

seconds = input_tokens / prefill_tokens_per_sec + output_tokens / decode_tokens_per_sec. Uncached prefill, one stream, temperature 0 — the pessimistic case. Prompt caching collapses the input term from the second turn on; we publish a cached measurement as a separate number when we have one rather than assuming it.

This is a derivation, not a measurement, and it is labelled as one everywhere it appears. It inherits the uncertainty of both inputs; it never stands in for a missing one — no prefill number means no turn latency, never an estimate. The uncached formula is the pessimistic case: prompt caching collapses the input term from the second turn onward, and when we publish a cached measurement it will be a separate number beside this one, not a quiet replacement for it.

And the limit we will not paper over, because it cuts against the framing we would prefer: which term dominates is a property of the workload, not of the hardware. Across the configurations published today the share of an agent turn spent reading the prompt runs from 11% to 58% depending on the box, and short chat turns are decode-bound everywhere. "Prefill is the number that matters" is true for agents, RAG and document work — which is most of what people buy local hardware for — and false for a two-line chat, which is what a tok/s leaderboard is implicitly benchmarking.

Quality gate

Noise floor and the judge's own bias

Every number in this panel is computed from the published dataset on each build, so it cannot drift from the data it describes.

Comparability rules

The prompts

There is also a held-back set that will never be published on this page. Its purpose is to detect a configuration tuned to what we ask.

Prompt set v3

Frozen 2026-05-15 · 12 questions · published verbatim, because a score you cannot reproduce is a claim.

S1 SIMPLE

What is the capital of Australia, and which two larger cities did it compromise between when it was chosen as the capital? Answer in one paragraph.

S2 SIMPLE

Explain photosynthesis in one short paragraph for a non-scientist. Cover the inputs, the outputs, and where it happens in the plant.

S3 SIMPLE

Who invented the World Wide Web, in what year, and at which institution? Answer in 2-3 sentences and include why he created it.

C1 COMPLEX

Explain the CAP theorem and the PACELC extension. In your answer, give a concrete example of a system that chooses CP, one that chooses AP, and one that chooses EL over EC. Be precise about the tradeoffs.

C2 COMPLEX

Explain the Two Generals' Problem and why it implies you cannot solve consensus over an unreliable channel. Then briefly tie this to TCP's three-way handshake — does TCP solve it, work around it, or sidestep it? Be precise.

C3 COMPLEX

State Bayes' theorem in one line, then walk through a concrete medical-test example: disease prevalence 1%, test sensitivity 99%, test specificity 95%. What is the probability a positive test result means the patient actually has the disease? Show the calculation step by step and then give the intuition for the result.

K1 CODING

The Python function below is supposed to compute the running average of a list of numbers, but it produces incorrect results for some inputs. Identify the bug, explain precisely what triggers it, and provide a corrected version with 3-4 assert-based tests that demonstrate both the original failure and the fix. ```python def running_average(nums: list[float]) -> list[float]: out = [] total = 0 for i, n in enumerate(nums): total += n out.append(total / i) return out ```

K2 CODING

Refactor the function below into clean, testable units. It currently mixes parsing, validation, FX conversion, large-order flagging, logging, and output construction inside a single loop with mutable shared state. Keep the public behaviour (return value + which orders are skipped) identical — do NOT add new features or change the rules. State the principles you applied in 2-3 short bullets at the end. ```python def process_orders(orders, fx_rates): out = [] log = [] bad = 0 for o in orders: if 'amount' not in o or 'currency' not in o: log.append(f'skip: missing fields {o}') bad += 1 continue if o['currency'] not in fx_rates: log.append(f'skip: unknown currency {o["currency"]}') bad += 1 continue if o['amount'] < 0: log.append(f'skip: negative {o}') bad += 1 continue usd = o['amount'] * fx_rates[o['currency']] if usd > 1_000_000: log.append(f'flag: huge order {o["id"]} = {usd}') out.append({**o, 'usd': usd}) print(f'processed {len(out)}, skipped {bad}') return out ```

K3 CODING

Implement a Python function `parse_duration(s: str) -> int` that converts a human duration string like '1h30m', '2d', '90s', or '1w2d3h' to total seconds. The spec is intentionally underspecified. First list your assumptions explicitly (whitespace handling, case sensitivity, allowed units, unit ordering, what counts as invalid input, what to return / raise on invalid input), then implement the function, then provide assert-based tests that exercise both the happy path and the edge cases your assumptions imply.

A1 ARCHITECTURE

A two-engineer startup is choosing the database for a B2B SaaS product (CRM-like — accounts, contacts, deals, custom fields per tenant, reporting). They're debating Postgres vs MongoDB. Walk them through how to actually decide. Don't list every consideration — pick the 3-4 that matter most for their situation and go deep on each, including how each option behaves under concrete pressure (custom fields, ad-hoc reporting queries, schema evolution, hiring). End with a clear recommendation and one-line conditions that would flip your answer.

A2 ARCHITECTURE

You're the SRE lead for a B2B SaaS product (~$8M ARR, 40 enterprise customers) running entirely in AWS us-east-1: a 3-tier web app on EC2 + RDS Postgres + S3. A 4-hour us-east-1 outage last month cost you a $400k enterprise renewal. Management is now demanding 'multi-region by EOY.' Your team is 6 engineers, 2 of them SRE-leaning. Walk through how you'd actually deliver this — what you'd ship in week 1, month 1, and quarter 1, what each step costs (engineer time, money, risk), and what trade-offs the business should make. It's fine to argue against full multi-region — just justify. Be concrete about RPO/RTO targets and where you'd deliberately accept worse numbers. Be definitive and dense — aim for 800-1200 words, no filler, no preamble.

A3 ARCHITECTURE

Explain the cache stampede / dogpile problem to a competent backend engineer who hasn't hit it in production. Show why the naive 'check cache → regenerate on miss' pattern fails under load with a concrete numeric example. Then walk through the three main mitigation strategies — probabilistic early expiration (XFetch), request coalescing / single-flight, and stale-while-revalidate — explaining how each works mechanically, what failure modes each still has, and which you'd reach for first in a typical web service. Use code or pseudocode where it sharpens the explanation.

Prompt set v4

Frozen 2026-07-30 · 12 questions · published verbatim, because a score you cannot reproduce is a claim.

S1 SIMPLE

What is the capital of Australia, and which two larger cities did it compromise between when it was chosen as the capital? Answer in one paragraph.

S2 SIMPLE

Explain photosynthesis in one short paragraph for a non-scientist. Cover the inputs, the outputs, and where it happens in the plant.

S3 SIMPLE

Who invented the World Wide Web, in what year, and at which institution? Answer in 2-3 sentences and include why he created it.

C1 COMPLEX

Explain the CAP theorem and the PACELC extension. In your answer, give a concrete example of a system that chooses CP, one that chooses AP, and one that chooses EL over EC. Be precise about the tradeoffs.

C2 COMPLEX

Explain the Two Generals' Problem and why it implies you cannot solve consensus over an unreliable channel. Then briefly tie this to TCP's three-way handshake — does TCP solve it, work around it, or sidestep it? Be precise.

C3 COMPLEX

State Bayes' theorem in one line, then walk through a concrete medical-test example: disease prevalence 1%, test sensitivity 99%, test specificity 95%. What is the probability a positive test result means the patient actually has the disease? Show the calculation step by step and then give the intuition for the result.

K1 CODING

The Python function below is supposed to compute the running average of a list of numbers, but it produces incorrect results for some inputs. Identify the bug, explain precisely what triggers it, and provide a corrected version with 3-4 assert-based tests that demonstrate both the original failure and the fix. ```python def running_average(nums: list[float]) -> list[float]: out = [] total = 0 for i, n in enumerate(nums): total += n out.append(total / i) return out ```

K2 CODING

Refactor the function below into clean, testable units. It currently mixes parsing, validation, FX conversion, large-order flagging, logging, and output construction inside a single loop with mutable shared state. Keep the public behaviour (return value + which orders are skipped) identical — do NOT add new features or change the rules. State the principles you applied in 2-3 short bullets at the end. ```python def process_orders(orders, fx_rates): out = [] log = [] bad = 0 for o in orders: if 'amount' not in o or 'currency' not in o: log.append(f'skip: missing fields {o}') bad += 1 continue if o['currency'] not in fx_rates: log.append(f'skip: unknown currency {o["currency"]}') bad += 1 continue if o['amount'] < 0: log.append(f'skip: negative {o}') bad += 1 continue usd = o['amount'] * fx_rates[o['currency']] if usd > 1_000_000: log.append(f'flag: huge order {o["id"]} = {usd}') out.append({**o, 'usd': usd}) print(f'processed {len(out)}, skipped {bad}') return out ```

K3 CODING

Implement a Python function `parse_duration(s: str) -> int` that converts a human duration string like '1h30m', '2d', '90s', or '1w2d3h' to total seconds. The spec is deliberately incomplete, so you must decide the details yourself. Do exactly three things, in this order and nothing else: 1. State exactly four assumptions, one short line each — pick the four that most affect the implementation (e.g. whitespace, case, allowed units, unit ordering, invalid input). 2. Implement the function. 3. Give exactly six assert-based tests: four happy-path, two edge cases your assumptions imply. Commit to one behaviour per decision. Do not weigh or enumerate alternatives you rejected.

A1 ARCHITECTURE

A two-engineer startup is choosing the database for a B2B SaaS product (CRM-like — accounts, contacts, deals, custom fields per tenant, reporting). They're debating Postgres vs MongoDB. Walk them through how to actually decide. Don't list every consideration — pick the 3-4 that matter most for their situation and go deep on each, including how each option behaves under concrete pressure (custom fields, ad-hoc reporting queries, schema evolution, hiring). End with a clear recommendation and one-line conditions that would flip your answer.

A2 ARCHITECTURE

You're the SRE lead for a B2B SaaS product (~$8M ARR, 40 enterprise customers) running entirely in AWS us-east-1: a 3-tier web app on EC2 + RDS Postgres + S3. A 4-hour us-east-1 outage last month cost you a $400k enterprise renewal. Management is now demanding 'multi-region by EOY.' Your team is 6 engineers, 2 of them SRE-leaning. Walk through how you'd actually deliver this — what you'd ship in week 1, month 1, and quarter 1, what each step costs (engineer time, money, risk), and what trade-offs the business should make. It's fine to argue against full multi-region — just justify. Be concrete about RPO/RTO targets and where you'd deliberately accept worse numbers. Be definitive and dense — aim for 800-1200 words, no filler, no preamble.

A3 ARCHITECTURE

Explain the cache stampede / dogpile problem to a competent backend engineer who hasn't hit it in production. Show why the naive 'check cache → regenerate on miss' pattern fails under load with a concrete numeric example. Then walk through the three main mitigation strategies — probabilistic early expiration (XFetch), request coalescing / single-flight, and stale-while-revalidate — explaining how each works mechanically, what failure modes each still has, and which you'd reach for first in a typical web service. Use code or pseudocode where it sharpens the explanation.

Why 177 runs are not on this site

Every run in the corpus we did not publish, by reason. This is the answer to 'you only published what flattered you'. Run ids encode internal lane names and are therefore withheld; they are available on request for audit.

ReasonRuns
model not on allowlist64
prompt set v2 not comparable32
unknown-localhost-client27
box BOX-HELD-3 withheld11
box GPU-96A withheld10
operator-void10
no blind score recorded8
box GPU-96B withheld4
prompt set v1 not comparable3
box BOX-HELD-2 withheld3
box BOX-HELD-1 withheld3
box GPU-RETIRED-5080 withheld1
unmatched-endpoint-host1

This table is the anti-cherry-picking control. A site that publishes only what fits the story has no denominator; ours is printed on the page.

Claims we refuse to make

Disputing a number

Every table row links to a run reference. Quote it, anywhere you found us, and we re-run that configuration and publish the result whichever way it lands. Corrections to the method are more valuable to us than praise, because the method is the product.

The rubric is version-controlled, the noise floor is measured on our own repeats, the exclusions are indexed, and the held-back prompt set exists so that nothing here can be tuned to our own questions. That is the whole claim.