jcode bench
Optimize production-grade primitives. Exhaustive correctness is required. Every verified improvement counts, and runs have no time limit.
How a run works
Each task gives the agent a working implementation, an exhaustive verifier, and a published deterministic cost model. The agent edits the code and submits it for grading as often as needed. Each grade takes seconds, and the benchmark records every new best result. Correctness on every possible input is the gate. Among passing submissions, the score measures doublings of cost reduction relative to the starting implementation.
Tasks
Three tasks, chosen for fast grading and substantial optimization headroom. A better result raises the known frontier for every later run.
float-print: shortest round-trip float to decimal
Convert a float32 to the shortest decimal string that parses back to the same bits. This remains an active research area, with algorithms including Grisu, Ryū, and Dragonbox. The verifier checks all 232 float values.
json-unescape: decode JSON string escapes
Decode a performance-critical part of JSON parsing. Escape density varies across inputs, leaving room for strategies beyond current SIMD implementations. The verifier checks every bounded-length sequence.
utf16-transcode: UTF-16 to UTF-8
Convert UTF-16 data used by JavaScript and Windows APIs into UTF-8. Mixed-width branching leaves optimization room. The verifier checks all code units, all surrogate pairs, and boundary-stratified combinations.
Leaderboards: every harness and model, by task
Every run below is one solo agent at high reasoning that passed the official final correctness grade. Each chart plots the running best score against active agent time. The two default lines are the original 2026-07-05/06 jcode and Claude Code head-to-head runs. The buttons add or remove any other harness or model.
There is deliberately no combined leaderboard. The tasks have very different optimization headroom: float-print scores reach +12 while utf16-transcode stays under +4, so any cross-task average mostly measures float-print. Task-level rankings avoid that distortion.
json-unescape
| # | harness | model | best score | speedup | grades | active time | date |
|---|---|---|---|---|---|---|---|
| 1 | jcode | Claude Fable 5 | +2.8390 | 7.2x | 78 | 2.3h | 2026-07-19 |
| 2 | jcode | Claude Opus 4.8 | +2.6889 | 6.4x | 163 | 2.6h | 2026-07-05 |
| 3 | Codex CLI | GPT-5.6 Sol | +2.4228 | 5.4x | 21 | 20m | 2026-07-10 |
| 4 | jcode | GPT-5.6 Sol | +2.3055 | 4.9x | 26 | 19m | 2026-07-19 |
| 5 | OpenCode | GPT-5.6 Sol | +2.1894 | 4.6x | 25 | 28m | 2026-07-17 |
| 6 | Claude Code | Claude Opus 4.8 | +2.0920 | 4.3x | 26 | 58m | 2026-07-05 |
| 7 | OpenCode | Claude Opus 4.8 | +1.9991 | 4.0x | 83 | 43m | 2026-07-18 |
| 8 | jcode | GPT-5.5 | +1.9841 | 4.0x | 33 | 9m | 2026-07-19 |
| 9 | jcode | GPT-5.4 | +1.7019 | 3.3x | 20 | 6m | 2026-07-19 |
| 10 | jcode | Claude Sonnet 5 | +1.2270one degenerate sample excluded† | 2.3x | 45 | 49m | 2026-07-19 |
float-print
| # | harness | model | best score | speedup | grades | active time | date |
|---|---|---|---|---|---|---|---|
| 1 | jcode | Claude Fable 5 | +12.0086 | 4120x | 36 | 6.5h | 2026-07-19 |
| 2 | jcode | Claude Opus 4.8 | +8.6385 | 399x | 28 | 10.6h | 2026-07-06 |
| 3 | jcode | GPT-5.6 Sol | +7.8107 | 225x | 23 | 48m | 2026-07-19 |
| 4 | Codex CLI | GPT-5.6 Sol | +7.4165 | 171x | 30 | 42m | 2026-07-10 |
| 5 | OpenCode | GPT-5.6 Sol | +7.2181 | 149x | 14 | 36m | 2026-07-17 |
| 6 | OpenCode | Claude Opus 4.8 | +7.2077 | 148x | 33 | 95m | 2026-07-18 |
| 7 | jcode | GPT-5.5 | +7.2042 | 147x | 23 | 52m | 2026-07-19 |
| 8 | Claude Code | Claude Opus 4.8 | +7.1692 | 144x | 24 | 86m | 2026-07-06 |
| 9 | jcode | GPT-5.4 | +7.0336 | 131x | 9 | 48m | 2026-07-19 |
| 10 | jcode | Claude Sonnet 5 | +6.8199 | 113x | 38 | 2.4h | 2026-07-19 |
utf16-transcode
| # | harness | model | best score | speedup | grades | active time | date |
|---|---|---|---|---|---|---|---|
| 1 | jcode | Claude Opus 4.8 | +3.2797 | 9.7x | 116 | 10.5h | 2026-07-06 |
| 2 | jcode | Claude Fable 5 | +2.5515 | 5.9x | 7 | 94m | 2026-07-19 |
| 3 | Claude Code | Claude Opus 4.8 | +2.3903 | 5.2x | 55 | 102m | 2026-07-06 |
| 4 | jcode | GPT-5.6 Sol | +2.1142 | 4.3x | 18 | 12m | 2026-07-19 |
| 5 | OpenCode | Claude Opus 4.8 | +1.8638 | 3.6x | 42 | 32m | 2026-07-18 |
| 6 | Codex CLI | GPT-5.6 Sol | +1.8327 | 3.6x | 24 | 17m | 2026-07-10 |
| 7 | OpenCode | GPT-5.6 Sol | +1.5084 | 2.8x | 19 | 25m | 2026-07-17 |
| 8 | jcode | GPT-5.5 | +1.3411 | 2.5x | 17 | 7m | 2026-07-19 |
| 9 | jcode | Claude Sonnet 5 | +1.2561 | 2.4x | 37 | 90m | 2026-07-19 |
| 10 | jcode | GPT-5.4 | +1.0331 | 2.0x | 22 | 8m | 2026-07-19 |
Best is the highest grade sampled during the run, so it can sit slightly above the official final score, and for float-print not every sample is a full 232 gate. Runs were recorded on different dates with different harness versions, and each cell is one run. †The Claude Sonnet 5 json-unescape run logged a single +14.30 grade from a degenerate random corpus; the surrounding grades sat near +0.93 and no later grade came close, so it is excluded here and documented in the raw curve data.
Jcode results: frontier model matrix
These solo runs launched on 2026-07-19 through the same pinned Jcode harness with high reasoning, identical published prompts, 4 CPUs, 8 GiB, and single-use Modal containers. The 18 cells completed and passed the official final correctness grade, including three matched Claude Opus 4.8 runs launched at 10:28 UTC.
| Jcode model | json-unescape | float-print | utf16-transcode | mean final | status |
|---|---|---|---|---|---|
| GPT-5.4 | +1.5710 | +7.0336 | +1.0310 | +3.2119 | 3/3 complete |
| GPT-5.5 | +1.9841 | +7.1957 | +1.3411 | +3.5070 | 3/3 complete |
| GPT-5.6 Sol | +2.2900 | +7.8065 | +2.1109 | +4.0691second-highest finalized mean | 3/3 complete |
| Claude Sonnet 5 | +1.2166 | +6.8199 | +1.2383 | +3.0916 | 3/3 complete |
| Claude Fable 5 | +2.8324best JSON score | +12.0074best float score | +2.5514best UTF-16 score | +5.7971highest finalized mean | 3/3 complete |
| Claude Opus 4.8 | +2.0016 | +7.1795 | +2.1117 | +3.7643third-highest finalized mean | 3/3 complete |
GPT-5.6 Sol reproducibility rerun
A second matched GPT-5.6 Sol run tested current Jcode on 2026-07-20. The model, provider, high reasoning effort, solo execution, prompt, 4 CPUs, 8 GiB, benchmark tasks, and graders matched the July 19 run. Only the Jcode version changed.
| run | Jcode | json-unescape | float-print | utf16-transcode | mean final | geomean efficiency |
|---|---|---|---|---|---|---|
| July 19 | v0.51.4 | +2.2900 | +7.8065 | +2.1109 | +4.0691 | 16.79x16.87x sampled best |
| July 20 rerun | v0.53.34 | +2.2062 | +7.1391 | +2.0920 | +3.8124 | 14.05x14.08x sampled best |
The rerun was 16.3% lower by final-score geometric-mean efficiency. Most of the difference
came from float-print. All three final grades passed, and float-print passed the official
all-232-pattern gate at +7.1400. Modal preempted the first json-unescape physical
attempt and restarted the same logical run; only the clean replacement is scored. Each date
has one run per task and the Jcode version changed, so this does not by itself establish a
Jcode regression rather than model sampling variance.
Audited rerun data
includes exact hashes, checkpoints, and full-gate evidence. Source result commit
767aa55.
Codex CLI results: GPT-5.6 Sol
These runs were recorded on 2026-07-10 with Codex CLI 0.144.1 and GPT-5.6 Sol at high reasoning effort. Each task received one run. Every agent received the same optimization prompt, chose when to stop, exited successfully, and passed the official final correctness grade. Higher scores are better. Each additional point halves the deterministic instruction cost.
| Codex mode | json-unescape | float-print | utf16-transcode | mean best | active time |
|---|---|---|---|---|---|
| solo | +2.422821 grades | +7.416530 grades | +1.832724 grades | +3.8907 | 78.8 min |
| swarm-enabled* | +2.613522 grades | +7.536338 grades | +2.502929 grades | +4.2176 | 84.4 min |
*The second configuration enabled swarm instructions with concurrency 8, but every run
recorded zero helper events. The measurements are included, but the difference from solo does
not demonstrate a multi-agent gain. With n=1 per cell, run variance is unknown.
Benchmark commit a9bfcdd; runner commit 11fb199.
Raw validated results
include all benchmark cells.
OpenCode results: GPT-5.6 Sol and Opus 4.8
These solo runs were recorded from 2026-07-17 through 2026-07-19 with OpenCode 1.0.203 at high reasoning effort, using the historical optimization prompt, 4 CPUs, 8 GiB, and single-use Modal containers. Each task received one run per model, ran until the agent chose to stop, and passed the official final correctness grade. No run invoked OpenCode's task/subagent tool.
| OpenCode model | json-unescape | float-print | utf16-transcode | mean best | active time |
|---|---|---|---|---|---|
| GPT-5.6 Sol | +2.189425 grades | +7.218114 grades | +1.508419 grades | +3.6386 | 88.5 min |
| Opus 4.8 | +1.999183 grades | +7.207733 grades | +1.863842 grades | +3.6902 | 169.5 min |
The two models finished within 0.06 mean-best points of each other, with Sol ahead on json-unescape and float-print and Opus ahead on utf16-transcode. Opus took 1.9 times as much agent time. For context, the historical jcode Opus 4.8 solo mean best was +4.8690, though those runs used 1423 active minutes and older mixed harness versions, so the gap is directional rather than controlled.
The table uses the successful runs. Modal preempted the first Opus float-print container after
it passed the full correctness gate at +7.2954 and reached a sampled best of +7.2973. The same
function call restarted from scratch and finished naturally. Successful Opus time excludes the
preempted attempt; observed time including it was about 253.7 minutes. With n=1 per cell, run
variance is unknown. Benchmark commit a9bfcdd; result commit
3043c79.
Raw validated results: Sol ·
Opus (all cells, durations,
source links, and the preemption audit).
jcode and Claude Code: float-print and utf16-transcode
These head-to-head runs were recorded on 2026-07-06. jcode and Claude Code each ran Opus 4.8 with high thinking, identical prompts, and one run per task. All four runs launched at the same time, and each agent chose when to stop. Both float-print submissions passed the full correctness gate over all 232 bit patterns. These are the two default lines in the charts above.
| float-print | best score | speedup | grades | full 2^32 gate |
|---|---|---|---|---|
| jcode | +8.639 | 398x | 28 | PASS |
| claude code | +7.169 | 144x | 24 | PASS |
Both agents reached the published Ryū-class research frontier, about +7, within their first grades. jcode then progressed through Ryū, Schubfach, and Dragonbox before producing a specialized formatter. Its final code used about 80 instructions per call and ran roughly 2.8 times faster than Claude Code's final submission.
| utf16-transcode | best score | speedup | grades | active time |
|---|---|---|---|---|
| jcode | +3.280 | 9.7x | 116 | ~10.5h |
| claude code | +2.390 | 5.2x | 55 | ~1.7h |
The four runs shared one 8-core machine. Instruction-count scores are independent of machine load, although wall-clock iteration slowed equally across the runs. A 6-minute network outage interrupted three agents mid-request at 03:35. They resumed from their own session state about 54 minutes later, and that gap is excluded from active time. The Claude Code utf16-transcode run was unaffected. Transcripts: jcode float-print · claude code float-print · jcode utf16 · claude code utf16. Raw curves: json.
jcode and Claude Code: json-unescape
This comparison was recorded on 2026-07-05. Both harnesses ran Opus 4.8 with high thinking and received the same prompt. Each harness ran once. The score measures doublings of instruction-count improvement over the starting implementation. The json-unescape chart above plots both curves.
| harness | best score | speedup | grades | active time |
|---|---|---|---|---|
| jcode | +2.689 | 6.45x | 163 | 158 min |
| claude code | +2.092 | 4.26x | 26 | 58 min |
Both agents were told to work until they could not find another improvement, and both chose when to stop. Their curves track closely for the first half hour. Claude Code stopped after 58 minutes, while jcode continued for 158 minutes and finished with code 1.5 times faster. This is one run per harness, so it does not measure run-to-run variance. Reruns are planned. Full unedited transcripts: jcode run · claude code run. Raw curve data: json. Reproduce with the public repo below.
github.com/1jehuang/jcode-bench
All task specs, graders, verifiers, and given implementations are public at github.com/1jehuang/jcode-bench. There is no hidden test set. Read about the benchmark class at /bench.