From 7aecfcb7f4e0f5d6e758da929bf8e1ede09f7467 Mon Sep 17 00:00:00 2001 From: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com> Date: Fri, 19 Jun 2026 06:21:57 +0000 Subject: [PATCH] test(perf): compare saved CLI startup benchmarks --- scripts/bench-cli-startup.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/bench-cli-startup.ts b/scripts/bench-cli-startup.ts index 296506198cab..7b050cb7cb06 100644 --- a/scripts/bench-cli-startup.ts +++ b/scripts/bench-cli-startup.ts @@ -1031,6 +1031,13 @@ function readBenchmarkComparison( }; } +function readBenchmarkComparisonForTesting( + baselinePath: string, + candidatePath: string, +): { comparison: unknown } { + return readBenchmarkComparison(baselinePath, candidatePath); +} + async function main(): Promise { if (hasFlag("--help")) { printUsage(); @@ -1140,7 +1147,7 @@ export const testing = { parseGatewayPortEnv, parseNonNegativeInt, parsePositiveInt, - readBenchmarkComparison, + readBenchmarkComparison: readBenchmarkComparisonForTesting, writeJsonOutput, };