-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Performance measurement #2816
Comments
Could you share more about what exact information you are after? We are collecting the feedback for the dedicated performance api. |
Currently I am prototyping and trying to collect all information that is available to evaluate the possibilities of tracking performance in the browser. The original requirement: 'Testing some main use cases between product increments to check if the page is getting slower'. Maybe it would be good to get request metrics
and basic metrics for the page load
Some further notes
Diagnostics
Metrics
Thread
PageWeight
|
Hi there, do you have any news on that topic? |
@pavelfeldman any updates on this? Having the above-described metrics would be really useful. Thanks. |
Hey, I hope I can help regarding the performance timing. Here's what I've come up with. I think this methods covers the metrics you're asking for @mh-ka, but I'm sure you could perform similar for the other data points that you're looking to collect. const getMetrics = async function getmetrics(
page: Page
): Promise<{
format: 'PerformanceNavigationTiming' | 'PerformanceTiming'
data: PerformanceNavigationTiming | PerformanceTiming
}> {
return JSON.parse(
await page.evaluate(() => {
const [timing] = performance.getEntriesByType('navigation')
return JSON.stringify({
format: timing ? 'PerformanceNavigationTiming' : 'PerformanceTiming',
data: timing || window.performance.timing,
})
})
)
}
I can give you a heads up though, that |
Thanks a lot! |
Hi there,
is there a way to access the browser performance logging? I tried the puppeteer example, but no luck with that: puppeteer/puppeteer#309 (comment)
I saw another discussion here about performance metrics but wasn't sure if it is the same topic: #590
The text was updated successfully, but these errors were encountered: