Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 authored and oandregal committed Jan 31, 2023
1 parent a865806 commit f0bc52f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/e2e-tests/specs/performance/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ export async function getLoadingDurations() {
requestStart,
responseStart,
responseEnd,
startTime,
domContentLoadedEventEnd,
loadEventEnd,
},
Expand All @@ -111,7 +110,8 @@ export async function getLoadingDurations() {
).startTime - responseEnd,
// This is evaluated right after Puppeteer found the block selector.
firstBlock: performance.now() - responseEnd,
timeToFirstByte: responseStart - startTime,
// As defined by https://web.dev/ttfb/#measure-ttfb-in-javascript
timeToFirstByte: responseStart,
};
} );
}

0 comments on commit f0bc52f

Please sign in to comment.