Understand any codebase instantly. System intelligence for codebases, built for humans and AI.
TypeScript aiai-memoryclaude-codeclicode-analysiscode-mappingcode-memorycodebase-understandingcodexdeveloper-toolsllmopenclawpersistent-memoryprogram-analysissoftware-architecturesystem-intelligencesystem-mapping
ci(perf): wall-time budgets from the CI runner; read budgets without a stat race
KageBinaryb9307704d5b3
diff --git a/ix-cli/scripts/perf-gate.mjs b/ix-cli/scripts/perf-gate.mjsindex 606bb7bc..bacc48d7 100644--- a/ix-cli/scripts/perf-gate.mjs+++ b/ix-cli/scripts/perf-gate.mjs@@ -172,7 +172,12 @@ async function main() {if (opts.update) {// A command's own tolerance survives an update; context's fan-out is not// deterministic yet, so it starts looser than the default.- const previous = existsSync(BUDGETS) ? JSON.parse(readFileSync(BUDGETS, "utf8")).budgets ?? {} : {};+ let previous = {};+ try {+ previous = JSON.parse(readFileSync(BUDGETS, "utf8")).budgets ?? {};+ } catch {+ // No budgets yet: start from this run.+ }const budgets = Object.fromEntries(Object.entries(results).map(([name, m]) => {const tolerance = previous[name]?.tolerance ?? (name.startsWith("context") ? 1.25 : undefined);return [name, tolerance ? { ...m, tolerance } : m];diff --git a/ix-cli/test/perf/budgets.json b/ix-cli/test/perf/budgets.jsonindex 78d1bdbc..e476781e 100644--- a/ix-cli/test/perf/budgets.json+++ b/ix-cli/test/perf/budgets.json@@ -4,49 +4,49 @@"map (fresh)": {"requests": 9,"bytes": 940272,- "wallMs": 8319+ "wallMs": 16221},"map (no-op)": {"requests": 6,"bytes": 914,- "wallMs": 282+ "wallMs": 448},"map (one-line TS edit)": {"requests": 10,"bytes": 925866,- "wallMs": 2192+ "wallMs": 5686},"map (add one file)": {"requests": 459,"bytes": 966736,- "wallMs": 6555+ "wallMs": 14162},"context IxClient": {"requests": 110,"bytes": 5630913,- "wallMs": 1004,+ "wallMs": 2214,"tolerance": 1.25},"context --from-issue": {"requests": 115,"bytes": 2770336,- "wallMs": 843,+ "wallMs": 1356,"tolerance": 1.25},"impact resolveWorkspaceRoot": {"requests": 26,"bytes": 43144,- "wallMs": 304+ "wallMs": 442},"rank dependents/function": {"requests": 1819,"bytes": 5494180,- "wallMs": 1840+ "wallMs": 6464},"callers getEndpoint": {"requests": 3,"bytes": 41825,- "wallMs": 234+ "wallMs": 353}}}