// Manual live-data gate: run in the same environment; keep noisy WAN checks out of offline CI. import {readFileSync} from 'node:fs'; const baseline=JSON.parse(readFileSync(new URL('./browser-results.json',import.meta.url),'utf8')); const next=JSON.parse(readFileSync(process.argv[2],'utf8')); for(const expected of baseline){const actual=next.find(r=>r.operation===expected.operation);if(!actual||actual.B.n<10)throw Error('Missing 10 paired samples: '+expected.operation);if(actual.B.p75>expected.B.p75)throw Error('p75 regressed: '+expected.operation);} console.log('All measured p75 ceilings passed');