Browse documentation

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:

  1. Reports lacked hardware identity: AWFY and JetStream reports recorded only os, release, arch, and logical cpus, omitting CPU model, CPUID family/model, hypervisor, and cloud/VM host metadata.
  2. AWFY overwrote same-day pointers: awfy/daily/<YYYY-MM-DD>.json kept 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).
  3. JetStream sharded workloads across six runners: Each jetstream-workload shard landed on a separate ubuntu-latest VM with a different CPU model, so merged JetStream reports combined up to four different CPUs into one geomean while jetstream-merge-reports.js kept only the first shard's platform. All six JetStream workloads combined take roughly two minutes of execution time on one runner, shorter than the sharded setup plus merge pipeline.

Decision

  1. Record public-safe runner hardware metadata in every benchmark report. scripts/cross-engine-report.js exposes collectPlatformMetadata(), used by scripts/awfy-driver.js, scripts/jetstream-driver.js, and scripts/web-tooling-driver.js. In addition to os, release, arch, and cpus, reports record cpuModel, cpuVendor, cpuFamily, cpuModelId, cpuStepping, hypervisor, machineVendor, machineProduct, and cloud (derived from DMI/hypervisor/kernel flavor). Hostnames, runner instance names, serial numbers, and private paths are never recorded. scripts/jetstream-driver.js also gains --cpu <n> for pinned local measurements, matching scripts/awfy-driver.js. scripts/jetstream-merge-reports.js compares shard hardware signatures and marks mixed-hardware merges (mixed: true, cpuModel: null, cpuModels: [...]) instead of attributing them to the first shard.
  2. Run all six JetStream workloads on one runner in ci.yml and pr.yml. Removing jetstream-plan and jetstream-workload eliminates cross-CPU shard mixing so every published main and PR JetStream report measures all six workloads on one CPU class, mirroring awfy / awfy-report while cutting CI runner time.
  3. Keep every main-branch AWFY run under per-run pointers. website/src/lib/awfy-blob-store.ts writes new pointers to awfy/daily/<YYYY-MM-DD>/<runId>.json, matching JetStream. blob-history.ts already reads both <YYYY-MM-DD>.json and <YYYY-MM-DD>/<runId>.json, so existing daily pointers remain readable without migration.
  4. Publish compact hardware summaries and compare like with like on /performance. Both Blob publishers record summary.hardware. The dashboard computes a canonical hardwareClassKey (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 in compatibilityKey so 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 as Unrecorded runner CPU.

Consequences

  • A runner hardware switch on ubuntu-latest no 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 CPU and 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-latest job instead of eight, removing cross-CPU shard mixing and eliminating the need for cross-shard Node.js version pinning in ci.yml and pr.yml.
  • PR comments for AWFY and JetStream include the runner hardware summary in their footnote.