Skip to content

Commit 1f31b06

Browse files
committed
Refine comments
1 parent acf7f8c commit 1f31b06

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib/testing/perf-regression.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ function createPerformanceSession(
172172
return;
173173
}
174174

175-
// Read existing JSON (assumed to exist & non-empty by your workflow)
175+
// Load the baseline JSON used for both DUMP and CHECK modes.
176+
// - In DUMP mode: merge new data with existing entries so multiple methods remain grouped.
177+
// - In CHECK mode: compare current results against stored baselines.
176178
const raw = fs.readFileSync(FILE_PATH, 'utf8');
177179
const perfRegressionJson: Record<string, PerfRegressionEntry> = JSON.parse(raw);
178180

@@ -222,6 +224,7 @@ function createPerformanceSession(
222224
'Please provide the method name you are proving (pass it to start(..., methodName)).'
223225
);
224226
}
227+
225228
if (!Object.prototype.hasOwnProperty.call(cs, methodName)) {
226229
throw new Error(
227230
`The method "${methodName}" does not exist in the analyzed constraint systems for "${programName}". ` +

0 commit comments

Comments
 (0)