v0.0.40: multi-round speedups, perf-map labels & SoftN containers
v0.0.40 merges PR #110 from @codeandsolder for Linux JIT perf-map function names and ships multi-round speedups across real-world JS/Python apps (1.55x-2.88x), official JS (0.58x Node) and Python (0.62x CPython) suites, regex, safe-sandbox WASM, and PHP/Rust, alongside live FormLogic x SoftN browser containers.
v0.0.40 (0cd3eab8) is a multi-round performance release spanning every part of the engine — and starts by thanking @codeandsolder for PR #110, which appends sanitized JavaScript function names (fn4264_querySelectorAll_whole-fn) to Linux ZIPP_PERF_MAP=1 JIT ranges while keeping zero overhead when perf-map profiling is off. Clearer profiles on DOM-heavy code directly guided the hot paths targeted in this release.
Measured wins (non-PGO fat-LTO v0.0.40 vs PGO v0.0.39, Node 24 & CPython 3.13)
- Canonical 15-rep PGO JS capture (
0cd3eab8,publishable:true):0.583×Node.js equal-row all-30 geomean (Normal 130.532×, Hostile 170.624×), 29/30 wins vs Node (onlyallocation-survival1.141× left),0.461×Bun,0.389×Deno; pure interpreter (ZIPP_NOJIT=1 ZIPP_NO_RX_JIT=1):0.430×Bellard's QuickJS (30/30 wins). - Canonical 15-rep Python
tools/python_bench.py(published v0.0.40 PGO vs CPython 3.13.14):0.626×CPython in-process work time (micro 0.601×,macro 0.767×, 26/36 wins; whole-process wall time0.456×). - Real-world apps (byte-identical output vs Node.js v24.19.0 / CPython 3.13):
html2text2.67×–2.88× faster (41.15 -> 14.31–15.39 ms, wall1.37×CPython),markdownify1.85×–1.94×,bs4_css1.71×–1.82×,linkedom1.55× (9.56 -> 6.14–6.21 ms, wall1.38×Node),defuddle1.09×–1.15×,webforai1.00×–1.05×. - JS
bench/regex(2.44× -> 1.90×Node;literal-utf164.0× -> 0.82×), JSbench/hostile(3 of the 4 slowest stress tests flipped to beating Node),safe-sandboxWASM pure-safe IC hits & metered superinstructions, and PHP/Rust O(1) fixes (array_pop~65×, PHP cursor loop ~180×, Rust collections 8.6×).
Why apps still trail V8 & CPython on warm loops — and what moved them
On Python apps, the biggest wins came from raising PyAttrs DEPTH_MAX from 64 to 128 (so html2text.HTML2Text with 84 instance fields stopped spilling to PyTable), routing hot allocations through OnceLock<StaticKeyPlan> pools, caching STR_HAS_SURROGATE in JsStr::memo_state, adding native str/tuple subclass hooks for NavigableString and soupsieve NamedTuples, and fusing PyTruth with an inline x86-64 fast path. On JS apps, preventing enclosing MEM OSR regions from shadowing inner INT/DOUBLE loops, widening class_member_cache, adding megamorphic class getter/setter dispatch, eliminating array_snapshot clones, and enabling Set/Map/String JIT iterators cut steady-state overhead without touching conformance. Even so, warm megamorphic DOM loops still trail V8 TurboFan's speculative cross-callee inlining and CPython's C regex/HTML modules, and we publish both the v0.0.39->v0.0.40 speedups and the honest warm/wall ratios against Node and CPython on the benchmarks page.
SoftN + FormLogic browser containers and a five-language playground
Alongside v0.0.40, zipp.org now embeds live FormLogic marketplace apps running inside SoftN (@softn/container) browser sandboxes on ZIPP v0.0.40 WASM: a closed Shadow DOM + VDOM Worker for the frontend, a PHP 8.x ZIPP Worker for the backend, and an app-scoped XDB SQLite 3 database bridged through addAppBridge("sql", ...). Launch Kiln & Wheel Pottery Studio or BrewDesk Café Ops in the container demo, or try ten new Python 3.13, PHP 8.x, and Rust examples directly in the browser playground. Full release notes: docs/releases/0.0.40.md.