feat(core): add large memory regression test (#25059)

This commit is contained in:
cynthialong0-0
2026-04-10 11:47:23 -07:00
committed by GitHub
parent 565eafc1ec
commit a74bb603c0
5 changed files with 833368 additions and 6 deletions
@@ -13,6 +13,7 @@ export interface MemoryBaseline {
heapUsedBytes: number;
heapTotalBytes: number;
rssBytes: number;
externalBytes: number;
timestamp: string;
}
@@ -63,6 +64,7 @@ export function updateBaseline(
heapUsedBytes: number;
heapTotalBytes: number;
rssBytes: number;
externalBytes: number;
},
): void {
const baselines = loadBaselines(path);
@@ -70,6 +72,7 @@ export function updateBaseline(
heapUsedBytes: measured.heapUsedBytes,
heapTotalBytes: measured.heapTotalBytes,
rssBytes: measured.rssBytes,
externalBytes: measured.externalBytes,
timestamp: new Date().toISOString(),
};
saveBaselines(path, baselines);