Skip to content

Commit

Permalink
defer lantern test to new PR
Browse files Browse the repository at this point in the history
  • Loading branch information
adamraine committed Apr 25, 2023
1 parent 54059a2 commit 225e437
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 22 deletions.
9 changes: 0 additions & 9 deletions core/scripts/lantern/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ import {LH_ROOT} from '../../../root.js';
* @property {number} [timeToConsistentlyInteractive]
* @property {number} [speedIndex]
* @property {number} [largestContentfulPaint]
* @property {number} [timeToFirstByte]
* @property {number} [lcpLoadStart]
* @property {number} [lcpLoadEnd]
*/

/**
Expand All @@ -70,9 +67,6 @@ import {LH_ROOT} from '../../../root.js';
* @property {number} roughEstimateOfSI
* @property {number} roughEstimateOfTTI
* @property {number} roughEstimateOfLCP
* @property {number} roughEstimateOfTTFB
* @property {number} roughEstimateOfLCPLoadStart
* @property {number} roughEstimateOfLCPLoadEnd
*/

/** @type {Array<string>} */
Expand Down Expand Up @@ -202,9 +196,6 @@ export default {
roughEstimateOfSI: evaluate('speedIndex', 'roughEstimateOfSI'),
roughEstimateOfTTI: evaluate('timeToConsistentlyInteractive', 'roughEstimateOfTTI'),
roughEstimateOfLCP: evaluate('largestContentfulPaint', 'roughEstimateOfLCP'),
roughEstimateOfTTFB: evaluate('timeToFirstByte', 'roughEstimateOfTTFB'),
roughEstimateOfLCPLoadStart: evaluate('lcpLoadStart', 'roughEstimateOfLCPLoadStart'),
roughEstimateOfLCPLoadEnd: evaluate('lcpLoadEnd', 'roughEstimateOfLCPLoadEnd'),
};
},
};
8 changes: 2 additions & 6 deletions core/scripts/lantern/print-correlations.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function evaluateAndPrintAccuracy(metric, lanternMetric) {
const baselineOptions = {alwaysGray: !lanternMetric.includes('roughEstimate')};

const strings = [
lanternMetric.padEnd(30),
lanternMetric.padEnd(25),
`${toPercentString(actualAccuracy.p50)} ${toBaselineDiffString(
actualAccuracy.p50,
baselineAccuracy.p50,
Expand Down Expand Up @@ -216,7 +216,7 @@ function findAndPrintFixesRegressions() {

console.log(
chalk.bold(
'Metric'.padEnd(30),
'Metric'.padEnd(25),
'p50 (% Error)'.padEnd(20),
'p90 (% Error)'.padEnd(20),
'p95 (% Error)'.padEnd(20)
Expand All @@ -243,10 +243,6 @@ evaluateAndPrintAccuracy('largestContentfulPaint', 'optimisticLCP');
evaluateAndPrintAccuracy('largestContentfulPaint', 'pessimisticLCP');
evaluateAndPrintAccuracy('largestContentfulPaint', 'roughEstimateOfLCP');

evaluateAndPrintAccuracy('timeToFirstByte', 'roughEstimateOfTTFB');
evaluateAndPrintAccuracy('lcpLoadStart', 'roughEstimateOfLCPLoadStart');
evaluateAndPrintAccuracy('lcpLoadEnd', 'roughEstimateOfLCPLoadEnd');

const estimates = allEvaluations.filter(entry => entry.lanternMetric.includes('roughEstimate'));
const baselineEstimates = baselineEvaluations.filter(entry =>
entry.lanternMetric.includes('roughEstimate')
Expand Down
3 changes: 0 additions & 3 deletions core/scripts/lantern/run-on-all-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
* @property {number|undefined} timeToConsistentlyInteractive
* @property {number|undefined} speedIndex
* @property {number|undefined} largestContentfulPaint
* @property {number|undefined} timeToFirstByte
* @property {number|undefined} lcpLoadStart
* @property {number|undefined} lcpLoadEnd
*/
/** @typedef {{url:string, unthrottled: GoldenUnthrottled, wpt3g: Wpt3gUnthrottled}} GoldenSite */
/** @typedef {{sites: GoldenSite[]}} Golden */
Expand Down
5 changes: 1 addition & 4 deletions core/test/fixtures/lantern-baseline-accuracy.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,5 @@
"p50": 0.20407433881343817,
"p90": 0.6299877796078848,
"p95": 0.8768898488120951
},
"roughEstimateOfTTFB": {},
"roughEstimateOfLCPLoadStart": {},
"roughEstimateOfLCPLoadEnd": {}
}
}

0 comments on commit 225e437

Please sign in to comment.