Local LLM benchmark · v2 report built 2026-11-27 21:02

Which large model should
run OpenCode?

No local model has finished yet — scores appear as runs complete.

0 local models24 cases × 2 seeds4 agent tasksseeds 500–501

League table

Fully scored models. Click a column to sort. Elapsed time adds the latest scoring and speed runs. A dash means one or both durations are unavailable.

#ModelCombinedSingleAgenticTokensScoring + speed elapsedTG tok/sMemory GiBLast scoring run

Specs and settings

Every model in this benchmark, as configured on this machine.

By category

Mean score per category, local models. The leader in each glows.

Python

Java

SQL

Trace

Reasoning

Code reading

Every case, every model

Mean of two seeds per case. Click any cell to open that case in the explorer.

0
100▢ = one seed only
ModelN1N2N3N4N5C2C3C4J1J2S1S2R1R2L1L5L3M1M2M3M4M5PL1PL2

Explorer

The saved answer for every model, per seed — prompts, scores, token counts, grader detail.

Agent tasks

Four multi-turn tool-using tasks, two seeds each, graded by hidden unit tests in the task repos.

A1 inventory · two bug reports

Hidden tests; an untouched repo scores 5/14.

ModelScoreTestsMax runNotes

A2 events · cursor pagination

Hidden tests; an untouched repo scores 1/14.

ModelScoreTestsMax runNotes

A3 billing · month-end crash and proration

Hidden tests; an untouched repo scores 1/14.

ModelScoreTestsMax runNotes

A4 ratelimit · exact sliding-window limiter

Hidden tests; an untouched repo scores 0/1.

ModelScoreTestsMax runNotes

Thinking budget

Completion tokens across the single-turn answers. Requested caps come from the saved runs. Length cutoffs count server replies that ended with finish_reason=length. OpenCode's own per-model output limits are listed last. "Score w/ thinking" is "—" for models whose records contain no reasoning.

ModelTotal tokensMedianMaxRequested capLength cutoffs>16,384 Visible thinkingScore w/ thinkingScore directOpenCode limit

Speed

Clean single-workload measurements (cache-busted prefill, 512-token decode). Prefill columns are prompts sized by characters, not tokens — the x value differs per tokenizer.

ModelPP @2K chars tok/sPP @8K charsPP @32K charsDecode tok/s

Quality vs speed

One point per finished local model: combined score against clean decode speed. The top-right corner is the sweet spot — high quality at high tokens per second. Cloud models never enter the charts.

No finished local model has a clean speed run yet — the scatter appears once speed.py has measured the field.

x = each model's latest usable speed.py decode run (512 tokens, cache-busted); y = combined over all cases and tasks. Every finished local model has a clean speed run.

Loaded memory (GiB)

The OpenCode resident model stays loaded; loading a benchmark model evicts others. The benchmark records loaded memory before unloading each tested model.

Method and caveats

How it was scored

24 single-turn cases (Python, Java, SQL, trace debugging, reasoning, code reading) × 2 seeds (500, 501), plus 4 multi-turn tool-using agent tasks (A1–A4) × 2 seeds graded by hidden unit tests in the task repos. Partial credit throughout; combined = mean over all 24 cases and 4 tasks, each weighted equally after averaging seeds, so agent work is 4/28 of it. An untouched repo scores A1 5/14, A2 1/14, A3 1/14, A4 0/1. Scores use each model’s newest complete scoring run. Legacy results have no run manifest.

Load-sensitive tests

A4's test_amortized_constant_time and test_idle_keys_are_forgotten fail on a busy machine. a4_idle_regrade.py rebuilds saved A4 diffs and re-grades them on an idle machine (state/a4-idle-regrade.json); those rechecks are reported separately, and the tables keep the live grades.

Cloud models

The same cases and tasks ran through Codex CLI on a ChatGPT Plus plan. Cloud results are reported only in their own band: different harness, different tokenizer, reasoning tokens accounted differently, and every run spends real plan quota.