Daily performance tracking for .NET WebAssembly in browsers. Automatically builds sample apps against the latest nightly .NET SDK, measures load time, download size, and memory across engines and build configurations, then publishes the results to a live dashboard.
| App | Description |
|---|---|
| empty-browser | Minimal .NET WASM console app — baseline for startup and size |
| empty-blazor | Bare Blazor WebAssembly app — framework overhead baseline |
| blazing-pizza | Real-world Blazor PWA with routing, local storage |
| micro-benchmarks | JS↔C# interop, JSON parsing, and exception-handling ops/sec |
| havit-bootstrap | Havit Blazor Bootstrap component library |
| mud-blazor | MUD Blazor Material Design component library |
| igniteui-light | Infragistics FOSS component library |
| radzen-blazor | Offline Radzen component gallery using the NuGet library, with a full-page navigation walkthrough (.NET 9+) |
| avalonia-bench | Minimal Avalonia app — startup plus virtualization, templates, styling, text, Skia drawing, rendering (FPS) and dispatcher scenarios |
The benchmarking CLI (bench.ps1 / bench.sh) orchestrates these stages:
- enumerate-daily-packs / enumerate-release-packs — Query NuGet feeds for available SDK versions
- resolve-sdk — Pick an SDK (latest, by version, or by commit) and fetch runtime/SDK commit SHAs
- download-sdk — Install the .NET SDK via dotnet-install scripts
- build —
dotnet publisheach (app × preset × runtime) combination - measure — Launch browsers (Chrome/Firefox via Playwright) or CLI engines (V8/Node), collect metrics
- transform-views — Aggregate result JSON into weekly/release views for the dashboard
- update-views — Commit views to the gh-pages branch
Default: resolve-sdk,download-sdk,build,measure,transform-views
| Preset | Config | Native | Description |
|---|---|---|---|
| dev-loop | Debug | SDK default | Clean Debug; sets only Configuration=Debug |
| no-workload | Release | — | Baseline release; trimmed, no native build |
| native-relink | Release | ✓ | Native WASM via Emscripten, no AOT |
| aot | Release | Mono | Full Mono AOT or full CoreCLR R2R (SDK-default composite mode) |
| r2r-pgo | Release | App-dependent | CoreCLR profile-guided partial R2R |
| invariant | Release | ✓ | Invariant globalization (no ICU data) |
- Compile time — wall-clock
dotnet publishduration - Disk size — native
.wasmand managed.dllsizes - Download size — compressed bytes over the wire (Chrome CDP)
- Time to managed — cold (first load) and warm (min of reloads) to
dotnet_managed_ready - Memory peak — max JS heap observed during load
- Walkthrough timing — interactive navigation scenarios (pizza, havit, mud, Radzen and other galleries)
- Microbenchmark ops/sec — JS interop, JSON parse, exception handling
NET12 dev-loop (/net12-debug) measures clean-Debug run-to-render,
hot reload, incremental rebuild and optional walkthroughs using the existing
dev-loop preset. See metric definitions
and local commands.
Prerequisites: Node.js ≥ 24, .NET SDK (downloaded automatically).
# Windows
.\bench.ps1 --verbose --stages enumerate-daily-packs,enumerate-release-packs,resolve-sdk,download-sdk,build,measure --preset dev-loop --app blazing-pizza --dry-run
.\bench.ps1 --sdk-version 12.0.100-alpha.1.26460.113 --runtime-pr 132419 --runtime coreclr --stages enumerate-daily-packs,resolve-sdk,download-sdk,build-runtime,build,measure --app semi-avalonia --preset aot --engine chrome --dry-run# Linux / macOS
./bench.sh --verbose --stages resolve-sdk,download-sdk,build,measure --preset dev-loop --app blazing-pizza --dry-runUse --help for all options.
To measure Havit against local runtime changes, run
node bench/bootstrap.mjs <path-to-local-runtime-build>, then
node bench/iterate.mjs after edits. Composite R2R is the default; clean controls
are cached without switching your checkout.
See Local runtime measurements.
Add or remove source-day history for the currently selected local experiment:
node bench/runtime-bench.mjs history add --from 2026-10-12 --to today --fetch
node bench/runtime-bench.mjs history drop --from 2026-10-20 --dry-runAdd keeps passed dates and after; drop keeps raw files and caches.
- benchmark.yml — Daily + manual: resolve → build → measure → deploy results (recent runs)
- docker-build.yml — Weekly: builds
browser-bench-buildandbrowser-bench-measurecontainer images - schedule.yml — Dispatches benchmarks for SDK channels
bench/ TypeScript CLI — pipeline orchestration and measurement
src/ .NET sample apps and MSBuild configuration
docker/ Container images for CI (Ubuntu 24.04, Node 24, Playwright, V8)
artifacts/ Local build outputs, results, and downloaded SDKs
tracking/ Cache branch for SDK enumeration state
gh-pages/ Dashboard (Blazor WASM) + published app snapshots + result views
See docs/ for detailed documentation.