Skip to content

LBA REQ 048

github-actions[bot] edited this page Nov 19, 2026 · 2 revisions

LBA-REQ-048: Golden-VM Mass Compile benchmark

Status

Proven

Area

Deployment / benchmark (ADR-0023 Phase 1 -- the golden VM as a benchmark actor)

Statement

The system shall benchmark the golden VM by mass-compiling the public icon-editor source with LabVIEWCLI, so a fail-closed gate proves the committed benchmark result is correctly derived and cross-plane comparable.

Rationale

The golden VM exists to run objective, reproducible benchmarks -- the North Star is cross-plane comparison. A MassCompile of a pinned public source (ni/labview-icon-editor) is a real LabVIEW workload whose machine-independent result (VI count + bad count + success) is comparable across planes, with the compile time as the performance metric. This replaces the deferred VI Analyzer benchmark (operator-directed).

Acceptance Criteria

  • LabVIEWCLI -OperationName MassCompile compiles the icon-editor resource/ source headless-as-actor (Xvfb, VI Server 3363).
  • massCompileBenchmark.mjs records the result (directory, VI/CTL count, bad-VI count, success) plus a timing-invariant resultHash and the compile time.
  • validateMassCompileReceipt fails closed unless the resultHash re-derives from the result, the verdict matches the rule, the bad-VI list is consistent with its count, and the digest is intact.
  • Live evidence: MassCompile of ni/labview-icon-editor resource/ on lba-golden compiled 307 VIs/CTLs with 0 bad and "operation succeeded" in ~24s; the receipt records it.

Verification

Historical statement (no longer implemented)

Supersession

Change Guidance

The benchmark validator experiments/mass-compile/massCompileBenchmark.mjs plus its self-test are gated by mass-compile-benchmark in verify-local-gates and mapped in the RTM. Authored under the singular-requirement directive (one shall).

TestID

T-048

CodeRef

experiments/mass-compile/massCompileBenchmark.mjs; experiments/mass-compile/verify-mass-compile-benchmark.selftest.mjs; experiments/mass-compile/fixtures/mass-compile-benchmark-receipt.json; experiments/verify-local-gates.mjs

RTM Status

Proven

Clone this wiki locally