← uncontaminatable benchmarks

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

+0.5 +1.0 +1.5 +2.0 +2.5 +3.0 0m 30m 60m 90m 120m 150m jcode +2.69 claude code +2.09
#harnessmodelbest scorespeedupgradesactive timedate
1jcodeClaude Fable 5+2.83907.2x782.3h2026-07-19
2jcodeClaude Opus 4.8+2.68896.4x1632.6h2026-07-05
3Codex CLIGPT-5.6 Sol+2.42285.4x2120m2026-07-10
4jcodeGPT-5.6 Sol+2.30554.9x2619m2026-07-19
5OpenCodeGPT-5.6 Sol+2.18944.6x2528m2026-07-17
6Claude CodeClaude Opus 4.8+2.09204.3x2658m2026-07-05
7OpenCodeClaude Opus 4.8+1.99914.0x8343m2026-07-18
8jcodeGPT-5.5+1.98414.0x339m2026-07-19
9jcodeGPT-5.4+1.70193.3x206m2026-07-19
10jcodeClaude Sonnet 5+1.2270one degenerate sample excluded†2.3x4549m2026-07-19

float-print

+1 +2 +3 +4 +5 +6 +7 +8 +9 0h 1h 2h 3h 4h 5h 6h 7h 8h 9h 10h 11h jcode +8.64claude code +7.17
#harnessmodelbest scorespeedupgradesactive timedate
1jcodeClaude Fable 5+12.00864120x366.5h2026-07-19
2jcodeClaude Opus 4.8+8.6385399x2810.6h2026-07-06
3jcodeGPT-5.6 Sol+7.8107225x2348m2026-07-19
4Codex CLIGPT-5.6 Sol+7.4165171x3042m2026-07-10
5OpenCodeGPT-5.6 Sol+7.2181149x1436m2026-07-17
6OpenCodeClaude Opus 4.8+7.2077148x3395m2026-07-18
7jcodeGPT-5.5+7.2042147x2352m2026-07-19
8Claude CodeClaude Opus 4.8+7.1692144x2486m2026-07-06
9jcodeGPT-5.4+7.0336131x948m2026-07-19
10jcodeClaude Sonnet 5+6.8199113x382.4h2026-07-19

utf16-transcode

+1 +2 +3 +4 0h 1h 2h 3h 4h 5h 6h 7h 8h 9h 10h 11h jcode +3.28claude code +2.39
#harnessmodelbest scorespeedupgradesactive timedate
1jcodeClaude Opus 4.8+3.27979.7x11610.5h2026-07-06
2jcodeClaude Fable 5+2.55155.9x794m2026-07-19
3Claude CodeClaude Opus 4.8+2.39035.2x55102m2026-07-06
4jcodeGPT-5.6 Sol+2.11424.3x1812m2026-07-19
5OpenCodeClaude Opus 4.8+1.86383.6x4232m2026-07-18
6Codex CLIGPT-5.6 Sol+1.83273.6x2417m2026-07-10
7OpenCodeGPT-5.6 Sol+1.50842.8x1925m2026-07-17
8jcodeGPT-5.5+1.34112.5x177m2026-07-19
9jcodeClaude Sonnet 5+1.25612.4x3790m2026-07-19
10jcodeGPT-5.4+1.03312.0x228m2026-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-printbest scorespeedupgradesfull 2^32 gate
jcode+8.639398x28PASS
claude code+7.169144x24PASS

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-transcodebest scorespeedupgradesactive time
jcode+3.2809.7x116~10.5h
claude code+2.3905.2x55~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.

harnessbest scorespeedupgradesactive time
jcode+2.6896.45x163158 min
claude code+2.0924.26x2658 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.