{"slug": "wasmz-upgrades-to-zig-0-17-1", "title": "Wasmz upgrades to Zig 0.17.1", "summary": "Wasmz's upgrade from Zig 0.16.0 to Zig 0.17.1 improved execution speed across all three benchmarks, with fib(30) dropping 5.7% (21.0 ms to 19.8 ms), QuickJS fib(25) falling 2.3% (136.6 ms to 133.5 ms) and esbuild bundling dropping 1.1% (942.2 ms to 932.4 ms), the project's developer reported in a November 24, 2026 performance report. The developer attributed the gains to code generation from LLVM 22.1.8 and said the upgrade was handled entirely by Gemini 4 Carbon with human review, unlike the prior 0.15.2-to-0.16 move that was human-led with LLM assistance. Binary size grew 17.2 KB (+1.9%) to 908.8 KB while memory use stayed roughly flat, and the developer is now porting Wasmz to the ESP32-C3 to expose hardware as a Wasm interface.", "body_md": "A few months ago, I shared the Wasm interpreter I developed and raised the performance regression that occurred after upgrading from Zig 0.15.2 to 0.16.\n\nThe conclusion is that under Zig 0.17.1, Wasmz’s computational performance has improved, thanks to code generation from LLVM 22.1.8.\n\nThe upgrade from 0.15.2 to 0.16 was led by a human with LLM assistance, while this upgrade was handled entirely by Gemini4 Carbon, with human review.\n\nThis is not a complaint, but the many small tasks involved in each version upgrade are too burdensome for the human brain, though well suited for LLM processing.\n\nCurrently I’m porting Wasmz to the ESP32-C3 and exposing hardware functionality as a Wasm interface, so that Zig only needs to be compiled to Wasm in order to run on the ESP32.\n\nWish me luck.\n\n```\nRan check bench/results and measure Avg RSS for report\nRan measure true direct-process Avg RSS for wasmz\n\n# wasmz Performance Report (Zig 0.16.0 → Zig 0.17.1)\n\n**Date:** 2026-11-24  \n**Target Runtime:** wasmz (`ReleaseFast` / `fast`)  \n**Platform:** Darwin 27.3.0 arm64 (macOS 27.3, Apple M4, 32 GB RAM)\n\n## Binary Size\n\n| Zig Version | Size | Change |\n|---|---:|---:|\n| 0.16.0 | 891.5 KB | — |\n| 0.17.1 | 908.8 KB | +17.2 KB (+1.9%) |\n\n---\n\n# Execution Time Comparison\n\nLower is better.\n\n## fib(30) — pure C compiled to WASM\n\n| Zig Version | Median | Stddev | Change |\n|---|---:|---:|---:|\n| 0.16.0 | 21.0 ms | ±0.6 | — |\n| 0.17.1 | 19.8 ms | ±3.4 | -1.2 ms (-5.7%) |\n\n## QuickJS fib(25)\n\n| Zig Version | Median | Stddev | Change |\n|---|---:|---:|---:|\n| 0.16.0 | 136.6 ms | ±1.6 | — |\n| 0.17.1 | 133.5 ms | ±1.5 | -3.1 ms (-2.3%) |\n\n## esbuild bundling\n\n| Zig Version | Median | Stddev | Change |\n|---|---:|---:|---:|\n| 0.16.0 | 942.2 ms | ±10.0 | — |\n| 0.17.1 | 932.4 ms | ±8.4 | -9.9 ms (-1.1%) |\n\n---\n\n# Memory Usage Comparison\n\nLower is better.\n\n## fib(30)\n\n| Zig Version | Peak RSS | Avg RSS | Peak Change | Avg Change |\n|---|---:|---:|---:|---:|\n| 0.16.0 | 18.9 MB | 6.9 MB | — | — |\n| 0.17.1 | 19.0 MB | 6.9 MB | +0.1 MB (+0.2%) | ~0% |\n\n## QuickJS fib(25)\n\n| Zig Version | Peak RSS | Avg RSS | Peak Change | Avg Change |\n|---|---:|---:|---:|---:|\n| 0.16.0 | 7.0 MB | 5.2 MB | — | — |\n| 0.17.1 | 7.0 MB | 5.2 MB | ~0% (-0.4%) | ~0% (-1.2%) |\n\n## esbuild bundling\n\n| Zig Version | Peak RSS | Avg RSS | Peak Change | Avg Change |\n|---|---:|---:|---:|---:|\n| 0.16.0 | 107.4 MB | 57.3 MB | — | — |\n| 0.17.1 | 107.3 MB | 56.4 MB | -0.1 MB (-0.1%) | -0.9 MB (-1.6%) |\n```\n\nThis upgrade’s code was entirely written by Gemini 4 Carbon, with human review.", "url": "https://wpnews.pro/news/wasmz-upgrades-to-zig-0-17-1", "canonical_source": "https://ziggit.dev/t/wasmz-upgrades-to-zig-0-17-1/18571#post_1", "published_at": "2026-11-24 02:58:38+00:00", "updated_at": "2026-11-24 03:15:27.955876+00:00", "lang": "en", "topics": ["ai-tools", "large-language-models", "developer-tools"], "entities": ["Wasmz", "Zig 0.17.1", "Zig 0.16.0", "Gemini 4 Carbon", "LLVM 22.1.8", "ESP32-C3", "QuickJS", "esbuild"], "also_reported_by": [], "takeaway": "Upgrading Wasmz from Zig 0.16.0 to Zig 0.17.1 (LLVM 22.1.8) cut fib(30) time 5.7% to 19.8 ms and QuickJS fib(25) 2.3% to 133.5 ms at roughly flat memory, for a 17.2 KB (+1.9%) binary-size cost.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/wasmz-upgrades-to-zig-0-17-1", "markdown": "https://wpnews.pro/news/wasmz-upgrades-to-zig-0-17-1.md", "text": "https://wpnews.pro/news/wasmz-upgrades-to-zig-0-17-1.txt", "jsonld": "https://wpnews.pro/news/wasmz-upgrades-to-zig-0-17-1.jsonld"}}