Source token counts
Complete source fragments for the same 29 fixed benchmark programs, including helpers and literal data. Lower means fewer source tokens in this corpus.
Source tokens · o200k_base
0 → 10,000 tokens · lower is better
| Language | o200k_base tokens | cl100k_base tokens |
|---|---|---|
| A0 | 9028 | 9053 |
| C | 6402 | 6400 |
| JavaScript | 6400 | 6399 |
| Rust | 6565 | 6509 |
Local js-tiktoken measurements of the exact source text in the dataset. A0 uses the implemented source formatter; all 29 programs round-trip to the same IR and pass native-parser and JavaScript boundary controls. These are public tokenizer encodings, not a claim about any particular model's tokenizer. Prompts, tools, reasoning, retries and repairs are excluded: this is not an AI editing-cost or accuracy result.
| Question | A0's result | Where it loses |
|---|---|---|
| Is native code fast? | 1.16x the time of hand-written C, geometric mean over 19 test programs on an Apple M3 | Slower than the best of C, Rust and Zig on 8 of 19 test programs, worst 4.31x on mat4 |
| How does it compare with other languages? | 3 of 48 other languages are within 5% of A0's speed and the rest are slower | 8 of 48 languages are more than 5% faster |
| Does it start quickly? | 2.50 ms from launch to first result, place 9 of 48 languages | Every language placed above it starts faster |
| Is an edit checked quickly? | 2 to 23 ms per edit in a warm session, against 531 to 3918 ms for a whole-project tsc check | Checking from scratch in a fresh process is slower than tsc-rs and tsgo on macOS, and level with tsc-rs on Linux |
Sources: results/exec-benchmark-full.json, results/lang-axes.json and results/check-latency-*.json. Source token counts are in results/source-tokens.json.
Method
Machines, tool versions, sampling and load limits.
| Item | What we did |
|---|---|
| Machine | Native speed: one Apple M3, 2026-09-30 and 2026-10-01. WebAssembly: one Windows x64 PC. Edit-check latency: that PC, a Linux x64 runner and a macOS arm64 runner. Results are grouped by machine. |
| OS and cores | macOS (darwin-arm64), 8 cores; Windows x64, 8 CPUs; Linux x64, 4 CPUs; macOS arm64 runner, 3 CPUs. |
| Tool versions | Native: Node v24.14.0, Apple clang 21.0.0, rustc 1.96.0. WebAssembly: Node v22.21.1, clang 22.1.8. Checkers: TypeScript 5.9.3, tsgo 7.0.0-dev.20260707.2, tsc-rs 0.1.0. |
| Runs and statistic | Native: 7 samples per side. WebAssembly and edit-check latency: 15. Each time is the median of interleaved runs, and each result is checked against a checksum, or for a check a clean exit, before it is timed. Edit costs are tokens per accepted edit with one repair round. |
| Load rule | Native runs started only while the 1-minute load average was at or below 10 (highest at a sample start: 9.78). Linux and macOS report that load average. Windows has none, so its load is CPU use: 5.57 of 10 allowed for WebAssembly, and 8 of 8 CPUs for edit-check latency, which makes those Windows rows contended. |
Sources: results/exec-benchmark-full.json, results/wasm-benchmark.json, results/check-latency-*.json. The exact commands, run times and the field to read for each figure are in scripts/bench-repro/README.md. Experiments that need a model cannot be re-run without one, so their replies are committed.
Where A0 loses
Recorded performance regressions, editing failures and unsupported features.
| Where | What | Source |
|---|---|---|
| Native speed | Up to 4.31x behind the best of C, Rust and Zig (mat4), and up to 7.58x behind each language's own inlined driver. | results/exec-benchmark-full.json |
| WebAssembly | Slower than clang on the test programs in the first WebAssembly table below, and slower to compile and instantiate on a further set counted in the ledger. | results/wasm-benchmark.json, results/loss-ledger.json |
| Emitted JavaScript | One recorded loss against hand-written JavaScript (the noop kernel); a quiet Windows rerun tied, and the loss stays in the ledger. | results/exec-benchmark-noop-win32.json |
| Checking from scratch | A whole-front-end check in a fresh process is slower than tsc-rs and tsgo on macOS; the macOS and Windows A0 numbers in that table were recorded before edits were checked incrementally. | results/check-latency-darwin-arm64.json, results/check-latency-linux-x64.json, results/loss-ledger.json |
| Evidence | Native timings come from one machine, and the compiler versions of the other languages are not recorded in the results file. | STATUS.md, Known limits |
| The language | No floating point, no heap, no recursion, and no GPU or x86-64 speed claim. | STATUS.md, Known limits |
Native speed on small test programs
A0, C, Rust and Zig run the same small functions.
The slowest test program is 4.31x slower on mat4 against baselines with the same calling convention, and 7.58x slower on mat4 against each language's own inlined driver. Same calling convention (A0 and the best of C, Rust and Zig, both called out of line): 2 wins, 9 ties, 8 losses of 19. Inlined drivers: 2 wins, 9 ties, 8 losses. Against hand-written C alone, A0 takes 1.16x as long, a geometric mean over the test programs; 1.00x would be equal.
A test program is one small function (benchmark authors call it a kernel), written by hand in every language, timed on the same inputs and checked against a checksum first. A0 here is machine code from its own AArch64 code generator, with no runtime, no garbage collector and no C compiler in between.
A0 under both baselines, per test program
Two baselines, because they answer different questions. Same calling convention: A0 and the best of C, Rust and Zig are all called out of line from a C driver. Inlined: each language's fastest result with its own driver, which the compiler can inline. Speedup = the baseline's time divided by A0's: below 1.00x A0 is slower. Win = at least 1.2x faster; loss = more than 10% slower; the file gives verdicts only for the first baseline, the second uses the same win rule and a 10% tie band (results/exec-benchmark-full.json).
| Test program | Same calling convention: speedup, verdict | Own inlined driver: speedup, verdict |
|---|---|---|
| affine | 0.63x loss | 0.60x loss |
| rotl | 0.99x tie | 0.99x tie |
| clamp | 0.69x loss | 0.68x loss |
| mix | 0.96x tie | 0.96x tie |
| ident | 1.00x tie | 1.00x tie |
| noop | 1.00x tie | 1.00x tie |
| chain3 | 1.00x tie | 1.00x tie |
| branchy | 0.90x loss | 0.89x loss |
| arrfill | 0.98x tie | 0.99x tie |
| arrfill4k | 1.32x win | 1.33x win |
| loop64 | 0.99x tie | 0.99x tie |
| dot1k | 1.03x tie | 1.03x tie |
| prefix1k | 0.40x loss | 0.40x loss |
| hist256 | 0.67x loss | 0.67x loss |
| mat4 | 0.23x loss | 0.13x loss |
| fnv4k | 1.04x tie | 1.04x tie |
| xs4k | 0.74x loss | 0.73x loss |
| minmax1k | 0.75x loss | 0.75x loss |
| filter2 | 2.02x win | 2.00x win |
Every loss under either baseline is in bold. A0's code is called out of line from a C driver while the other languages' drivers are inlined, so the second baseline is the harder one for A0.
Where A0 places on each test program
First of the languages that ran each program on 4 of 19 test programs (a language is timed only on the programs it has source for, so fewer languages ran the later programs); on every one, A0 takes at most 7.58x as long as the fastest language.
Baseline: each language's own driver, inlined. Place 1 = fastest of the languages that ran that test program (every language ran the first ten; later ones only some). Time per call, median of 7 interleaved runs, every result checksum-verified (results/exec-benchmark-full.json).
measured: 49 of 49 languages
| Test program | A0's place (1 = fastest) | Fastest language other than A0 | A0 takes this many times as long |
|---|---|---|---|
| affine | 21 of 49 | Vala, 4.93 ns | 1.68x (A0 is slower) |
| rotl | 3 of 49 | Rust, 3.25 ns | 1.01x (A0 is slower) |
| clamp | 15 of 49 | Julia, 4.81 ns | 1.46x (A0 is slower) |
| mix | 15 of 49 | Zig, 3.21 ns | 1.04x (A0 is slower) |
| ident | 8 of 49 | D, 1.60 ns | 1.00x (same speed) |
| noop | 2 of 49 | Rust, 1.60 ns | 1.00x (same speed) |
| chain3 | 2 of 49 | C, 3.21 ns | 1.00x (same speed) |
| branchy | 14 of 49 | Odin, 3.21 ns | 1.12x (A0 is slower) |
| arrfill | 11 of 49 | Fortran, 3.21 ns | 1.01x (A0 is slower) |
| arrfill4k | 1 of 5 | C, 233.60 ns | 0.75x (A0 is faster) |
| loop64 | 6 of 49 | Zig, 78.19 ns | 1.01x (A0 is slower) |
| dot1k | 1 of 5 | C, 168.52 ns | 0.97x (A0 is faster) |
| prefix1k | 4 of 5 | C, 328.74 ns | 2.52x (A0 is slower) |
| hist256 | 3 of 5 | C, 1604.77 ns | 1.49x (A0 is slower) |
| mat4 | 4 of 5 | C, 18.30 ns | 7.58x (A0 is slower) |
| fnv4k | 1 of 5 | Rust, 20704.63 ns | 0.96x (A0 is faster) |
| xs4k | 5 of 5 | C, 6295.27 ns | 1.37x (A0 is slower) |
| minmax1k | 3 of 5 | C, 126.99 ns | 1.34x (A0 is slower) |
| filter2 | 1 of 5 | C, 653.13 ns | 0.50x (A0 is faster) |
Reading a row: the third column names the fastest of the other languages and its time per call; the last column is A0's time divided by that time. Below 1.00x, A0 is faster than every other language on that test program; above 1.00x, that language is faster and the number gives the ratio.
Speed against 48 other languages
Execution time across languages, normalized to A0.
8 of the other 48 languages are more than 5% faster than A0 (C, Rust, Crystal, Odin, D, C++, Nim, V); 3 are within 5% of A0; the rest are slower.
How long each language takes, as a multiple of A0's time
Each bar is one language's time per call divided by A0's, as a geometric mean over the test programs it has source for. 1.00x = the same speed as A0; a longer bar = slower than A0; a bar marked A0 slower belongs to a language faster than A0. Bar length is logarithmic. Interleaved runs, medians; JIT rows warm; interpreters at their own iteration tier.
measured: 49 of 49 languages
Show all 49 languages
Shown first: A0 and selected languages. All 49 languages are behind the disclosure, in the same order. A0 here is machine code from A0's own AArch64 code generator, with no C compiler in between. Numbers, toolchains and iteration tiers are in results/exec-benchmark.json.
Startup
Time from process launch to the first result.
A0 takes 2.50 ms from launch to first result: place 9 of 48 languages (1 = fastest). Node takes 23 ms and Python 18 ms.
Startup is the time for one process launch to run one iteration of a test program and print its result; compile time is separate (1430 ms for the ten test programs with A0, 9536 ms with rustc).
Time from launch to first result
Milliseconds, shorter bar = faster start. Bar length is logarithmic. JVM and .NET rows include their runtime start.
measured: 48 of 49 languages
Show all 48 languages
Shown first: A0 and selected languages; all 48 are behind the disclosure, in the same order. The A0 binary for startup is the C-path build; startup of the direct AArch64 binary is not yet measured.
WebAssembly on Windows
A0 and clang WebAssembly output, measured on Windows x64.
clang's time divided by A0's has a geometric mean of 1.08 over 19 test programs: A0 is faster on 7, ties on 7 and is slower on 5, the worst being arrfill at 0.78. Source: results/wasm-benchmark.json.
A0 against clang, WebAssembly, Windows x64
Both sides run the same driver inside the module: a chain of dependent trips of one function. A0 is the direct wasm32 backend; clang is -O3 on the hand-written C kernel. Time per trip is the median of 15 interleaved samples in Node v22.21.1; module size is in bytes. Windows has no load average, so load is CPU use: highest 8 of 10 allowed. A ratio below 1.00x means clang is faster.
| Test program | Time per trip, ns (A0 / clang) | clang time divided by A0 time | Module bytes (A0 / clang) |
|---|---|---|---|
| arrfill | 4.64 / 3.63 | 0.78x A0 slower | 334 / 485 |
| noop | 0.69 / 0.58 | 0.84x A0 slower | 173 / 512 |
| rotl | 2.49 / 2.23 | 0.89x A0 slower | 220 / 491 |
| filter2 | 2812 / 2547 | 0.91x A0 slower | 589 / 741 |
| ident | 0.73 / 0.66 | 0.91x A0 slower | 173 / 512 |
Show the other 14 test programs
| Test program | Time per trip, ns (A0 / clang) | clang time divided by A0 time | Module bytes (A0 / clang) |
|---|---|---|---|
| prefix1k | 1279 / 1254 | 0.98x tie | 348 / 633 |
| clamp | 4.48 / 4.45 | 0.99x tie | 241 / 422 |
| affine | 3.52 / 3.50 | 1.00x tie | 229 / 557 |
| mix | 4.41 / 4.40 | 1.00x tie | 242 / 411 |
| hist256 | 6564 / 6607 | 1.01x tie | 385 / 641 |
| chain3 | 2.39 / 2.41 | 1.01x tie | 209 / 521 |
| branchy | 3.68 / 3.86 | 1.05x tie | 241 / 421 |
| xs4k | 10083 / 10755 | 1.07x A0 faster | 354 / 580 |
| loop64 | 133 / 145 | 1.09x A0 faster | 247 / 519 |
| fnv4k | 18558 / 22306 | 1.20x A0 faster | 354 / 608 |
| minmax1k | 1379 / 1729 | 1.25x A0 faster | 372 / 656 |
| mat4 | 166 / 236 | 1.42x A0 faster | 4000 / 1512 |
| dot1k | 1180 / 1761 | 1.49x A0 faster | 267 / 653 |
| arrfill4k | 625 / 1500 | 2.40x A0 faster | 358 / 519 |
Load time (compile plus instantiate) is a separate result: A0 is slower than clang on some test programs, noisy between runs; every one is in the loss ledger. results/wasm-benchmark.json, results/loss-ledger.json.
Validation
Time to validate an edit. These checks do not prove that it meets the requested behavior.
After an edit, A0's native checker answers in 2.83 ms: place 1 of 34 languages that have a separate check step (1 = fastest). Checking and running the edit takes A0 2.49 ms: place 1 of 49 languages.
The check is the build or type-check of the edited program. Check and run adds compiling to an executable when the language needs it, and one run whose checksum must match. The first chart times an edit to a real 4,100-line front end; the others time the small test programs, each language with its own toolchain from a cold process.
Checking an edit to a 4,100-line front end: A0 per edit against whole-project TypeScript checkers
A0 validates one edit in 2 to 23 ms in a warm session. In a fresh process, checking the whole front end from scratch takes 73 ms on macOS and 69 ms on Linux, slower than tsc-rs and tsgo on macOS and level with tsc-rs on Linux.
Two different jobs, stated in each row. One edit, warm session: A0 applies the edit in process on a session that is already open, and the others are whole-project checks that start a fresh process every time, wall time. Whole front end, fresh process: both sides start cold and check everything, the like-for-like row, which A0 loses on macOS. On Linux that row is the shipped command, `a0 check` of the release executable; the macOS row predates it and times a node process that imports the checker. The same front end is 4,103 lines in A0 and 637 lines in TypeScript. The macOS and Windows edit times were recorded before edits were validated incrementally (results/edit-incremental.json: 7.24 ms before and 1.82 ms after, median of the same 14 edits). Windows was measured on a saturated machine, so tsc and tsgo moved by several times between runs there: read the Windows rows as contended and do not compare them as ratios.
| Machine and load | What A0 is timed on | A0 | tsc 5.9.3 | tsgo 7.0.0-dev | tsc-rs 0.1.0 |
|---|---|---|---|---|---|
| macOS arm64, 3 CPUs, load average 10, at the limit | one edit, warm session | 5.2 ms | 531 ms | 56.7 ms | 53.7 ms |
| same machine | whole front end, fresh process | 72.6 ms | 531 ms | 56.7 ms A0 slower | 53.7 ms A0 slower |
| Linux x64, 4 CPUs, load average 1.19 | one edit, warm session | 1.7 ms | 872 ms | 120 ms | 86.0 ms |
| same machine | whole front end, fresh process | 69.2 ms | 872 ms | 120 ms | 86.0 ms tie |
| Windows x64, 8 CPUs, CPU use 8 of 8 (contended) | one edit, warm session | 22.7 ms | 3918 ms | 25652 ms | not run |
| same machine | whole front end, fresh process | 847 ms | 3918 ms | 25652 ms | not run |
Medians of 15 interleaved runs, 3 warm-ups, every sample asserting success. Not run: tsc-rs on Windows (no binary) and bun check (not a command). results/check-latency-darwin-arm64.json, results/check-latency-linux-x64.json, results/check-latency-win32-x64.json.
Time to check one edited test program
A0 (native) checks in 2.83 ms: place 1 of 34 (1 = fastest). Fastest: A0, 2.83 ms. Median language: 281.42 ms. A0 (Node CLI), the previous path, took 125.23 ms.
Median milliseconds over the test programs, shorter bar = faster. Bar length is logarithmic.
measured: 34 of 49 languages
Show all 34 languages
Languages with no separate check step (they run the file directly) are only in the next chart. A0 here is the native self-hosted checker, run as a cold process with no Node (A0 (Node CLI) is the previous path). Shown first: A0 and selected languages; all 34 are behind the disclosure, in the same order. results/lang-axes.json.
Model edits: time from a reply to a type-checked program
On the model edits below, A0 applies the edit and type-checks the whole program in 0.51 ms at the median; TypeScript with a warm compiler takes 15.1 ms.
Milliseconds from reply received to program type-checked, median per edit, over the accepted set-C Sonnet edits on the 40-function program; shorter bar = faster; bar length is logarithmic. Go uses hand translations of the reference edits.
measured: 4 of 49 languages
Measured on a loaded machine (load average up to 97 on 8 cores); absolute times will move on a quiet run, which will replace these. Cold rows start the compiler per edit; warm rows reuse a running one. Only these languages have model-written edits to replay, because the model-edit experiment exists only for them (Cost section); every language is checked on a fixed edit in the two charts above. results/edit-loop.json.
Parallel folds
Automatic parallel folds compared with manually parallelized implementations.
A0 --parallel is the fastest implementation on 2 of 7 test programs; on the others, at least one other implementation is faster (listed under the chart).
A fold whose step is an associative reduction can be split across cores without changing its result. a0 emit c --parallel does that from a cost model, and every result is checked exact against serial A0 and the reference interpreter.
Each implementation's time as a multiple of A0 --parallel's, per test program
1.00x = the same speed as A0 --parallel; above 1.00x A0 --parallel is faster; below 1.00x (red) the other implementation is faster. Bar length is logarithmic. 8 cores, median of 7 interleaved samples.
measured: 8 of 49 languages
sum24: 16777216 iterations, A0 2.59 ms
xor24: 16777216 iterations, A0 3.78 ms
count20: 1048576 iterations, A0 0.31 ms
mr22: 4194304 iterations, A0 3.06 ms
dot64k: 65536 iterations, A0 0.05 ms
max64k: 65536 iterations, A0 0.03 ms
hash64k: 65536 iterations, A0 6.20 ms
Measured on a loaded machine (load average up to 212 on 8 cores when timing started); ratios are interleaved, absolute times will move on a quiet run. Hand-parallel C is OpenMP parallel-for with a reduction. Where another implementation is faster, its time as a multiple of A0 --parallel's is in parentheses: xor24 (C + OpenMP 0.78x); mr22 (C + OpenMP 0.50x); mr22 (Rust 0.92x); mr22 (C 0.95x); dot64k (C 0.84x); dot64k (Rust 0.90x); max64k (Rust 0.78x); max64k (C 0.80x); hash64k (C + OpenMP 0.95x). On the 64K-element kernels the cost model keeps A0 serial. results/parallel.json.
Hardware
Generated circuit size and cycle counts.
The 48 corpus functions compile to 49 synthesized modules (the shared divider counts as one): 55530 generic cells in all, 9325 in the largest, simulated on 5262 oracle cases.
A0 compiles the same programs to clocked SystemVerilog. A cell is one gate-level element after Yosys generic synthesis, so fewer cells means a smaller circuit; cell counts are relative size, not area on a real chip. Every number here is read from results/hardware.json.
synthesized modules
generic cells in all modules
cells in the largest module
oracle cases simulated
Of the 36 modules simulated, 13 are clocked: they take a median of 66.20 clock cycles per case, from 34.00 to 554.47. The rest are combinational and answer within the same cycle.
A cycle count is how many clock ticks a module needs from receiving its inputs (start) to raising its done signal, averaged over the simulated oracle cases. Division, remainder and loops make a module clocked, because they run over several cycles.
fewest mean cycles, any clocked module
median mean cycles across clocked modules
most mean cycles, any clocked module
Verification
Verification coverage by target.
One source, checked against one oracle: 10 paths (the interpreter, the optimizer, JavaScript, native C, C++, WebAssembly and the JVM) ran all 5262 generated cases; the native assembly targets ran the 4297 cases that need no io (5 targets); SystemVerilog is simulated separately on 5262 cases and is unverified in this run (1 target).