The NetWasm team has detailed the optimization work implemented across releases 0.10.1 through 0.10.8. These updates target key areas such as exception handling, array bounds checks, WebAssembly SIMD, and integer division. NetWasm is a compiler and runtime that translates C# programs into standalone WebAssembly files, utilizing its own runtime and a ported CoreLib from .NET.
On its internal benchmark suite, NetWasm now demonstrates superior performance compared to Mono AOT, which also runs .NET on WebAssembly. While a new garbage collector previously improved NetWasm's performance on allocation-heavy code, the 0.10 series addresses areas where Mono AOT was faster, such as plain loops. For instance, a quicksort of 100,000 integers now completes in 54.0 ms on NetWasm, down from 77.2 ms, surpassing Mono AOT's 58.0 ms.
Across 2,213 test cases, NetWasm 0.10.8 with O3 optimization and NetWasmGC achieves 0.41 times the execution time of Mono AOT.
Version 0.10.1 introduced significant gains in exception handling by modifying how throws are processed and how catching handlers release frames, reducing UI churn from 17.6 ms to 7.9 ms. Version 0.10.2 improved loop performance by inlining small methods and skipping redundant array checks. This update reduced the quicksort time and improved DoomSharp rendering from 3,595 ms to 1,934 ms for a 120-frame render.
WebAssembly SIMD support arrived in 0.10.7, allowing `Vector128`, `Vector<T>`, and `PackedSimd` to lower to 128-bit Wasm instructions. This enabled vectorization of loop-invariant `Math` calls, such as in a Burgers' equation solver, which saw its first test drop from 497 ms to 71 ms, outperforming Mono AOT's 186 ms. Finally, 0.10.8 optimized division and range-checked arithmetic, reducing a trial-division test from 1,376 ms to 765 ms, compared to Mono AOT's 862 ms.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
NetWasm's 0.10 release series introduces optimizations across exception handling, array bounds checks, WebAssembly SIMD, and integer division. These updates have significantly improved C# performance on WebAssembly, with NetWasm now outperforming Mono AOT in benchmarks and approaching desktop .NET speeds for some workloads.