benchmark compiled agent installations - #2248
Conversation
Prime Agent performance — completedPR Overall: 0 regressed · 0 improved · 17 no clear change.
Python runtime
Sandbox cost: ~$0.0874 — no inference calls. Methodology and samplesMain resolved at 2026-09-11T22:56:20.146671+00:00. Harness
|
The Bun migration benchmarks currently finish with incomplete results because the harness builds only npm packages and the new installer rejects its local HTTP downloads.
This PR builds a Linux x64 compiled archive alongside the npm fallback packages when the tested revision supports it, then lets the installer choose its normal default. It preserves checksums for both formats, enables the installer's existing loopback test exception, and rejects a compiled candidate that falls back to Node. This must land on main before rerunning the Bun stack's benchmarks, because those jobs use the trusted default-branch harness.
Tested the build and install changes in two fresh Prime sandboxes: main used Node, while the Bun candidate used the compiled executable. Both completed installation, three cold/warm startup trials, memory measurements, and three Python runtime trials without failed samples. All 41 harness tests, Python lint/format checks, and npm run check passed, including the final guard against Node fallback.
ENG-6119 · Related Bun stack: #2140 → #2165 → #2166.
Note
Benchmark compiled agent installations with native Linux x64 release archives
worker.preparenow validates the four npm tarballs, optionally builds a Linux x64 native archive via a pinned Bun 1.4.0 toolchain, and reports combined archive size with SHA256SUMSprepare_native_artifactdetects compiled-release support from the presence of both build scripts; incomplete support or a missing output archive raises an errorverify_installation_formatreads the installed launcher's ELF header and rejects Node-script launchers when native artifacts were selected, while npm-only trials still record npm formatinstallpasses the loopback insecure-download test flag to the installer environment without overriding the installer's default artifact-format selectionverify_installation_formatraises when a compiled candidate installs through Node — any benchmark trial expecting native execution must ensure the native build succeeds or it will fail rather than silently benchmark NodeMacroscope summarized e561a39.
Note
Low Risk
Changes are confined to the benchmark harness and documentation; they do not alter the product installer or runtime outside CI/sandbox measurement paths.
Overview
Extends the PR benchmark harness so revisions with compiled release support are measured with a Linux x64 native archive in addition to the four npm tarballs, instead of npm-only artifacts that made Bun migration comparisons incomplete.
During untimed
prepare, the worker optionally installs pinned Bun, runs the binary build and archive assembly, writes SHA256SUMS over all packaged archives, and recordsartifact_format(npm-tarballsvsnpm-tarballs+linux-x64-native). Partial native toolchains now fail preparation rather than silently benchmarking npm-only.Install trials set
PRIME_AGENT_ALLOW_INSECURE_HTTP_FOR_TESTSfor loopback release downloads (without forcing install method), thenverify_installation_formatchecks whetherprime-agentis an ELF binary; compiled candidates that still install the Node shim are treated as failed installs. README and newtest_worker_release.pytests document and lock in this behavior; an existing install test now stubs aprime-agentbinary so format verification does not break.Reviewed by Cursor Bugbot for commit e561a39. Bugbot is set up for automated code reviews on this repo. Configure here.