Page metrics #190
Replies: 2 comments
-
We definitely want to expose page load time metrics (and probably some/all of the ones exposed by Puppeteer). Using sleeps for this will never work reliably, the tool/browser needs to provide these measurements. A seperate topic really, but we also want to support Lighthouse type analysis output eventually as well, see https://github.com/GoogleChrome/lighthouse/blob/HEAD/docs/readme.md#using-programmatically for example on how to invoke Lighthouse. And here for all the "gatherers" of data (Lighthouse interfaces with the browser over CDP to collect this data). |
Beta Was this translation helpful? Give feedback.
-
Hmm, Lighthouse looks interesting. Thanks for sharing it. I looked into it a little bit, and it seems like it's also some sort of a CDP protocol listener (roughly similar to xk6-browser), but for a different purpose than ours, for producing audit reports. Since we're already listening for CDP events, so, yeah, we can build an audit tool like Lighthouse in Go. Maybe we can produce trace output for users who want to process it through Lighthouse as well, like this—afterwards, of course :) |
Beta Was this translation helpful? Give feedback.
-
One of our users wanted to measure the response time of a page (here: #189) using
sleep
andDate.now
. This resulted in zero difference (t1 - t0
== 0):As we discovered before, here:
@imiric suggested:
So, implementing
page.metrics
might be a good idea. This discussion is the place for doing it :)Beta Was this translation helpful? Give feedback.
All reactions