Repository navigation
How to get the Dns Time from the ligthhouse reports.?? #15644
|
Does google lighthouse report the dns timings in the lighthouse report? if so how to retrieve the values?? |
Replies: 4 comments 1 reply
|
if not directly also. can it derived based on some calculations? |
|
DNS timings are not included in the report |
|
@adamraine thanks for responding.. But after execution there is a directory created called "latest-run" and inside that few files are created. in one of these files if you see i could see "Network.responseReceived", there i could see something called dnsStart dnsEnd params What is that.? i have attached the sample json file
|
|
Hi @benschwarz I have a similar query. In the DevTools Performance tab, we can see detailed phases of network calls. I want to capture these details as well. Do you have any ideas on how this can be done? The specific metrics I'm looking to capture are: Total duration |
@ashwinrajanta As @adamraine said in a previous reply, Lighthouse does not include DNS timing information. Timing information is available in the remote debugging API (as you've demonstrated above).
However, Lighthouse by default loads pages at full network speed, and then applies network simulation in order to calculate metrics and network timing information. While you can access the timing information from the API (as above), it will represent the unthrottled load, and not the simulated load time.
That's why there's no DNS timings in the report, and afaik why there won't be in the near future.