The barometer records runner hardware, keeps every AWFY run, runs JetStream on one runner, and compares within CPU classes
Date: 2026-12-03
Area: performance, benchmarking, ci, website
Related: refines ADR 0091, ADR 0178, ADR 0226, ADR 0234
Context
Hosted ubuntu-latest CI runners are provisioned across multiple CPU models and cloud hosts (both Azure and AWS). Because different JavaScript engines respond differently to indirect-branch prediction, dispatch loops, and cache hierarchy, no cross-engine ratio cancels the runner's CPU model.
Across main-branch ci.yml AWFY runs between 2026-12-01 and 2026-12-03 with identical QuickJS and near-identical Goccia binaries, QuickJS geomean times clustered into four runner classes (~863–1092 µs, ~1059–1148 µs, ~1232–1248 µs, and ~1634–1663 µs). For the exact same commit (d9afef73), two runs 26 minutes apart (47205084826 and 47210289685) reported goccia-interpreter / qjs of 0.604 vs 0.665, while slower-class runs (47054204450, 47087100422, 47091804578, 47166294522) reported 0.744–0.760 even though within each class the ratio was flat. Every other ratio (goccia-interpreter / node-jitless, goccia-interpreter / jsc, node-jitless / qjs) moved by 17–27% across the same CPU classes.
Three compounding issues turned that hardware spread into apparent regressions on /performance:
- Reports lacked hardware identity: AWFY and JetStream reports recorded only
os,release,arch, and logicalcpus, omitting CPU model, CPUID family/model, hypervisor, and cloud/VM host metadata. - AWFY overwrote same-day pointers:
awfy/daily/<YYYY-MM-DD>.jsonkept only whichever main CI run finished last on each UTC day, hiding within-day variance and creating day-to-day jumps whenever consecutive days ended on different CPU classes (and leaving sparse multi-day gaps for every other CPU class). - JetStream sharded workloads across six runners: Each
jetstream-workloadshard landed on a separateubuntu-latestVM with a different CPU model, so merged JetStream reports combined up to four different CPUs into one geomean whilejetstream-merge-reports.jskept only the first shard'splatform. All six JetStream workloads combined take roughly two minutes of execution time on one runner, shorter than the sharded setup plus merge pipeline.
Decision
- Record public-safe runner hardware metadata in every benchmark report.
scripts/cross-engine-report.jsexposescollectPlatformMetadata(), used byscripts/awfy-driver.js,scripts/jetstream-driver.js, andscripts/web-tooling-driver.js. In addition toos,release,arch, andcpus, reports recordcpuModel,cpuVendor,cpuFamily,cpuModelId,cpuStepping,hypervisor,machineVendor,machineProduct, andcloud(derived from DMI/hypervisor/kernel flavor). Hostnames, runner instance names, serial numbers, and private paths are never recorded.scripts/jetstream-driver.jsalso gains--cpu <n>for pinned local measurements, matchingscripts/awfy-driver.js.scripts/jetstream-merge-reports.jscompares shard hardware signatures and marks mixed-hardware merges (mixed: true,cpuModel: null,cpuModels: [...]) instead of attributing them to the first shard. - Run all six JetStream workloads on one runner in
ci.ymlandpr.yml. Removingjetstream-planandjetstream-workloadeliminates cross-CPU shard mixing so every published main and PR JetStream report measures all six workloads on one CPU class, mirroringawfy/awfy-reportwhile cutting CI runner time. - Keep every main-branch AWFY run under per-run pointers.
website/src/lib/awfy-blob-store.tswrites new pointers toawfy/daily/<YYYY-MM-DD>/<runId>.json, matching JetStream.blob-history.tsalready reads both<YYYY-MM-DD>.jsonand<YYYY-MM-DD>/<runId>.json, so existing daily pointers remain readable without migration. - Publish compact hardware summaries and compare like with like on
/performance. Both Blob publishers recordsummary.hardware. The dashboard computes a canonicalhardwareClassKey(keyed on OS, architecture, vCPU count, CPU model, CPU family/model ID, cloud provider, and specific cloud VM product, excluding minor kernel patch releases and CPU stepping) and includes it incompatibilityKeyso trend lines never connect runs from different hardware classes. Each suite section filters its trend chart and table to one runner hardware class by default (picking the recorded single-CPU class with the most complete runs once at least two runs share a recorded class, and falling back to all runs when only older unrecorded reports exist), displays the runner CPU on the latest cards, chart tooltips, chart data table, workload detail tables, and Markdown alternate, and keeps all older reports readable asUnrecorded runner CPU.
Consequences
- A runner hardware switch on
ubuntu-latestno longer draws a regression slope on/performance, and each CPU class develops its own clean, like-for-like trend line as main runs accumulate. - Older reports published before this change remain readable under
Unrecorded runner CPUand do not connect to new recorded-CPU segments. - Per-run AWFY pointers keep same-day runs visible, matching JetStream's retention model and preserving within-class variance across every CPU class.
- JetStream CI runs on one
ubuntu-latestjob instead of eight, removing cross-CPU shard mixing and eliminating the need for cross-shard Node.js version pinning inci.ymlandpr.yml. - PR comments for AWFY and JetStream include the runner hardware summary in their footnote.