- Seed reusable perf fixtures for server scenarios - Add perf provider adapter and web perf tests - Capture artifacts for virtualization and websocket runs
24 lines
679 B
TypeScript
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;
|