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.
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(andmax, its worst case) are the statistics this module treats as the headline;meanandmedianare kept for context, not as the number to gate on.count === 0is the explicit empty-sample marker: every other field isnullrather than0, because a real all-zero sample and "nothing was measured" must never be indistinguishable to a caller reading this object.