URL Analyzer (Go Package)
Measure page load metrics programmatically.
Gonet/httpPerformance APIs
Why do I <3 that: It gives you fast, scriptable web performance data.
What it does
URL Analyzer is a Go package for analyzing website performance metrics such as page load time, HTTP request count, and page size.
How to use
Add it to your project:
go get github.com/olucasandrade/url-analyzer
Analyze a URL from your code:
import "github.com/olucasandrade/url-analyzer"
result, _ := analyzer.Analyze("https://example.com")
fmt.Println(result.LoadTime, result.RequestCount, result.PageSize)
Use it to run a batch scan across a sitemap, add performance assertions to CI, or build a simple uptime monitor.
Want more of that? See details here
https://github.com/olucasandrade/url-analyzer →