Skip to content

Commit 6f1fc1a

Browse files
committed
no system
1 parent a5c469b commit 6f1fc1a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

internal/perf/src/memtest.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,15 @@ export function memtest(opts: MemtestOptions, setup: () => Promise<Server>) {
200200
// different from the previous ones
201201
delete diff['(compiled code)'];
202202

203+
// "(system)" is a label used to group objects and memory allocations that are managed directly by th
204+
// JavaScript engine's internal systems. a growing "(system)" footprint could signal code bloat or
205+
// inefficient code patterns that force the engine to create many internal data structures, leading
206+
// to an increased "(system)" size
207+
//
208+
// TODO: use it to detect code bloat or inefficient code patterns. optimizing it will lead to better
209+
// JS execution performance and reduced memory usage
210+
delete diff['(system)'];
211+
203212
if (Object.keys(diff).length) {
204213
expect.fail(`Leak detected on ${Object.keys(diff).length} object(s) that kept growing in every snapshot:
205214
${Object.values(diff)

0 commit comments

Comments
 (0)