Browse documentation

The barometer measures Goccia with its JIT and as the interpreter, and target 1 counts the interpreter

Date: 2026-11-30 Area: performance, benchmarking, ci, website Supersedes: in part ADR 0091 (the dashboard's ratio convention) Related: refines ADR 0176 and ADR 0178, #2187, #2061

Context

ADR 0176 judges target 1 on the interpreter, "the Goccia bytecode VM with no JIT tier", measured as the default production build, through geomeanRatios.goccia_over_qjs in the AWFY and JetStream reports. It expected the JIT to be opt-in.

Since #2187 (e938dfa5, pushed to main 2026-11-26 19:53:49 UTC) the Linux x86-64 build has the JIT (GOCCIA_JIT in Goccia.Checks.inc) and runs it unless the environment sets GOCCIA_JIT=0 (Goccia.Jit.inc); no command-line option turns it off. Main CI measures the barometer on ubuntu-latest x64 and sets no environment, so from that commit on, the goccia engine and goccia_over_qjs measured the JIT. On main at 90097719 (CI run 46498112282) the AWFY and JetStream goccia_over_qjs geomeans were 0.215× and 0.252×: the JIT's ratios, which the dashboard labelled as the interpreter target. Before #2187 the default build had no JIT, so earlier goccia results did measure the interpreter.

Decision

Both lanes measure Goccia twice. perf/awfy/manifest.json and perf/jetstream/manifest.json list two Goccia engines in ciReport.engines:

  • goccia: the default production build as it runs with no environment set. On Linux x86-64 that is the JIT.
  • goccia-interpreter: the same binary run with GOCCIA_JIT=0, the bytecode interpreter alone. Each sample runs it through env GOCCIA_JIT=0, so its recorded command shows the switch, and the report's engine metadata records env: { "GOCCIA_JIT": "0" }. The CI reports fail a report that does not.

Both run under the same protocol as every other engine (ADR 0178): the same flags, interleaved, in the alternating engine order. With --goccia-baseline and --goccia-candidate, each Goccia engine runs once for each binary, so a pull request also compares the interpreter of its build with main's.

Target 1 counts the interpreter. Its ratios are geomeanRatios["goccia-interpreter_over_qjs"] in the AWFY and JetStream reports, both below 1.00× on every shipped platform, as ADR 0176 sets out. ADR 0176's default production build is measured with GOCCIA_JIT=0 in its environment, a switch that selects the tier being judged rather than a performance option, and that environment is part of the build and flags that define a target-1 segment. goccia_over_qjs is the default build, and on a platform without the JIT the two measure the same thing. Goccia with its JIT is shown beside the interpreter and is not a target-1 measurement.

The barometer charts each engine relative to QuickJS. This replaces ADR 0091's convention of one ratio of Goccia over each reference engine in the dashboard's charts and headline; the reports still carry every pair of engines, and the dashboard's workload table and the PR comments keep Goccia's ratio over each reference. QuickJS is the 1.00× line, and the Goccia interpreter, Goccia with its JIT, node --jitless, JSC with its JIT off and Node.js each get a line of their own. Daily summaries carry quickjsRatios, each engine's geomean over QuickJS. For summaries published before this decision, the dashboard derives the reference engines' lines from the stored Goccia ratios, because over the same workloads a geomean of ratios divides like the ratios do. It plots a goccia result from a run created before #2187's push as the interpreter and one from a later run as the JIT. Every line breaks where the interpreter engine joins, since a new engine changes the alternating order the others run in, and the Goccia lines break where the default build gained the JIT.

Consequences

  • Each AWFY job and JetStream workload runs one more Goccia engine, and a pull request runs two more.
  • The barometer's target-1 history starts again where the interpreter engine joins. Between #2187 and this decision main measured no interpreter, so that stretch has no target-1 point.
  • Whether the JIT should be on by default is a separate question, still open in #2061, which asks for an opt-in JIT. This record only makes the barometer report both modes, whichever way that question is decided.

Refined by ADR 0234: the barometer also charts JSC with its JIT, for scale, as a line of its own.