From abef56b7879f766dfb49158790daddc67da82c98 Mon Sep 17 00:00:00 2001 From: Connor Clark Date: Thu, 27 Apr 2023 11:21:37 -0700 Subject: [PATCH] update TTI/SI test values --- core/test/audits/__snapshots__/metrics-test.js.snap | 12 ++++++------ .../__snapshots__/predictive-perf-test.js.snap | 4 ++-- core/test/audits/predictive-perf-test.js | 2 +- .../metrics/__snapshots__/interactive-test.js.snap | 2 +- .../__snapshots__/lantern-interactive-test.js.snap | 4 ++-- .../computed/metrics/lantern-speed-index-test.js | 10 +++++----- core/test/computed/metrics/speed-index-test.js | 4 ++-- .../fraggle-rock/reports/sample-flow-result.json | 12 ++++++------ core/test/results/sample_v2.json | 12 ++++++------ 9 files changed, 31 insertions(+), 31 deletions(-) diff --git a/core/test/audits/__snapshots__/metrics-test.js.snap b/core/test/audits/__snapshots__/metrics-test.js.snap index 1e8433418c6a..510ad88f0067 100644 --- a/core/test/audits/__snapshots__/metrics-test.js.snap +++ b/core/test/audits/__snapshots__/metrics-test.js.snap @@ -10,7 +10,7 @@ Object { "firstContentfulPaintTs": undefined, "firstMeaningfulPaint": 3364, "firstMeaningfulPaintTs": undefined, - "interactive": 6337, + "interactive": 6419, "interactiveTs": undefined, "largestContentfulPaint": 5578, "largestContentfulPaintAllFrames": undefined, @@ -50,7 +50,7 @@ Object { "observedTotalCumulativeLayoutShift": 0, "observedTraceEnd": 4778, "observedTraceEndTs": 760625421283, - "speedIndex": 6326, + "speedIndex": 5552, "speedIndexTs": undefined, "timeToFirstByte": 2394, "timeToFirstByteTs": undefined, @@ -128,7 +128,7 @@ Object { "firstContentfulPaintTs": undefined, "firstMeaningfulPaint": 2758, "firstMeaningfulPaintTs": undefined, - "interactive": 4519, + "interactive": 4592, "interactiveTs": undefined, "largestContentfulPaint": 2758, "largestContentfulPaintAllFrames": undefined, @@ -168,7 +168,7 @@ Object { "observedTotalCumulativeLayoutShift": 0, "observedTraceEnd": 7416, "observedTraceEndTs": 713044439102, - "speedIndex": 3681, + "speedIndex": 3169, "speedIndexTs": undefined, "timeToFirstByte": 609, "timeToFirstByteTs": undefined, @@ -246,7 +246,7 @@ Object { "firstContentfulPaintTs": undefined, "firstMeaningfulPaint": 1541, "firstMeaningfulPaintTs": undefined, - "interactive": 3975, + "interactive": 3955, "interactiveTs": undefined, "largestContentfulPaint": undefined, "largestContentfulPaintAllFrames": undefined, @@ -286,7 +286,7 @@ Object { "observedTotalCumulativeLayoutShift": 0, "observedTraceEnd": 12540, "observedTraceEndTs": 225426711887, - "speedIndex": 1676, + "speedIndex": 1511, "speedIndexTs": undefined, "timeToFirstByte": 759, "timeToFirstByteTs": undefined, diff --git a/core/test/audits/__snapshots__/predictive-perf-test.js.snap b/core/test/audits/__snapshots__/predictive-perf-test.js.snap index 2531162a5519..0c740506c0dd 100644 --- a/core/test/audits/__snapshots__/predictive-perf-test.js.snap +++ b/core/test/audits/__snapshots__/predictive-perf-test.js.snap @@ -17,8 +17,8 @@ Object { "roughEstimateOfLCP": 2758, "roughEstimateOfLCPLoadEnd": undefined, "roughEstimateOfLCPLoadStart": undefined, - "roughEstimateOfSI": 3681, + "roughEstimateOfSI": 3169, "roughEstimateOfTTFB": 609, - "roughEstimateOfTTI": 4519, + "roughEstimateOfTTI": 4592, } `; diff --git a/core/test/audits/predictive-perf-test.js b/core/test/audits/predictive-perf-test.js index 600c84e7fdf6..74c15f5484c6 100644 --- a/core/test/audits/predictive-perf-test.js +++ b/core/test/audits/predictive-perf-test.js @@ -25,7 +25,7 @@ describe('Performance: predictive performance audit', () => { const context = {computedCache: new Map(), settings: {locale: 'en'}}; const output = await PredictivePerf.audit(artifacts, context); - expect(output.displayValue).toBeDisplayString('4,520 ms'); + expect(output.displayValue).toBeDisplayString('4,590 ms'); const metrics = output.details.items[0]; for (const [key, value] of Object.entries(metrics)) { metrics[key] = value === undefined ? value : Math.round(value); diff --git a/core/test/computed/metrics/__snapshots__/interactive-test.js.snap b/core/test/computed/metrics/__snapshots__/interactive-test.js.snap index dad3e8706d54..cb4ac36ca550 100644 --- a/core/test/computed/metrics/__snapshots__/interactive-test.js.snap +++ b/core/test/computed/metrics/__snapshots__/interactive-test.js.snap @@ -4,6 +4,6 @@ exports[`Metrics: TTI should compute a simulated value 1`] = ` Object { "optimistic": 4177, "pessimistic": 3773, - "timing": 3975, + "timing": 3955, } `; diff --git a/core/test/computed/metrics/__snapshots__/lantern-interactive-test.js.snap b/core/test/computed/metrics/__snapshots__/lantern-interactive-test.js.snap index c51b3e89fda8..c00302e24b4c 100644 --- a/core/test/computed/metrics/__snapshots__/lantern-interactive-test.js.snap +++ b/core/test/computed/metrics/__snapshots__/lantern-interactive-test.js.snap @@ -4,7 +4,7 @@ exports[`Metrics: Lantern TTI should compute predicted value 1`] = ` Object { "optimistic": 4177, "pessimistic": 3773, - "timing": 3975, + "timing": 3955, } `; @@ -12,6 +12,6 @@ exports[`Metrics: Lantern TTI should compute predicted value on iframes with sub Object { "optimistic": 6207, "pessimistic": 6242, - "timing": 6224, + "timing": 6226, } `; diff --git a/core/test/computed/metrics/lantern-speed-index-test.js b/core/test/computed/metrics/lantern-speed-index-test.js index ed38253ddf38..14dbc43045ed 100644 --- a/core/test/computed/metrics/lantern-speed-index-test.js +++ b/core/test/computed/metrics/lantern-speed-index-test.js @@ -31,7 +31,7 @@ describe('Metrics: Lantern Speed Index', () => { Object { "optimistic": 605, "pessimistic": 1661, - "timing": 1676, + "timing": 1511, } `); }); @@ -51,7 +51,7 @@ describe('Metrics: Lantern Speed Index', () => { Object { "optimistic": 605, "pessimistic": 2439, - "timing": 3007, + "timing": 2198, } `); }); @@ -63,16 +63,16 @@ describe('Metrics: Lantern Speed Index', () => { it('should scale coefficients back', async () => { const result = LanternSpeedIndex.getScaledCoefficients(5); - expect(result).toEqual({intercept: -0, pessimistic: 0.5, optimistic: 0.5}); + expect(result).toEqual({intercept: 0, pessimistic: 0.5, optimistic: 0.5}); }); it('should scale coefficients forward', async () => { const result = LanternSpeedIndex.getScaledCoefficients(300); expect(result).toMatchInlineSnapshot(` Object { - "intercept": -562.5, + "intercept": 0, "optimistic": 2.525, - "pessimistic": 0.8375, + "pessimistic": 0.275, } `); }); diff --git a/core/test/computed/metrics/speed-index-test.js b/core/test/computed/metrics/speed-index-test.js index 9c259c15ead2..2c92602c2c85 100644 --- a/core/test/computed/metrics/speed-index-test.js +++ b/core/test/computed/metrics/speed-index-test.js @@ -32,7 +32,7 @@ describe('Metrics: Speed Index', () => { Object { "optimistic": 605, "pessimistic": 1661, - "timing": 1676, + "timing": 1511, } `); }); @@ -68,7 +68,7 @@ describe('Metrics: Speed Index', () => { Object { "optimistic": 575, "pessimistic": 633, - "timing": 635, + "timing": 642, } `); }); diff --git a/core/test/fixtures/fraggle-rock/reports/sample-flow-result.json b/core/test/fixtures/fraggle-rock/reports/sample-flow-result.json index 6177d6ba7ad0..9ac0a8b9653a 100644 --- a/core/test/fixtures/fraggle-rock/reports/sample-flow-result.json +++ b/core/test/fixtures/fraggle-rock/reports/sample-flow-result.json @@ -242,7 +242,7 @@ "description": "Time to Interactive is the amount of time it takes for the page to become fully interactive. [Learn more about the Time to Interactive metric](https://developer.chrome.com/docs/lighthouse/performance/interactive/).", "score": 0.99, "scoreDisplayMode": "numeric", - "numericValue": 2328.6969999999997, + "numericValue": 2328.697, "numericUnit": "millisecond", "displayValue": "2.3 s" }, @@ -6222,7 +6222,7 @@ }, { "values": { - "timeInMs": 2328.6969999999997 + "timeInMs": 2328.697 }, "path": "audits.interactive.displayValue" }, @@ -16159,7 +16159,7 @@ "description": "Time to Interactive is the amount of time it takes for the page to become fully interactive. [Learn more about the Time to Interactive metric](https://developer.chrome.com/docs/lighthouse/performance/interactive/).", "score": 1, "scoreDisplayMode": "numeric", - "numericValue": 925.2026, + "numericValue": 931.0526, "numericUnit": "millisecond", "displayValue": "0.9 s" }, @@ -17142,7 +17142,7 @@ "description": "Collects all available metrics.", "score": null, "scoreDisplayMode": "informative", - "numericValue": 925, + "numericValue": 931, "numericUnit": "millisecond", "details": { "type": "debugdata", @@ -17151,7 +17151,7 @@ "firstContentfulPaint": 867, "firstMeaningfulPaint": 867, "largestContentfulPaint": 1803, - "interactive": 925, + "interactive": 931, "speedIndex": 867, "totalBlockingTime": 13, "maxPotentialFID": 76, @@ -22133,7 +22133,7 @@ }, { "values": { - "timeInMs": 925.2026 + "timeInMs": 931.0526 }, "path": "audits.interactive.displayValue" }, diff --git a/core/test/results/sample_v2.json b/core/test/results/sample_v2.json index abf5c0f5b70a..04ab57ccbfa9 100644 --- a/core/test/results/sample_v2.json +++ b/core/test/results/sample_v2.json @@ -4124,9 +4124,9 @@ "id": "unminified-javascript", "title": "Minify JavaScript", "description": "Minifying JavaScript files can reduce payload sizes and script parse time. [Learn how to minify JavaScript](https://developer.chrome.com/docs/lighthouse/performance/unminified-javascript/).", - "score": 0.45, + "score": 0.43, "scoreDisplayMode": "numeric", - "numericValue": 1200, + "numericValue": 1350, "numericUnit": "millisecond", "displayValue": "Potential savings of 82 KiB", "warnings": [], @@ -4157,7 +4157,7 @@ "wastedPercent": 50.176166426166425 } ], - "overallSavingsMs": 1200, + "overallSavingsMs": 1350, "overallSavingsBytes": 83568, "sortedBy": [ "wastedBytes" @@ -4375,9 +4375,9 @@ "id": "uses-text-compression", "title": "Enable text compression", "description": "Text-based resources should be served with compression (gzip, deflate or brotli) to minimize total network bytes. [Learn more about text compression](https://developer.chrome.com/docs/lighthouse/performance/uses-text-compression/).", - "score": 0.31, + "score": 0.27, "scoreDisplayMode": "numeric", - "numericValue": 2400, + "numericValue": 2730, "numericUnit": "millisecond", "displayValue": "Potential savings of 143 KiB", "details": { @@ -4411,7 +4411,7 @@ "wastedBytes": 11647 } ], - "overallSavingsMs": 2400, + "overallSavingsMs": 2730, "overallSavingsBytes": 146478, "sortedBy": [ "wastedBytes"