Tuesday, April 30, 2024
HomeGolangGet exterior web page TTFP, full load time and so forth -...

Get exterior web page TTFP, full load time and so forth – Getting Assist


Hey guys,

I’ve been looking Google for a few days now with none progress. Hopefully anybody can inform me how I can remedy this downside that I’ve.

I wish to get some metric details about exterior pages i.e. once I connect with google.com I wish to get:

  1. TTFB time
  2. Full web page load time

Is there any approach to get these sort of info in Golang? I’m presently utilizing http.Consumer and I can measure the response time which is working tremendous, however what I reasonably have is the TTFB and full web page loading time.

Hope somebody may help me out.

I simply began programming go, however I cam throughout this module: httptrace bundle – internet/http/httptrace – Go Packages

Appears to have the ability to monitor how lengthy every of the connection steps take. However ofc no “Full Web page loaded” occasion, as a crawler cannot do that on it’s personal, you’d really want a browser (headless) to take action professionally.

Golang with http.Consumer, is so far as I do know simply calling this one ressource, not all it’s subressources and likewise not rendering something or operating JS.

Possibly: GitHub – go-rod/rod: A Devtools driver for internet automation and scraping

1 Like

Thanks a lot to your reply, I’ll try that bundle in any other case I’ll attempt to use a headless browser.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments