UNPKG

@vocento/wpo-check

Version:

An internal CLI tool to measure and validate Web Performance KPIs during development and CI/CD workflows.

77 lines (75 loc) 1.16 kB
export const THRESHOLDS = { lcp: { value: 2.5, critical: true, unit: 's', }, inp: { value: 200, critical: false, unit: 'ms', }, cls: { value: 0.1, critical: true, unit: '', }, fid: { value: 100, critical: false, unit: 'ms', }, fcp: { value: 1.8, critical: false, unit: 's', }, ttfb: { value: 200, critical: false, unit: 'ms', }, tbt: { value: 200, critical: false, unit: 'ms', }, size: { value: 1.5, critical: false, unit: 'MB', }, networkRequests: { value: 100, critical: false, unit: '', }, domSize: { value: 1500, critical: false, unit: '', }, domDepth: { value: 32, critical: false, unit: '', }, }; export const SETTINGS = { throttlingMethod: 'simulate', throttling: { rttMs: 0, throughputKbps: 0, cpuSlowdownMultiplier: 0, requestLatencyMs: 0, downloadThroughputKbps: 0, uploadThroughputKbps: 0, }, screenEmulation: { mobile: true, deviceScaleFactor: 1, disabled: false, }, emulatedFormFactor: 'mobile', formFactor: 'mobile', };