Files
t3code/test/perf/support/thresholds.ts
T
Julius Marminge eecc2bc28d Add perf regression test harnesses
- Seed reusable perf fixtures for server scenarios
- Add perf provider adapter and web perf tests
- Capture artifacts for virtualization and websocket runs
2026-04-13 10:05:10 -07:00

24 lines
679 B
TypeScript

export interface PerfThresholdProfile {
readonly maxMountedTimelineRows: number;
readonly threadSwitchP50Ms: number;
readonly threadSwitchP95Ms: number;
readonly maxLongTaskMs: number;
readonly maxRafGapMs: number;
readonly burstCompletionMs: number;
readonly longTasksOver50MsMax: number;
}
export const PERF_THRESHOLDS = {
local: {
maxMountedTimelineRows: 140,
threadSwitchP50Ms: 250,
threadSwitchP95Ms: 500,
maxLongTaskMs: 120,
maxRafGapMs: 120,
burstCompletionMs: 5_000,
longTasksOver50MsMax: 2,
},
} as const satisfies Record<string, PerfThresholdProfile>;
export type PerfThresholdProfileName = keyof typeof PERF_THRESHOLDS;