Compare pages
compareDetermine if a page change truly improved performance by comparing fresh measurements against a saved baseline, using min-max ranges to avoid misleading noise.
Instructions
Answer "did that change actually help". Measures now and compares against a saved baseline for the same URL and strategy. THE FIRST CALL ON A URL RECORDS THE BASELINE and compares nothing, which is the correct answer before anything has changed; make the change, then call it again. A verdict is only given where the two min-max ranges do NOT overlap: on an unchanged page the performance score has been measured running 27 to 37 and Total Blocking Time 824ms to 3.05s, so comparing medians alone reports improvements that are just the instrument moving. Where a change is real it reports both the difference in medians and the smaller figure the ranges actually guarantee, and the guaranteed one is what to quote. Also reports which findings stopped and started failing, and flags a Lighthouse version change, which moves scores without the page moving. Does NOT compare field data, which is a 28-day window and cannot show a change made this week. SLOW, several minutes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runs | No | Distinct analyses each side. Default 3. | |
| urls | No | Absolute http(s) URLs. Defaults to saved URLs. | |
| strategy | No | Part of the baseline identity. Default mobile. | |
| save_baseline | No | Replace the baseline with this measurement. Default false, so repeated calls keep comparing against the same starting point. |