Skip to content

Commit

Permalink
update TTI/SI test values
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Apr 27, 2023
1 parent ec010fc commit abef56b
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 31 deletions.
12 changes: 6 additions & 6 deletions core/test/audits/__snapshots__/metrics-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Object {
"firstContentfulPaintTs": undefined,
"firstMeaningfulPaint": 3364,
"firstMeaningfulPaintTs": undefined,
"interactive": 6337,
"interactive": 6419,
"interactiveTs": undefined,
"largestContentfulPaint": 5578,
"largestContentfulPaintAllFrames": undefined,
Expand Down Expand Up @@ -50,7 +50,7 @@ Object {
"observedTotalCumulativeLayoutShift": 0,
"observedTraceEnd": 4778,
"observedTraceEndTs": 760625421283,
"speedIndex": 6326,
"speedIndex": 5552,
"speedIndexTs": undefined,
"timeToFirstByte": 2394,
"timeToFirstByteTs": undefined,
Expand Down Expand Up @@ -128,7 +128,7 @@ Object {
"firstContentfulPaintTs": undefined,
"firstMeaningfulPaint": 2758,
"firstMeaningfulPaintTs": undefined,
"interactive": 4519,
"interactive": 4592,
"interactiveTs": undefined,
"largestContentfulPaint": 2758,
"largestContentfulPaintAllFrames": undefined,
Expand Down Expand Up @@ -168,7 +168,7 @@ Object {
"observedTotalCumulativeLayoutShift": 0,
"observedTraceEnd": 7416,
"observedTraceEndTs": 713044439102,
"speedIndex": 3681,
"speedIndex": 3169,
"speedIndexTs": undefined,
"timeToFirstByte": 609,
"timeToFirstByteTs": undefined,
Expand Down Expand Up @@ -246,7 +246,7 @@ Object {
"firstContentfulPaintTs": undefined,
"firstMeaningfulPaint": 1541,
"firstMeaningfulPaintTs": undefined,
"interactive": 3975,
"interactive": 3955,
"interactiveTs": undefined,
"largestContentfulPaint": undefined,
"largestContentfulPaintAllFrames": undefined,
Expand Down Expand Up @@ -286,7 +286,7 @@ Object {
"observedTotalCumulativeLayoutShift": 0,
"observedTraceEnd": 12540,
"observedTraceEndTs": 225426711887,
"speedIndex": 1676,
"speedIndex": 1511,
"speedIndexTs": undefined,
"timeToFirstByte": 759,
"timeToFirstByteTs": undefined,
Expand Down
4 changes: 2 additions & 2 deletions core/test/audits/__snapshots__/predictive-perf-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Object {
"roughEstimateOfLCP": 2758,
"roughEstimateOfLCPLoadEnd": undefined,
"roughEstimateOfLCPLoadStart": undefined,
"roughEstimateOfSI": 3681,
"roughEstimateOfSI": 3169,
"roughEstimateOfTTFB": 609,
"roughEstimateOfTTI": 4519,
"roughEstimateOfTTI": 4592,
}
`;
2 changes: 1 addition & 1 deletion core/test/audits/predictive-perf-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ exports[`Metrics: TTI should compute a simulated value 1`] = `
Object {
"optimistic": 4177,
"pessimistic": 3773,
"timing": 3975,
"timing": 3955,
}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ exports[`Metrics: Lantern TTI should compute predicted value 1`] = `
Object {
"optimistic": 4177,
"pessimistic": 3773,
"timing": 3975,
"timing": 3955,
}
`;

exports[`Metrics: Lantern TTI should compute predicted value on iframes with substantial layout 1`] = `
Object {
"optimistic": 6207,
"pessimistic": 6242,
"timing": 6224,
"timing": 6226,
}
`;
10 changes: 5 additions & 5 deletions core/test/computed/metrics/lantern-speed-index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('Metrics: Lantern Speed Index', () => {
Object {
"optimistic": 605,
"pessimistic": 1661,
"timing": 1676,
"timing": 1511,
}
`);
});
Expand All @@ -51,7 +51,7 @@ describe('Metrics: Lantern Speed Index', () => {
Object {
"optimistic": 605,
"pessimistic": 2439,
"timing": 3007,
"timing": 2198,
}
`);
});
Expand All @@ -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,
}
`);
});
Expand Down
4 changes: 2 additions & 2 deletions core/test/computed/metrics/speed-index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('Metrics: Speed Index', () => {
Object {
"optimistic": 605,
"pessimistic": 1661,
"timing": 1676,
"timing": 1511,
}
`);
});
Expand Down Expand Up @@ -68,7 +68,7 @@ describe('Metrics: Speed Index', () => {
Object {
"optimistic": 575,
"pessimistic": 633,
"timing": 635,
"timing": 642,
}
`);
});
Expand Down
12 changes: 6 additions & 6 deletions core/test/fixtures/fraggle-rock/reports/sample-flow-result.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -6222,7 +6222,7 @@
},
{
"values": {
"timeInMs": 2328.6969999999997
"timeInMs": 2328.697
},
"path": "audits.interactive.displayValue"
},
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -17142,7 +17142,7 @@
"description": "Collects all available metrics.",
"score": null,
"scoreDisplayMode": "informative",
"numericValue": 925,
"numericValue": 931,
"numericUnit": "millisecond",
"details": {
"type": "debugdata",
Expand All @@ -17151,7 +17151,7 @@
"firstContentfulPaint": 867,
"firstMeaningfulPaint": 867,
"largestContentfulPaint": 1803,
"interactive": 925,
"interactive": 931,
"speedIndex": 867,
"totalBlockingTime": 13,
"maxPotentialFID": 76,
Expand Down Expand Up @@ -22133,7 +22133,7 @@
},
{
"values": {
"timeInMs": 925.2026
"timeInMs": 931.0526
},
"path": "audits.interactive.displayValue"
},
Expand Down
12 changes: 6 additions & 6 deletions core/test/results/sample_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand Down Expand Up @@ -4157,7 +4157,7 @@
"wastedPercent": 50.176166426166425
}
],
"overallSavingsMs": 1200,
"overallSavingsMs": 1350,
"overallSavingsBytes": 83568,
"sortedBy": [
"wastedBytes"
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -4411,7 +4411,7 @@
"wastedBytes": 11647
}
],
"overallSavingsMs": 2400,
"overallSavingsMs": 2730,
"overallSavingsBytes": 146478,
"sortedBy": [
"wastedBytes"
Expand Down

0 comments on commit abef56b

Please sign in to comment.