Course contentsShow
← Web Development
Lesson 1928 of 2,98235. Web Performance FundamentalsFree lesson

Establishing Performance Baselines

Create reproducible test conditions and baseline metrics to track performance over time.

Establishing Performance Baselines

You'll learn how to create consistent test conditions and record baseline metrics so you can objectively track performance improvements or regressions over time.

Why Baselines Matter

Imagine trying to improve your running speed without ever timing yourself. You might feel faster, but you'd have no proof. The same applies to web performance—without a baseline, you can't know if changes actually helped or hurt your site's speed.

A performance baseline is a documented snapshot of your site's metrics under controlled conditions. It becomes your reference point for all future measurements.

Creating Reproducible Test Conditions

Consistency is everything. Your baseline is only valuable if you can recreate the same test environment later:

  • Same network throttling: Always test with identical connection speeds (e.g., "Fast 3G" in Chrome DevTools)
  • Same device profile: Use the same CPU throttling and viewport size
  • Same pages: Test the same URLs in the same state (logged out, empty cart, etc.)
  • Same time of day: Server load varies; test during typical conditions
  • Same browser/tool: Stick with one measurement tool (Lighthouse, WebPageTest, etc.)

Recording Your Baseline Metrics

Document these key values using the tools you've learned:

  • Core Web Vitals: LCP, FID/INP, CLS scores
  • Lab metrics: TTFB, FCP, TTI, Speed Index, TBT
  • Test conditions: Date, tool versions, throttling settings
  • Multiple runs: Average 3-5 runs to account for variance

Store this data in a spreadsheet, monitoring dashboard, or version control alongside your code.

Key Takeaway: A performance baseline requires repeatable test conditions and documented metrics—without it, you're guessing whether your optimizations actually work.