IFClite TypeScript API
    Preparing search index...

    Interface DurationStats

    Summary statistics over a sample of frame or pass durations, in milliseconds.

    A mean hides exactly the stutter a perf verdict cares about — one frame that spikes to 40 ms among fifty at 8 ms barely moves a mean, but it is the one a user notices. p95 (and max, its worst case) are the statistics this module treats as the headline; mean and median are kept for context, not as the number to gate on.

    count === 0 is the explicit empty-sample marker: every other field is null rather than 0, because a real all-zero sample and "nothing was measured" must never be indistinguishable to a caller reading this object.

    interface DurationStats {
        count: number;
        max: number | null;
        mean: number | null;
        median: number | null;
        min: number | null;
        p95: number | null;
    }
    Index
    count: number

    Number of samples the statistics below were computed over.

    max: number | null
    mean: number | null

    Arithmetic mean. Context only — do not gate a perf verdict on this.

    median: number | null

    50th percentile (nearest-rank on the sorted sample).

    min: number | null
    p95: number | null

    95th percentile (nearest-rank on the sorted sample) — see class doc.