Skip to content

Commit fdd4711

Browse files
committed
fix: clear head table after calibration to avoid dirty update labels
Looped calibration runs update (and other repeatable ops) only on the head page, appending ' !!!' to every 10th row each click. ensureState('rows') preserves the table when the count is still 1,000, so later paired samples time update against already-lengthened head labels vs clean base labels. Clear the table to empty at the end of calibrate so the sampling loop's ensureState rebuilds fresh rows for both sides symmetrically.
1 parent 1ca735c commit fdd4711

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎benchmarks/js-framework/pair.mjs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ async function calibrate(page, op) {
181181
if (elapsed >= SAMPLE_MS * 0.8 || repeat >= cap) break;
182182
repeat = parityFor(op, Math.min(cap, Math.ceil((repeat * SAMPLE_MS) / Math.max(elapsed, 0.1))));
183183
}
184+
await ensureState(page, 'empty');
184185
return Math.min(repeat, parityFor(op, cap));
185186
}
186187

0 commit comments

Comments
 (0)