ES
Tooling & InternalsCompiler · ABI v3

Benchmarks (6 Languages & AI)

Empirical v1.1.0 performance, binary size, run-cache, diagnostic latency, and live AI evaluation benchmarks for Wysna compared against Rust, Go, Python, Node.js, and Java.

This page publishes reproducible benchmarks for Wysna 1.1.0 (native-core-v1, -O2, commit c20a640) measured on Apple M3 (Mac15,12, 8 CPUs, 8 GiB RAM, macOS 27.2.1) with zero mocks.

Comparison toolchains: rustc 1.100.0, go1.27.4 (darwin/arm64), Python 3.14.7, Node v26.8.2, OpenJDK 25.0.4.1 (jackson-core-2.21.5.jar for JSON), and Anthropic claude-haiku-5-5.


1. Six-Language Runtime & Memory (30 samples)

Section titled “1. Six-Language Runtime & Memory (30 samples)”

Executed as fresh OS processes in rotated serial order via bench/cross_language/run.py:

Benchmark Wysna (-O2) Rust Go Python Node JS Java (HotSpot)
startup 2.394 ms (p95 2.777, 1.6 MiB) 2.859 ms (p95 3.056, 1.7 MiB) 3.409 ms (p95 3.821, 4.0 MiB) 17.365 ms (p95 18.161, 14.0 MiB) 28.167 ms (p95 30.164, 51.5 MiB) 20.340 ms (p95 21.252, 39.4 MiB)
ledger_1000 2.542 ms (p95 2.967, 2.0 MiB) 2.682 ms (p95 2.978, 2.0 MiB) 3.572 ms (p95 3.720, 4.5 MiB) 17.849 ms (p95 18.456, 14.3 MiB) 29.249 ms (p95 30.847, 53.8 MiB) 27.157 ms (p95 28.125, 41.5 MiB)
json_1000 2.884 ms (p95 3.310, 2.2 MiB) 2.579 ms (p95 2.805, 2.0 MiB) 3.890 ms (p95 4.119, 5.0 MiB) 22.376 ms (p95 22.943, 16.1 MiB) 29.301 ms (p95 30.814, 52.3 MiB) 58.173 ms (p95 59.119, 51.6 MiB)
ledger_20000 5.150 ms (p95 5.493, 5.9 MiB) 4.711 ms (p95 4.994, 3.9 MiB) 5.665 ms (p95 5.988, 8.7 MiB) 22.989 ms (p95 23.750, 20.1 MiB) 35.972 ms (p95 37.032, 68.8 MiB) 38.785 ms (p95 39.721, 49.1 MiB)
json_10000 6.172 ms (p95 6.495, 5.3 MiB) 3.699 ms (p95 3.981, 2.5 MiB) 6.958 ms (p95 7.317, 6.4 MiB) 26.548 ms (p95 27.825, 18.9 MiB) 30.516 ms (p95 32.330, 58.6 MiB) 67.064 ms (p95 71.344, 55.7 MiB)

Binary Size, Build Latency & Static JSON Diagnostics

Section titled “Binary Size, Build Latency & Static JSON Diagnostics”
Metric Wysna Rust Go Python Node JS Java
Binary size (startup / json / ledger) 90.6 KB / 165.8 KB / 130.2 KB 435.8 KB / 538.4 KB / 456.9 KB 2.43 MB / 3.78 MB / 2.43 MB N/A N/A .class (407 B / 5.5 KB / 5.9 KB)
Cold json release build 1,641.38 ms 3,763.50 ms 2,559.82 ms N/A N/A 435.25 ms (bytecode)
Edited CLI rebuild/check p50 101.15 ms (min 93.15 ms, 61.9 MB RSS) 114.10 ms (89.6 MB) 103.29 ms (68.2 MB) 35.13 ms (py_compile, 20.9 MB) 27.83 ms (--check, 52.8 MB) 214.34 ms (91.1 MB)
JSON type diagnostic (let value: int = "wrong") 18.636 ms (json-v1, 4.15 MB RSS, exit 1) 50.844 ms (--emit=metadata, 82.49 MB, exit 1) 39.009 ms (go build -json, 24.31 MB, exit 1) 36.262 ms (py_compile, 20.92 MB, exit 0, syntax-only) 28.603 ms (--check, 52.48 MB, exit 0, syntax-only) 203.456 ms (javac, 90.78 MB, exit 1)

1.1 Seven-Language Snapshot with ZeroLang v0.3.4 (2026-12-01, Strict Equivalence)

Section titled “1.1 Seven-Language Snapshot with ZeroLang v0.3.4 (2026-12-01, Strict Equivalence)”

Executed on Apple M3 (macOS 27.2.1 ARM64, 30 runtime / 5 build samples) adding zero 0.3.4 (build 5b3a90a) (--profile release-fast Mach-O) via bench/cross_language/run.py --zero:

Metric Wysna 1.1.0 ZeroLang 0.3.4 Rust 1.100.0 Go 1.27.4 Python 3.14.7 Node 26.8.2 Java 25.0.4
startup p50 (p95, RSS) 2.209 ms (2.667, 1.62 MiB) 2.008 ms (2.332, 1.59 MiB) 2.731 ms (3.009, 1.77 MiB) 3.155 ms (3.309, 4.05 MiB) 16.754 ms (17.635, 14.08 MiB) 27.505 ms (28.750, 51.55 MiB) 19.593 ms (20.442, 39.40 MiB)
startup binary size 88.5 KiB (90,648 B) 16.2 KiB (16,632 B) 425.6 KiB 2.32 MiB N/A N/A 407 B (.class)
Edited CLI rebuild p50 117.08 ms 26.91 ms 117.35 ms 113.83 ms 34.57 ms (syntax) 27.36 ms (syntax) 198.39 ms (javac)
JSON type diagnostic (check) 16.24 ms (exit=1) 8.40 ms (exit=1) 311.58 ms (exit=1) 160.75 ms (exit=1) 39.89 ms (exit=0) 31.83 ms (exit=0) 204.23 ms (exit=1)
json_1000 / json_10000 2.720 ms / 6.028 ms unsupported 2.507 ms / 3.499 ms 3.800 ms / 6.671 ms 21.638 ms / 26.046 ms 28.530 ms / 30.390 ms 56.468 ms / 65.277 ms
ledger_1000 / ledger_20000 2.428 ms / 4.929 ms unsupported 2.466 ms / 4.476 ms 3.438 ms / 5.397 ms 17.427 ms / 22.465 ms 28.813 ms / 35.830 ms 26.699 ms / 37.853 ms
  • Why json and ledger are unsupported in ZeroLang v0.3.4: BLD004 rejects GeneralAlloc, PageAlloc, and NullAlloc on both direct Mach-O and --backend llvm, MEM003 caps stack frames at 128 KiB, std.collections has no HashMap/Dict, std.json has no JsonDoc traversal or i32 decoder, and Void main cannot return exit code 2 on invalid inputs (main() -> i32 fails BLD004).

1.2 Syntactic Token Density (fallible_config_pipeline)

Section titled “1.2 Syntactic Token Density (fallible_config_pipeline)”
Language Characters Lines BPE Tokens (approx.) Ratio vs. Wysna
Wysna 301 10 82 1.000×
TypeScript 399 16 108 1.317×
Python 438 17 110 1.341×
Go 463 27 113 1.378×
Rust 421 18 132 1.610×
ZeroLang 0.3.4 569 23 172 2.098×

2. wysna run Cold vs Warm run-cache (Single-File & Multi-File)

Section titled “2. wysna run Cold vs Warm run-cache (Single-File & Multi-File)”

Compares cold build+run against the warm median of 5 consecutive runs with transitive local-import hashing:

Workload Runner Cold (ms) Warm Median (ms) Notes
startup (single-file) wysna run --profile=release 216.70 16.68 Native binary cache
startup (single-file) wysna run --profile=dev 3,583.21 18.99 Dev binary cache
startup (single-file) go run 2,036.20 46.78 Go build cache
startup (single-file) python3 / node 16.35 / 33.70 16.28 / 28.39 Interpreters / JIT
ledger (main.wysna + ledger.wysna) wysna run --profile=release 368.48 18.61 2 entries in run-cache; invalidates on imported edits
ledger (main.wysna + ledger.wysna) wysna run --profile=dev 3,688.03 18.84 Multi-file run-cache
ledger (main.wysna + ledger.wysna) go run 227.23 46.84 2.52x slower warm than wysna
ledger (main.wysna + ledger.wysna) python3 / node 17.58 / 29.08 16.26 / 29.57 Interpreters / JIT

3. Wysna AI Evaluation Evolution (30 Tasks, claude-haiku-5-5)

Section titled “3. Wysna AI Evaluation Evolution (30 Tasks, claude-haiku-5-5)”

Using bench/ai_eval/run_eval.py --provider=anthropic --model=claude-haiku-5-5 --max-repair-cycles=3 (up to 4 total attempts):

Metric Baseline (a9d4783) c20a640 Delta
Resolved (<= 4 attempts) 27 / 30 (90.0%) 30 / 30 (100.0%) +3 tasks (+10.0 pp)
pass@1 13 / 30 (43.3%) 16 / 30 (53.3%) +3 (+10.0 pp)
pass@3 25 / 30 (83.3%) 28 / 30 (93.3%) +3 (+10.0 pp)
Total model turns (avg) 59 (1.97) 50 (1.67) -9 (-15.3%)
Average wall latency 11,492.66 ms 9,075.07 ms -2,417.59 ms (-21.0%)
Average provider latency 10,927.96 ms 8,654.72 ms -2,273.24 ms (-20.8%)
Total tokens 228,142 (154,207 p / 73,935 c) 202,682 (143,911 p / 58,771 c) -25,460 (-11.2%)

Per-domain progression (pass@1 / pass@3 / resolved):

  • cli_scripting (12): 5 -> 8 pass@1, 12/12 pass@3, 12/12 resolved
  • data_files (8): 3 -> 3 pass@1, 6 -> 7 pass@3, 7/8 -> 8/8 resolved
  • multi_module (6): 4 -> 4 pass@1, 4 -> 6 pass@3, 4/6 -> 6/6 resolved
  • system_sqlite (4): 1/3/4 -> 1/3/4

4. Cross-Language AI Authoring Snapshot (8 Tasks, claude-haiku-5-5)

Section titled “4. Cross-Language AI Authoring Snapshot (8 Tasks, claude-haiku-5-5)”
Language pass@1 Resolved Total Turns Total Tokens (prompt / completion) Total LLM Total Compile Total Exec Median LOC (bytes)
Python 8 / 8 8 / 8 8 5,519 (1,863 / 3,656) 17,589.46 ms 342.02 ms 172.85 ms 19.0 (528.0 B)
Go 8 / 8 8 / 8 8 6,878 (1,880 / 4,998) 22,153.39 ms 1,801.03 ms 1,252.30 ms 24.0 (569.5 B)
Wysna 7 / 8 7 / 8 11 45,550 (31,709 / 13,841) 60,144.65 ms 1,468.69 ms 857.05 ms 28 (856 B)
Rust 7 / 8 7 / 8 11 34,379 (12,735 / 21,644) 78,918.31 ms 2,317.48 ms 1,010.83 ms 18 (541 B)
  • Prompt-token asymmetry (partly unattributed): Go and Python are in LLM pretraining weights (1,863–1,880 prompt tokens across all 8 tasks, about 233 per turn). Wysna averaged about 2,882 prompt tokens per turn (31,709 over 11 turns) and Rust about 1,158 (12,735 over 11 turns). Wysna’s reference prompt is about 803 tokens (an estimate), which explains roughly 28% of its prompt; the rest (task text, fixtures, and repair history that resends earlier code and diagnostics) is not yet attributed per source.
  • What XL-07 revealed: Task XL-07 parsed and filtered JSON arrays without external package managers. Go and Python passed 8/8 using their standard libraries. Rust (7/8) has no built-in JSON parser in std, so the model attempted a manual parser and exceeded the 4,096 output-token limit. Wysna (7/8) passed XL-01..XL-06 and XL-08 on pass@1 while compiling faster than rustc (1,468.69 ms vs 2,317.48 ms), and stumbled on XL-07 due to unqualified JsonError after import "std/json" as json and applying ?? to str ! JsonError — directly driving follow-up diagnostic, autofix, and prompt improvements.
  • Reproduction: See bench/cross_language/run.py and docs/BENCHMARKS.md in the compiler repository.

5. Eight-Language Extended Suite & Compiler Optimization Waves 1–4

Section titled “5. Eight-Language Extended Suite & Compiler Optimization Waves 1–4”

Expanding bench/cross_language/run.py to AWFY + CLBG + LangArena checksum-verified workloads (15 recorded runs + 3 warmups on Apple M3, 0 AI tokens spent), four optimization waves (fast NaN-boxed scalar indexing, inline struct-field WVal64 mutation + typed WStructSlab, byte-scan slice fast paths, and borrowed-call ARC clone elision + inline math) delivered major speedups and memory reductions across Wysna Native (-O2):

Optimization Progression (Baseline → Wave 4, p50_ms)

Section titled “Optimization Progression (Baseline → Wave 4, p50_ms)”
Workload Baseline (ms) Wave 4 (ms) Speedup vs Baseline Stddev W4 (ms) RSS Baseline → W4 Binary Size → W4
startup 2.664 2.402 1.11× 0.163 1.61 → 1.64 MiB 88.8 → 89.3 KiB
json_1000 2.760 2.669 1.03× 0.745 2.25 → 2.23 MiB 162.2 → 162.9 KiB
json_10000 7.067 5.826 1.21× 1.140 5.38 → 5.45 MiB 162.2 → 162.9 KiB
ledger_1000 3.074 2.382 1.29× 0.195 2.00 → 2.03 MiB 127.4 → 127.5 KiB
ledger_20000 5.850 4.956 1.18× 0.237 5.97 → 5.72 MiB 127.4 → 127.5 KiB
mandelbrot_401 10.418 10.196 1.02× 0.304 1.64 → 1.62 MiB 124.4 → 107.9 KiB (-13%)
sieve_100k_x20 11.167 10.190 1.10× 0.260 2.50 → 2.53 MiB 90.0 → 106.5 KiB
matmul_128 7.835 6.366 1.23× 0.396 2.34 → 2.34 MiB 126.0 → 109.1 KiB (-13%)
nbody_500k 480.383 65.415 7.34× 3.030 1.67 → 1.69 MiB 126.0 → 108.9 KiB (-14%)
binary_trees_14 420.703 138.717 3.03× 1.851 11.80 → 9.42 MiB (-20%) 125.4 → 108.8 KiB (-13%)
storage_7 20.483 9.951 2.06× 5.420 5.42 → 4.38 MiB (-19%) 125.9 → 109.1 KiB (-13%)
base64_16k_x40 26.872 9.719 2.76× 0.516 2.27 → 2.27 MiB 125.8 → 109.8 KiB (-13%)
csv_agg_25000 61.590 13.492 4.56× 0.377 7.20 → 7.16 MiB 142.7 → 126.7 KiB (-11%)

Post-Wave 4 Eight-Language Matrix (p50_ms across 15 runs)

Section titled “Post-Wave 4 Eight-Language Matrix (p50_ms across 15 runs)”
Workload C (clang -O3) Rust (opt-level=3) ZeroLang v0.3.4 Wysna Native (W4) Go 1.27 Node v26.8 Java 25 Python 3.14
startup 2.059 2.208 2.431 2.402 3.070 26.927 19.376 16.425
json_1000 — 2.702 — 2.669 3.751 29.640 58.038 22.555
json_10000 — 3.649 — 5.826 6.188 30.113 64.240 25.534
ledger_1000 — 2.470 — 2.382 3.330 28.739 26.919 17.352
ledger_20000 — 4.576 — 4.956 5.491 35.981 37.848 22.576
mandelbrot_401 9.334 10.374 — 10.196 10.281 37.337 36.015 439.274
sieve_100k_x20 4.428 5.120 21.909 10.190 6.918 36.508 31.092 162.036
matmul_128 2.613 2.756 — 6.366 4.248 33.335 32.188 142.366
nbody_500k 14.880 14.543 — 65.415 21.095 61.883 53.459 2415.031
binary_trees_14 40.573 46.473 — 138.717 27.374 50.449 43.415 314.090
storage_7 4.646 4.014 — 9.951 5.215 34.192 26.731 40.255
base64_16k_x40 2.979 3.721 19.803 9.719 4.115 31.068 34.879 21.844
csv_agg_25000 3.687 3.772 — 13.492 6.890 35.964 40.916 29.820
  • Post-W4 cold JSON build & diagnostic latency: Cold JSON build is 1832 ms (2.08× faster than Rust 3817 ms, 1.31× faster than Go 2395 ms); static JSON type diagnostics (check --output-format=json-v1) complete in 29.66 ms (4.12 MiB RSS) — 2.19× faster than C (64.90 ms), 6.54× faster than Go (194.12 ms), and 11.10× faster than Rust (329.31 ms).