Repository navigation
ZIPP v0.0.43
ZIPP 0.0.43
A performance and engine-efficiency release. The Tier O optimizing JIT is now enabled by default on x86-64 (ZIPP_NO_OPT=1 opts out), backed by direct register-to-register calls (D3), polymorphic and depth-2 inlining, zero-cell immutable value captures (Upvals::Vals), inline closure upvalues, native super() / derived-constructor fast paths, and broad interpreter, GC, RegExp, and WebAssembly improvements.
Compared with v0.0.42, real-world applications run 21% to 35% faster in default mode, pure interpreter execution (ZIPP_NOJIT=1) runs 14% to 21% faster, bench/real improves by 2.8% across all 13 programs (4.0% across the 10 headline programs), and WebAssembly builds are 1.6% to 1.9% smaller while running faster on every steady-state workload.
Benchmark Highlights (v0.0.43 vs. v0.0.42, Node.js)
All measurements below were captured on Windows x86-64 with byte-identical output against Node.js v24.19.0, comparing matched local non-PGO fat-LTO builds of v0.0.42 (5ccb7a96) and v0.0.43 (25115758, default mode with Tier O on). The published binaries are PGO builds, whose absolute times differ.
Real-World Applications (bench/apps, 7 Repetitions of 15 Iterations, Default Mode)
| App | v0.0.42 Warm |
v0.0.43 Warm |
Change vs. v0.0.42 |
Warm vs. Node.js (0.0.42 → 0.0.43) |
Whole Process vs. Node.js (0.0.42 → 0.0.43) |
|---|---|---|---|---|---|
| linkedom (parse HTML into a DOM and query it) | 3.88 ms | 2.81 ms | −27.6% (1.38×) | 3.70× → 2.68× | 1.23× → 1.21× |
| defuddle (extract an article, convert to Markdown) | 82.30 ms | 53.37 ms | −35.2% (1.54×) | 3.78× → 2.45× | 2.46× → 1.86× |
| webforai (HTML to Markdown through hast and mdast) | 62.72 ms | 49.45 ms | −21.2% (1.27×) | 4.09× → 3.22× | 2.37× → 2.05× |
Pure Interpreter / NOJIT (bench/apps, 5 Repetitions of 15 Iterations, ZIPP_NOJIT=1)
| App | v0.0.42 Warm |
v0.0.43 Warm |
Warm Change | v0.0.42 Wall |
v0.0.43 Wall |
Wall Change |
|---|---|---|---|---|---|---|
| linkedom | 10.89 ms | 8.62 ms | −20.8% (1.26×) | 457.7 ms | 421.5 ms | −7.9% |
| defuddle | 207.36 ms | 175.50 ms | −15.4% (1.18×) | 3670.7 ms | 3127.4 ms | −14.8% |
| webforai | 266.08 ms | 228.35 ms | −14.2% (1.17×) | 4581.8 ms | 3991.6 ms | −12.9% |
WebAssembly (zipp-wasm, Matched wasm-opt -Oz & bench.cjs)
| Artifact | v0.0.42 Raw (-Oz) |
v0.0.43 Raw (-Oz) |
Raw Change | v0.0.42 Gzip-9 |
v0.0.43 Gzip-9 |
Gzip Change |
|---|---|---|---|---|---|---|
Full (javascript.wasm) |
4,734,008 B | 4,660,636 B | −73.4 KB (−1.55%) | 1,767,456 B | 1,749,245 B | −18.2 KB (−1.03%) |
Lite (javascript-lite.wasm) |
2,738,762 B | 2,686,240 B | −52.5 KB (−1.92%) | 1,056,169 B | 1,042,532 B | −13.6 KB (−1.29%) |
On crates/zipp-wasm/tests/node/bench.cjs, v0.0.43 improves on all 11 measured steady-state workloads with zero regressions: arith-mod −59.5% (5.78 → 2.34 ms), alloc-object −23.2% (7.38 → 5.67 ms), prop-mono −14.1% (2.56 → 2.20 ms), arith-int −11.8% (3.98 → 3.51 ms), prop-poly −9.8% (4.20 → 3.79 ms), regex −8.5%, arith-float −8.4%, json −7.1%, array-hof −3.6%, string-build −2.8%, and array-build −1.3%.
Suites
| Suite | Result |
|---|---|
JS tools/bench.py (bench/real, 13 programs, 15 paired reps) |
0.9717× (−2.83%) across all 13 rows and 0.9600× (−4.00%) across the 10 headline rows (map-set-heavy −23.4%, regex-log-scan −7.9%, markdown-render −5.1%, json-large −3.2%, sparse-array −2.7%), ALL_CORRECT=1 |
| Test262 (pinned corpus, default mode with Tier O on) | 96,563 of 96,564 (99.999%), 0 unexpected failures, 0 stale expectations, 0 skips |
New in 0.0.43
- Tier O optimizing JIT enabled by default (x86-64):
- Tier O is now on by default (
ZIPP_NO_OPT=1disables it), including automatic promotion of hot OSRMEMloops while preserving specialized register-homed and field-stream loop reducers. - Added D3 direct register-to-register calls, getter dispatch, commit-tail mutable callees, inline
Boolean(x)/MakeClosure/NewEmptyColl, and dead-end throw-block elision. - Added polymorphic, closure, and depth-2 inlining,
InlineMegaGetProp, LICM/GVN (including pureLengthandcharCodeAthoisting), enum switch jump tables, constant propagation, cold-path outlining, and shared stubs. - Lowered
charCodeAtto unboxedI32, added inline constant-keyGetIndexand writable shapedSetIndexICs, mixed packed-ASCIIstrict_eq(bit-63mirror), nativefor-offinallyrouting,Op::StrCase/Op::StrAppend, and Tier O private-field andIterToArrayfast paths. - Eliminated Tier O deopt storms via Tier C shape harvesting,
GuardFiddeopt separation, and spill-slot recycling.
- Tier O is now on by default (
- Closures, objects, and classes:
- Added zero-cell inline immutable value captures (
Upvals::Vals, up to 3 values stored directly inside the 64-byteHeapObj::Closure, including top-level hoisted function declarations and TDZ-freeconstbindings) and inline1..=2cell upvalues (Upvals::Inline) with packedUpvalCache, cuttingwebforaiswept objects by 20% and GC collections by 21%. - Added native
<stub:super_ctor>, derived-constructor chain caching, frame-free derived constructors and ctor-less subclasses, inlineThisCheck/SuperCtorFetch, and fastClassDataprivate fields. - Cached function and class static data properties in site ICs and
dict_prop_memo, added a guardedfn_propsset fast path, inlineAddWay/SymAddtransitions, plannedInitDataProp, and keyed-memoin(<stub:has_prop>). - Routed
fn.apply(thisArg, array)directly into the native call stub with zero-alloc rest-apply forwarding, and added directArray.fromiterators and identity-hashedWeakMap/WeakSettables.
- Added zero-cell inline immutable value captures (
- Interpreter, GC, RegExp, and WebAssembly:
- Shrunk interpreter dispatch/native frames, optimized TypedArray reads (16-slot cache), global routing,
join/split/spread, and safe-sandbox recycle pools (obj_pool/arr_poolenabled for non-JIT/WASM builds) plus zero-alloc Proxy descriptors. - Accelerated GC with inline
ReadyCells/ReadyClosuresslab refills, zero-alloc GC scratch, major-only pool address sorting, lazyWeakMapGEN_WEAK_KEY, emptyMap/SetGEN_LEAFtracking, andkey_pool_usedgating. - Optimized RegExp with compact
RegexpProtoFastSlotsacross all 7 prototype methods, aRegExpCorecache, and zero-match / single-match / pooled-buffer functional-replacer fast paths. - Reduced WebAssembly module size by folding static env switches, dropping dead lazy/profiler/Temporal code in WASM/lite builds, and outlining cold capture/compiler paths.
- Shrunk interpreter dispatch/native frames, optimized TypedArray reads (16-slot cache), global routing,
- Fixes:
- Cleared
pending_throwacross all abruptIteratorClosepaths (Object.fromEntries,Map/Set/WeakMap/WeakSetconstructors,Array.from, and iterator zip helpers) so JIT deopts insidereturnhooks cannot abort with the outer exception. - Fixed
ObjMap::side_table_singlekey_bytesaccounting, prevented null-prototype reads injit_inline_mega_get_propfrom poisoning the shared shape absent-property memo, fixed derived-classsuper()spec semantics and Tier Owide_uninit_mask, and cleanedaarch64-D warningsbuilds.
- Cleared
Downloads
| File | What it is |
|---|---|
zipp-0.0.43-windows-x86_64-portable.exe |
The Windows command line; run it from anywhere. |
zipp-0.0.43-windows-x86_64-installer.msi |
The same binary, installed for the current user into %LOCALAPPDATA%\Programs\ZIPP and added to PATH; no administrator rights. Uninstall from Settings > Apps. |
zipp-0.0.43-linux-x86_64 |
The Linux command line, x86-64 (glibc 2.35 or later). chmod +x it after downloading. |
zipp-0.0.43-linux-arm64 |
The same for 64-bit Arm. |
zipp-0.0.43-linux-armv7 |
The same for 32-bit Arm (hard float); interpreter only, and WebAssembly on wasmi. |
zipp-0.0.43-javascript.wasm |
The JavaScript engine for browsers, Node, Deno and Bun. |
zipp-0.0.43-javascript-typescript.wasm |
The same with TypeScript and TSX. |
zipp-0.0.43-javascript-lite.wasm |
The JavaScript core without Intl and Temporal, built for size. |
zipp-0.0.43-javascript-python.wasm |
JavaScript and Python, torch built in. |
zipp-0.0.43-javascript-python-base.wasm |
JavaScript and Python without torch. |
zipp-0.0.43-javascript-php.wasm |
JavaScript and PHP 8.x, with PhpApp SAPI and SQL bridge support. |
zipp-0.0.43-javascript-rust.wasm |
JavaScript and Rust, with Axum/SQLx worker-boot support. |
zipp-0.0.43-torch-package.wasm |
The torch package for the -python-base engine. |
zipp-0.0.43-<engine>.wasm.br |
Each WebAssembly module compressed with Brotli (quality 11), about a quarter of its size. Serve it with Content-Encoding: br and Content-Type: application/wasm, or let zipp.mjs load it; the plain .wasm is the default. |
zipp-0.0.43-wasm-embed-kit.zip |
zipp.mjs (the loader and sandbox, version 1.5.0) and its types, the host SDK (1.4.0), the engine's TypeScript declarations, the browser GPU adapter, docs and examples. |
SHA256SUMS |
Checksums of every file. |
Verification
- All release binaries, WebAssembly variants, and the embed kit are built and verified from the tagged commit in release.yml and release-build.yml.
- Every WebAssembly engine module retains the audited 51-function host import surface (plus
zippTorchKernelon Python builds) and the 1 GiB linear memory cap.
Full Changelog: v0.0.41...v0.0.43