perf

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package perf reports Core Web Vitals from headless-rendered pages. When rendering produced real measurements, it emits per-page findings against Google's published thresholds for LCP, FCP, CLS, TBT, and TTFB. In raw mode (no rendering) it falls back to a TTFB proxy from raw fetch duration and notes that full CWV requires headless mode.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct{}

Analyzer evaluates Core Web Vitals collected during headless rendering.

func New

func New() *Analyzer

New returns a performance analyzer.

func (Analyzer) Analyze

func (a Analyzer) Analyze(_ context.Context, result *crawler.Result) []analyze.Issue

func (Analyzer) Description

func (Analyzer) Description() string

func (Analyzer) Name

func (Analyzer) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL