Ethan Wu
Ethan Wu

Reputation: 428

Total network waiting time for all http requests

Not sure whether anybody has similar query here, assume we do a performance tracing on a single page application completely loaded on a url, how to get the total waiting time on networking time for all resources?

enter image description here

Upvotes: 0

Views: 791

Answers (1)

Gaël Métais
Gaël Métais

Reputation: 854

I've never heard about an existing tool that would provide the exact metric you're looking for. But you could write a mini script that uses the Resource Timing API. It is easy to list all network requests and sum up waiting times. More info here.

Then, if you need to automate measures, you can use Puppeteer to run your script on a headless Chrome.

Upvotes: 1

Related Questions