[object Object]

← back to AsSeenInMovies

smoke: home perf budget <1500ms (cold-cache ceiling; regression guard)

a7da2017b36b4c80bedac8850ac05bc2cbac92c4 · 2026-05-13 11:06:42 -0700 · SteveStudio2

Files touched

Diff

commit a7da2017b36b4c80bedac8850ac05bc2cbac92c4
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date:   Wed May 13 11:06:42 2026 -0700

    smoke: home perf budget <1500ms (cold-cache ceiling; regression guard)
---
 test/smoke.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/smoke.js b/test/smoke.js
index 7eea321..8e975c9 100644
--- a/test/smoke.js
+++ b/test/smoke.js
@@ -41,8 +41,11 @@ function check(name, cond, hint = '') {
 (async () => {
   if (!process.argv.includes('--json')) console.log(`asseeninmovies smoke — ${BASE}\n`);
 
-  // 1. home
+  // 1. home — perf budget enforced (1500ms cold-cache, ~2ms warm)
+  const homeT0 = Date.now();
   let r = await fetch('/');
+  const homeMs = Date.now() - homeT0;
+  check('home: <1500ms',       homeMs < 1500, `actual ${homeMs}ms`);
   check('home: 200',           r.status === 200);
   check('home: title',         /AsSeenInMovies/.test(r.body));
   check('home: canonical',     /rel="canonical"/.test(r.body));

← ed68d9d Makefile: add help target listing all available commands  ·  back to AsSeenInMovies  ·  sitemap.xml: preserve Last-Modified+Cache-Control on cache-h 32e313c →