INNER CODE UNIT · TypeScript
avgSec
SveltyCMS/SveltyCMS · scripts/benchmark-matrix/index.ts:277
const avgSec = times.reduce((a, b) => a + b, 0) / times.length / 1000;
weights[testFile] = Math.max(avgSec, 1);
}
} catch {
// fallback
}
return weights;
}
// Tests to skip in matrix mode (not meaningful against a shared production server)
const SKIP_IN_MATRIX = new Set([
"cold-start-phased", // Measures server boot time, meaningless against shared server
"setup-proxy", // Measures server boot + cold start, meaningless against shared server
"longevity-soak", // Runs for hours, not suitable for matrix
"memory-stability", // Runs for minutes measuring memory, not suitable for matrix
"throttling-backoff-stress", // Requires a dedicated RATE_LIMIT_MAX_REQUESTS=100 server (matrix uses 20000, 429 unreachable)
// ── Chaos-lab family ──
// These tests throw via requireTestInfrastructure() on production-mode servers: