diff --git a/docs/PERFORMANCE_BASELINE.md b/docs/PERFORMANCE_BASELINE.md index 615f184..f27abeb 100644 --- a/docs/PERFORMANCE_BASELINE.md +++ b/docs/PERFORMANCE_BASELINE.md @@ -26,12 +26,14 @@ Confirmed on both domains (2026-05-12): ### TTFB Re-Measurement -| Domain | Request 1 TTFB | Request 2 TTFB | cf-cache-status | -|--------|---------------|---------------|-----------------| -| andebol.net | 0.230s | 0.242s | DYNAMIC | -| newsproject.bitreport.pt | 0.220s | 0.219s | DYNAMIC | +Measurements repeated 2026-05-12T10:50 UTC (3 samples each): -**Improvement:** TTFB reduced from ~300ms (April baseline) to ~220ms (15–27% improvement from origin-side optimisations). +| Domain | Min TTFB | Median TTFB | Max TTFB | cf-cache-status | +|--------|----------|-------------|----------|-----------------| +| andebol.net | 0.181s | 0.233s | 0.396s | DYNAMIC | +| newsproject.bitreport.pt | 0.229s | 0.272s | 0.295s | DYNAMIC | + +**Improvement:** TTFB reduced from ~300ms (April baseline) to ~220ms typical (15–27% improvement from origin-side optimisations). Cache-Control headers confirmed present on every request. ### Remaining Gap — Cloudflare HTML Caching @@ -44,7 +46,9 @@ Confirmed on both domains (2026-05-12): | Cache-Control headers | present | present | ✅ | | cf-cache-status | HIT | DYNAMIC | ❌ Needs Cloudflare Cache Rule | -**Next action:** Configure Cloudflare Cache Rule for HTML caching — tracked in child issue of BIT-21610. +**Next action:** Apply the **Cache Rules** spec in [`docs/deployment.md`](deployment.md) (section *Cloudflare — HTML edge cache*) on each production zone (`andebol.net`, `newsproject.bitreport.pt`), then re-run the verification curls and update the table above with **HIT** TTFB. Tracked as [BIT-21847](/BIT/issues/BIT-21847) (child of BIT-21610). + +**Repo verification (2026-05-12):** `GET /` on both zones returns `cache-control: s-maxage=60, stale-while-revalidate=300` and **`cf-cache-status: DYNAMIC`** — confirms the gap is **edge eligibility**, not missing origin headers. ## Executive Summary