Skip to the content

All runs

Test run 2026-11-24-102159-e12ade6

Date
24 Nov 2026, 10:21 UTC
Commit
e12ade6
Branch
main

2,326 tests in 18 suites.

@mark1russell7/lag: unit tests in node

Suite core-unit-node. 1322 passed. Duration 9.21 s.

packages/lag/src/BaselineConfirmation.test.ts18 passed
StatusTestDuration
PassedBaselineConfirmation › needs a check from the start: a probe before the first window can start a check1.7 ms
PassedBaselineConfirmation › has no value at first, and asks for a check at the end of the first window0.79 ms
PassedBaselineConfirmation › confirms a value with an idle probe, 3 steps and an idle closing probe0.35 ms
PassedBaselineConfirmation › ignores the steps that are not in a check0.11 ms
PassedBaselineConfirmation › asks for a check at each window after a busy probe, until a check confirms a value0.9 ms
PassedBaselineConfirmation › discards a check when the closing probe is busy, and asks again at the next window0.49 ms
PassedBaselineConfirmation › discards a check whose steps do not agree0.16 ms
PassedBaselineConfirmation › asks for no probe while a check operates0.16 ms
PassedBaselineConfirmation › starts a new check when a probe comes before the end of a check0.54 ms
PassedBaselineConfirmation › uses the confirmed value while the recent baseline is more than max(1 ms, 10%) above it0.24 ms
PassedBaselineConfirmation › lowers the confirmed value to the highest recent baseline of the last 3 windows0.4 ms
PassedBaselineConfirmation › keeps the confirmed value after a short decrease of the recent baseline0.14 ms
PassedBaselineConfirmation › ignores a probe of a row when no check is necessary0.13 ms
PassedBaselineConfirmation › keeps the confirmed value when the check agrees with it, and gives the limit of the load0.19 ms
PassedBaselineConfirmation › gives no limit when the closing probe is busy, or when the steps do not agree0.3 ms
PassedBaselineConfirmation › confirms a larger value when the check agrees with the recent baseline0.3 ms
PassedBaselineConfirmation › sets a new granularity with accept(), and ends a check0.51 ms
PassedBaselineConfirmation › does not confirm a first value with accept(): only a check does0.12 ms
packages/lag/src/BrowserReportMonitor.test.ts9 passed
StatusTestDuration
PassedBrowserReportMonitor › gets the reports from before its start, and after stop() and start() no report a second time2.7 ms
PassedBrowserReportMonitor › asks for the buffered reports again when the first start failed1.3 ms
PassedBrowserReportMonitor › observes interventions and deprecations, including buffered reports0.39 ms
PassedBrowserReportMonitor › reports the fields of each report body0.28 ms
PassedBrowserReportMonitor › logs a warning when ReportingObserver is not available0.28 ms
PassedBrowserReportMonitor › isolates a report callback that throws0.32 ms
PassedBrowserReportMonitor › disconnects on stop and can start again, without the buffered reports0.26 ms
PassedBrowserReportMonitor › start() while the monitor observes makes no second observer, and stop() works after a start that failed0.86 ms
PassedBrowserReportMonitor › names the error and the monitor in its logs0.42 ms
packages/lag/src/BusyTimeProbe.test.ts10 passed
StatusTestDuration
PassedBusyTimeProbe › measures no busy time on an idle thread7.9 ms
PassedBusyTimeProbe › measures the tasks that keep the thread busy: each task delays one message10 ms
PassedBusyTimeProbe › counts the wait of the message that did not start when it stops0.55 ms
PassedBusyTimeProbe › counts only the waits of more than 2 ms0.29 ms
PassedBusyTimeProbe › gives 0 without a measurement, and after a measurement stopped0.22 ms
PassedBusyTimeProbe › ignores a message of an earlier measurement1 ms
PassedBusyTimeProbe › starts again from 0 when start() comes during a measurement0.15 ms
PassedBusyTimeProbe › with a limit, operates only at the start of the interval6 ms
PassedBusyTimeProbe › with a limit, counts the full wait of a message that waits at the limit, and adds no wait at stop()1.9 ms
PassedBusyTimeProbe › stops the chain: after stop(), a message posts no other message0.22 ms
packages/lag/src/ClockDriftMonitor.test.ts19 passed
StatusTestDuration
PassedClockDriftMonitor › samples every second by default and reports a skew near 0 while both clocks agree6 ms
PassedClockDriftMonitor › tolerates gradual correction of the wall clock0.7 ms
PassedClockDriftMonitor › scales the threshold with the interval: 3% of the time between samples1.7 ms
PassedClockDriftMonitor › classifies a forward jump of 1 s or more as a suspend0.56 ms
PassedClockDriftMonitor › classifies a smaller forward jump as a step0.45 ms
PassedClockDriftMonitor › classifies a backward jump as a step0.37 ms
PassedClockDriftMonitor › classifies a forward jump during a late timer as a suspend too, because timers are late in a hidden page0.38 ms
PassedClockDriftMonitor › finds a sleep in a hidden page in which the browser runs the timer one time each minute0.42 ms
PassedClockDriftMonitor › finds no discontinuity when both clocks continue, as in a Windows sleep or a blocked thread0.39 ms
PassedClockDriftMonitor › ignores a sample when the thread stopped between the two reads of the monotonic clock0.45 ms
PassedClockDriftMonitor › measures drift from the restart, not across a stopped period0.62 ms
PassedClockDriftMonitor › stops its timer0.33 ms
PassedClockDriftMonitor › clears its timer one time when it stops two times0.26 ms
PassedClockDriftMonitor › logs instead of throwing when report throws0.51 ms
PassedClockDriftMonitor › start() while the monitor operates adds no second interval0.31 ms
PassedClockDriftMonitor › keeps a reading whose two reads of the monotonic clock are 1 ms apart0.3 ms
PassedClockDriftMonitor › compares the first sample with nothing when the reading at the start was not valid0.3 ms
PassedClockDriftMonitor › does not count a drift of exactly the limit as a jump0.24 ms
PassedClockDriftMonitor › classifies a forward jump of exactly 1000 ms as a suspend0.32 ms
packages/lag/src/ClockReliabilityChecker.test.ts11 passed
StatusTestDuration
PassedClockReliabilityChecker › detects clock resolution from rapid samples2.5 ms
PassedClockReliabilityChecker › detects a coarse clock that stays flat across many consecutive reads2.9 ms
PassedClockReliabilityChecker › reports high resolution for a cross-origin-isolated clock (5μs)0.14 ms
PassedClockReliabilityChecker › reports low resolution for a 1ms clock2.1 ms
PassedClockReliabilityChecker › measures once and caches the result0.11 ms
PassedClockReliabilityChecker › samples again after a call where the clock never ticked7 ms
PassedClockReliabilityChecker › exposes the time origin from performance0.17 ms
PassedClockReliabilityChecker › reads the clock not more than 100 001 times: a first tick after these reads is not measured11 ms
PassedClockReliabilityChecker › returns 0 and is not high-resolution for a clock that never advances10 ms
PassedClockReliabilityChecker › is not high-resolution at a resolution of exactly 50 μs0.21 ms
PassedClockReliabilityChecker › measures the resolution from the smallest of the first 5 ticks of the clock0.17 ms
packages/lag/src/ClsCalculator.test.ts13 passed
StatusTestDuration
PassedClsCalculator boundaries › starts a new window at a gap of exactly 1000 ms and at a length of exactly 5000 ms, as web-vitals does1.7 ms
PassedClsCalculator › sums shifts in one session window0.18 ms
PassedClsCalculator › starts a new window after a gap of more than 1 s0.11 ms
PassedClsCalculator › starts a new window when a window is longer than 5 s0.11 ms
PassedClsCalculator › keeps the sources of the largest shift in the worst window0.82 ms
PassedClsCalculator › counts the 5 s length of a window from its first shift, also when the first shift is late0.19 ms
PassedClsCalculator › starts the first window after reset() at the first shift0.33 ms
PassedClsCalculator › gives no sources for a shift without sources0.21 ms
PassedClsCalculator › keeps the largest shift of a window when a smaller shift follows0.26 ms
PassedClsCalculator › names the later of two shifts with the same score in a window, as web-vitals does0.12 ms
PassedClsCalculator › keeps the first of two windows with the same score as the worst window, as web-vitals does0.11 ms
PassedClsCalculator › reset() clears everything0.23 ms
PassedClsCalculator › agrees with the reference definition for any sequence of shifts (property test)13 ms
packages/lag/src/ComputePressureMonitor.test.ts16 passed
StatusTestDuration
PassedComputePressureMonitor › constructs a PressureObserver and observes the configured sources4.3 ms
PassedComputePressureMonitor › reports records with state ordinals0.83 ms
PassedComputePressureMonitor › tracks the latest state per source0.2 ms
PassedComputePressureMonitor › getWorstStateOrdinal returns the max across sources0.35 ms
PassedComputePressureMonitor › returns -1 worst ordinal before any samples0.17 ms
PassedComputePressureMonitor › logs a warning if observe() rejects (unsupported source)0.45 ms
PassedComputePressureMonitor › logs a warning if PressureObserver constructor throws0.21 ms
PassedComputePressureMonitor › disconnects on stop and clears state0.28 ms
PassedComputePressureMonitor › prevents double-start0.5 ms
PassedComputePressureMonitor › rules of the observer › observes again after stop() and start()0.29 ms
PassedComputePressureMonitor › rules of the observer › stop() works, and the monitor logs the reason, when the browser has no PressureObserver0.67 ms
PassedComputePressureMonitor › rules of the observer › logs the source that the browser does not support0.35 ms
PassedComputePressureMonitor › rules of the observer › observes the other sources when observe() throws for one source0.35 ms
PassedComputePressureMonitor › rules of the observer › gives the most severe state of all sources, also when a less severe record comes last0.15 ms
PassedComputePressureMonitor › rules of the observer › logs no warning when stop() rejects the pending observe() calls, also after a new start2.6 ms
PassedComputePressureMonitor › rules of the observer › logs an error from the report function and continues with the next record0.38 ms
packages/lag/src/DriftLag.granularity.test.ts22 passed
StatusTestDuration
PassedDriftLag when the timer granularity changes › reports no lag on an idle thread after the steps change from 6 ms to 16 ms8.2 ms
PassedDriftLag when the timer granularity changes › adapts the baseline to the new granularity in about one second3.9 ms
PassedDriftLag when the timer granularity changes › gives no lag when the change comes at the end of a window: the window waits for the row1.3 ms
PassedDriftLag when the timer granularity changes › ends the window at the step that accepts the new granularity0.52 ms
PassedDriftLag when the timer granularity changes › gives the old baseline to the steps of the window before the row of a finer granularity1.8 ms
PassedDriftLag when the timer granularity changes › follows a change to a finer granularity, and then measures a block correctly2.5 ms
PassedDriftLag when the timer granularity changes › keeps a row of long steps (more than 40 ms) as lag: no granularity is that coarse2.9 ms
PassedDriftLag when the timer granularity changes › keeps a row of steps that do not agree with each other as lag5.6 ms
PassedDriftLag baseline › is the mean of the steps that are not longer than the median plus max(4 ms, half the median)1.3 ms
PassedDriftLag baseline › leaves out a block, also when the block comes before shorter steps0.32 ms
PassedDriftLag baseline of a short window of steps › uses the mean of the two middle steps as the median of an even number of steps0.36 ms
PassedDriftLag baseline of a short window of steps › uses the middle step as the median of an odd number of steps, and keeps a step at the limit0.64 ms
PassedDriftLag rules for a change of the granularity › accepts a new granularity after exactly 10 steps in a row2.4 ms
PassedDriftLag rules for a change of the granularity › starts a new row of steps after a restart3.1 ms
PassedDriftLag rules for a change of the granularity › does not change the baseline for a row that a normal step interrupts2.5 ms
PassedDriftLag rules for a change of the granularity › does not start a row with steps that are longer than the baseline by exactly the jitter limit (4 ms)1.2 ms
PassedDriftLag rules for a change of the granularity › accepts a row of steps of exactly 40 ms as a new granularity1.4 ms
PassedDriftLag rules for a change of the granularity › accepts a row of steps that differ by 20 % of their mean as one granularity1.2 ms
PassedDriftLag rules for a change of the granularity › ends a window not more than 10 steps after its normal length while rows of steps start and end1 ms
PassedDriftLag rules for a change of the granularity › gives no lag to the next window when it accepts a row that started in the window before1 ms
PassedDriftLag rules for a change of the granularity › gives each step before a second accepted row in a window the baseline of the time of the step1.4 ms
PassedDriftLag rules for a change of the granularity › ends the warm-up after 11 steps: the 12th step after a restart can start a row of a finer granularity1.4 ms
packages/lag/src/DriftLag.load.test.ts35 passed
StatusTestDuration
PassedDriftLag during a sustained load › reports equal tasks of 20 ms as lag, also after 5 s9.5 ms
PassedDriftLag during a sustained load › reported the same load as a new granularity without a probe4.3 ms
PassedDriftLag during a sustained load › reports equal timer tasks of 30 ms, 5 ms apart, as lag8.7 ms
PassedDriftLag during a sustained load › reports equal tasks of 20 ms as lag when the idle step takes 15.6 ms6.7 ms
PassedDriftLag during a sustained load › reported less lag without a probe when the idle step takes 15.6 ms2 ms
PassedDriftLag during a sustained load › reports no lag after the load, and the probes stop5.4 ms
PassedDriftLag during a sustained load › measures a block after the load correctly3.3 ms
PassedDriftLag during a sustained load › finds the idle baseline when the monitor starts during a load2.4 ms
PassedDriftLag during a sustained load › removes the busy steps with one check after a load, when the busy steps are in the jitter limit5.7 ms
PassedDriftLag during a sustained load › finds the idle baseline of 15.6 ms when the monitor starts during a load of 20 ms tasks4.4 ms
PassedDriftLag with a probe when the timer granularity changes › accepts a coarser granularity on an idle thread after 10 steps, with no lag3.5 ms
PassedDriftLag with a probe when the timer granularity changes › accepts the new granularity two steps later than without a probe: the probed step and the next step are not in the row2.8 ms
PassedDriftLag with a probe when the timer granularity changes › accepts a finer granularity with no probe2.7 ms
PassedDriftLag with a probe when the timer granularity changes › confirms a small increase of the granularity with a probe3.4 ms
PassedDriftLag with a probe when the timer granularity changes › does one check on an idle thread, after the first window1.7 ms
PassedDriftLag with a probe when the timer granularity changes › adds the first step to the recent steps0.11 ms
PassedDriftLag with a probe when the timer granularity changes › stops a probe when the monitor stops0.21 ms
PassedDriftLag when the granularity changes at any time in a window › gives no lag on an idle thread when the steps change from 15.6 ms to 5.7 ms (probe: true)378 ms
PassedDriftLag when the granularity changes at any time in a window › gives no lag on an idle thread when the steps change from 15.6 ms to 5.7 ms (probe: false)153 ms
PassedDriftLag when the granularity changes at any time in a window › gives no lag on an idle thread when the steps change from 5.7 ms to 15.6 ms (probe: true)377 ms
PassedDriftLag when the granularity changes at any time in a window › gives no lag on an idle thread when the steps change from 5.7 ms to 15.6 ms (probe: false)163 ms
PassedDriftLag when the granularity changes at any time in a window › measures a block of 100 ms just before a change to a coarser granularity125 ms
PassedDriftLag with the timer tick of Windows after a start › measures a block in the first window, and ends the first window after 20 steps (probe: true)21 ms
PassedDriftLag with the timer tick of Windows after a start › measures a block in the first window, and ends the first window after 20 steps (probe: false)3.1 ms
PassedDriftLag with the timer tick of Windows after a start › measures a block after a restart in which the granularity changed16 ms
PassedDriftLag probe rules › probes the step after the 5th step of a row of longer steps0.91 ms
PassedDriftLag probe rules › does not use the probe of an earlier row for a new row1.3 ms
PassedDriftLag probe rules › ends the row when it accepts a new granularity: the next windows have their normal length1.8 ms
PassedDriftLag probe rules › lowers the confirmed value with the baseline: a later small increase needs a probe2.9 ms
PassedDriftLag with a probe that changes the timing › confirms the idle duration from steps that were not probed, when a probe makes a step shorter1.2 ms
PassedDriftLag with a probe that changes the timing › confirms a new idle duration also when the step after a probe is longer2 ms
PassedDriftLag with a probe that changes the timing › operates as without a probe when each message waits2.3 ms
PassedDriftLag without a probe › has no confirmed value: after a row of shorter steps, the baseline follows a small increase1 ms
PassedDriftLag without a probe › operates with the default options0.74 ms
PassedDriftLag without a probe › clears the timer one time when it stops two times0.75 ms
packages/lag/src/DriftLag.power.test.ts25 passed
StatusTestDuration
PassedDriftLag with the timer alignment of WebKit › gives steps of 8 ms with the normal alignment of 4 ms (offset 0)8.7 ms
PassedDriftLag with the timer alignment of WebKit › follows the alignment of 30 ms of Low Power Mode, and still measures a block (offset 0)5.3 ms
PassedDriftLag with the timer alignment of WebKit › gives no lag after a restart in a task, with a grid of 4 ms (offset 0)4.8 ms
PassedDriftLag with the timer alignment of WebKit › measures a block during the warm-up after a restart, with a grid of 4 ms (offset 0)4.3 ms
PassedDriftLag with the timer alignment of WebKit › gives no lag after a restart in a task, with a grid of 30 ms (offset 0)10 ms
PassedDriftLag with the timer alignment of WebKit › measures a block during the warm-up after a restart, with a grid of 30 ms (offset 0)1.9 ms
PassedDriftLag with the timer alignment of WebKit › gives no lag when the grid changes out of Low Power Mode at any time in a window (offset 0)193 ms
PassedDriftLag with the timer alignment of WebKit › gives not more than the jitter limit of lag when the grid changes into Low Power Mode at any time in a window (offset 0)193 ms
PassedDriftLag with the timer alignment of WebKit › gives steps of 8 ms with the normal alignment of 4 ms (offset 0.37)1.6 ms
PassedDriftLag with the timer alignment of WebKit › follows the alignment of 30 ms of Low Power Mode, and still measures a block (offset 0.37)1.6 ms
PassedDriftLag with the timer alignment of WebKit › gives no lag after a restart in a task, with a grid of 4 ms (offset 0.37)1.5 ms
PassedDriftLag with the timer alignment of WebKit › measures a block during the warm-up after a restart, with a grid of 4 ms (offset 0.37)1.6 ms
PassedDriftLag with the timer alignment of WebKit › gives no lag after a restart in a task, with a grid of 30 ms (offset 0.37)1.5 ms
PassedDriftLag with the timer alignment of WebKit › measures a block during the warm-up after a restart, with a grid of 30 ms (offset 0.37)1.6 ms
PassedDriftLag with the timer alignment of WebKit › gives no lag when the grid changes out of Low Power Mode at any time in a window (offset 0.37)220 ms
PassedDriftLag with the timer alignment of WebKit › gives not more than the jitter limit of lag when the grid changes into Low Power Mode at any time in a window (offset 0.37)247 ms
PassedDriftLag with the timer alignment of WebKit › gives steps of 8 ms with the normal alignment of 4 ms (offset 0.9)1.6 ms
PassedDriftLag with the timer alignment of WebKit › follows the alignment of 30 ms of Low Power Mode, and still measures a block (offset 0.9)2.1 ms
PassedDriftLag with the timer alignment of WebKit › gives no lag after a restart in a task, with a grid of 4 ms (offset 0.9)2.1 ms
PassedDriftLag with the timer alignment of WebKit › measures a block during the warm-up after a restart, with a grid of 4 ms (offset 0.9)2.1 ms
PassedDriftLag with the timer alignment of WebKit › gives no lag after a restart in a task, with a grid of 30 ms (offset 0.9)2.4 ms
PassedDriftLag with the timer alignment of WebKit › measures a block during the warm-up after a restart, with a grid of 30 ms (offset 0.9)2.4 ms
PassedDriftLag with the timer alignment of WebKit › gives no lag when the grid changes out of Low Power Mode at any time in a window (offset 0.9)221 ms
PassedDriftLag with the timer alignment of WebKit › gives not more than the jitter limit of lag when the grid changes into Low Power Mode at any time in a window (offset 0.9)247 ms
PassedDriftLag with the timer alignment of WebKit › follows a change into Low Power Mode and out of it2.4 ms
packages/lag/src/DriftLag.replay.test.ts49 passed
StatusTestDuration
PassedDriftLag in a replay of throttled timers › false lag › records no value for a grid of 1 s and a task of 30 ms after each step, and the control "never" records false lag163 ms
PassedDriftLag in a replay of throttled timers › false lag › records no value for a grid of 1 s and a task of 45 ms after each step, and the control "never" records false lag138 ms
PassedDriftLag in a replay of throttled timers › false lag › records no value for a grid of 1 s and a task of 60 ms after each step, and the control "never" records false lag143 ms
PassedDriftLag in a replay of throttled timers › false lag › records no value for a grid of 1 s and a task of 200 ms after each step, and the control "never" records false lag118 ms
PassedDriftLag in a replay of throttled timers › false lag › records no value for a grid of 60 s from the start118 ms
PassedDriftLag in a replay of throttled timers › false lag › records no value when the grid changes from 1 s to 60 s, or from 60 s to 1 s195 ms
PassedDriftLag in a replay of throttled timers › false lag › records no value for a timer that fires on the grid after 3 steps of the grid85 ms
PassedDriftLag in a replay of throttled timers › false lag › reads a wake off the grid as a block, and not as more than its step minus one step of the grid241 ms
PassedDriftLag in a replay of throttled timers › real blocks › records a block of 2500 ms at a grid of 1 s, with tasks of 0 ms, not above its size105 ms
PassedDriftLag in a replay of throttled timers › real blocks › records a block of 6000 ms at a grid of 1 s, with tasks of 0 ms, not above its size116 ms
PassedDriftLag in a replay of throttled timers › real blocks › records a block of 2500 ms at a grid of 1 s, with tasks of 30 ms, not above its size86 ms
PassedDriftLag in a replay of throttled timers › real blocks › records a block of 6000 ms at a grid of 1 s, with tasks of 30 ms, not above its size71 ms
PassedDriftLag in a replay of throttled timers › real blocks › records a block of 200 s at a grid of 60 s, not above its size62 ms
PassedDriftLag in a replay of throttled timers › real blocks › records no value for a block that is shorter than the grid54 ms
PassedDriftLag in a replay of throttled timers › real blocks › records no value for most blocks of 1.5 steps of the grid53 ms
PassedDriftLag in a replay of throttled timers › real blocks › loses a part of the blocks before two steps of the grid agree, and does not overstate the others67 ms
PassedDriftLag in a replay of throttled timers › the mark of a value › marks each long value of a wake off the grid after 3 s, and the value is the only long value of its run104 ms
PassedDriftLag in a replay of throttled timers › the mark of a value › marks each long value of a wake off the grid after 7 s, and the value is the only long value of its run124 ms
PassedDriftLag in a replay of throttled timers › the mark of a value › marks each long value of a block of 2.5 s, and the value is the only long value of its run100 ms
PassedDriftLag in a replay of throttled timers › the mark of a value › marks each long value of a block of 6 s, and the value is the only long value of its run81 ms
PassedDriftLag in a replay of throttled timers › the mark of a value › gives the same mark and the same value to a wake and to a block with the same steps: it cannot tell them419 ms
PassedDriftLag in a replay of throttled timers › the mark of a value › gives no mark to a block with no throttling31 ms
PassedDriftLag in a replay of throttled timers › the mark of a value › records no value of a long step by default: a wake and a block read 0, and the task still reads no false lag596 ms
PassedDriftLag in a replay of throttled timers › the count of unread steps › does not rise with a grid of 1 s, with no block120 ms
PassedDriftLag in a replay of throttled timers › the count of unread steps › does not rise with a grid of 60 s, with no block116 ms
PassedDriftLag in a replay of throttled timers › the count of unread steps › does not rise with a grid that moves from 1 s to 60 s, with no block136 ms
PassedDriftLag in a replay of throttled timers › the count of unread steps › does not rise with a grid that moves from 60 s to 1 s, with no block181 ms
PassedDriftLag in a replay of throttled timers › the count of unread steps › does not rise with a task of 30 ms at each step, with no block129 ms
PassedDriftLag in a replay of throttled timers › the count of unread steps › does not rise with a task of 200 ms at each step, with no block118 ms
PassedDriftLag in a replay of throttled timers › the count of unread steps › rises by default with a block of 2.5 s, so its 0 is not "no block"101 ms
PassedDriftLag in a replay of throttled timers › the count of unread steps › gives a value or a count for a block of 2.5 s, with the option, at each position98 ms
PassedDriftLag in a replay of throttled timers › the count of unread steps › rises by default with a block of 6 s, so its 0 is not "no block"105 ms
PassedDriftLag in a replay of throttled timers › the count of unread steps › gives a value or a count for a block of 6 s, with the option, at each position104 ms
PassedDriftLag in a replay of throttled timers › the count of unread steps › rises by default with a block of 2.5 s with a task at each step, so its 0 is not "no block"78 ms
PassedDriftLag in a replay of throttled timers › the count of unread steps › gives a value or a count for a block of 2.5 s with a task at each step, with the option, at each position63 ms
PassedDriftLag in a replay of throttled timers › the count of unread steps › rises by default with a block of 90 s on a grid of 60 s, so its 0 is not "no block"83 ms
PassedDriftLag in a replay of throttled timers › the count of unread steps › gives a value or a count for a block of 90 s on a grid of 60 s, with the option, at each position79 ms
PassedDriftLag in a replay of throttled timers › the count of unread steps › counts a block before the monitor has a grid, at each position208 ms
PassedDriftLag in a replay of throttled timers › the count of unread steps › counts one step for a wake off the grid, and for a missed beat on the grid: it does not say which227 ms
PassedDriftLag in a replay of throttled timers › the count of unread steps › does not see a block that ends before the next step of the grid: this is a limit of the count91 ms
PassedDriftLag in a replay of throttled timers › the cost of the check › keeps its messages under 2 s per minute with back-to-back tasks of 9 ms14 ms
PassedDriftLag in a replay of throttled timers › the cost of the check › keeps its messages under 2 s per minute with back-to-back tasks of 12 ms15 ms
PassedDriftLag in a replay of throttled timers › the cost of the check › keeps its messages under 2 s per minute with back-to-back tasks of 20 ms9.4 ms
PassedDriftLag in a replay of throttled timers › the cost of the check › keeps its messages under 2 s per minute with back-to-back tasks of 30 ms9 ms
PassedDriftLag in a replay of throttled timers › the cost of the check › keeps its messages under 2 s per minute with back-to-back tasks of 50 ms10 ms
PassedDriftLag in a replay of throttled timers › the cost of the check › keeps its messages under 2 s per minute with back-to-back tasks of 100 ms4.3 ms
PassedDriftLag in a replay of throttled timers › the cost of the check › keeps its messages under 2 s per minute with back-to-back tasks of 300 ms2.5 ms
PassedDriftLag in a replay of throttled timers › the cost of the check › keeps its messages under 2 s per minute with back-to-back tasks of 700 ms3.5 ms
PassedDriftLag in a replay of throttled timers › the cost of the check › does not add messages on an idle page, or for a task after each step41 ms
packages/lag/src/DriftLag.test.ts14 passed
StatusTestDuration
PassedDriftLag › reports no lag on an idle thread with exact timers6.3 ms
PassedDriftLag › subtracts the timer granularity: an idle thread with 16 ms steps has no lag1.5 ms
PassedDriftLag › changes the number of steps so that a window stays near the expected length0.76 ms
PassedDriftLag › reports the length of a block in the window0.55 ms
PassedDriftLag › keeps the baseline when one step is long1.1 ms
PassedDriftLag › uses the requested step as the baseline before the first step0.38 ms
PassedDriftLag › requests the same step delay for every step, with or without lag0.98 ms
PassedDriftLag › logs errors and continues monitoring when report throws1.7 ms
PassedDriftLag › stop() right after construction clears the pending timer3.9 ms
PassedDriftLag › stop() from inside report stops the loop0.52 ms
PassedDriftLag › start() after stop() measures from the restart, not across the stopped time0.43 ms
PassedDriftLag › start() while running does not add a second timer chain0.2 ms
PassedDriftLag › stop() + start() from inside report leaves exactly one timer chain0.39 ms
PassedDriftLag › uses whole steps for a window: 103 ms gives 20 steps of 5 ms0.36 ms
packages/lag/src/DriftLag.throttle.test.ts23 passed
StatusTestDuration
PassedDriftLag with throttled timers › records no window while the nested timers wait for a grid of 1 s on an idle thread, and records windows again after17 ms
PassedDriftLag with throttled timers › gives no lag for a throttling that starts at any time in the grid and in a window346 ms
PassedDriftLag with throttled timers › gives no lag for a throttling that starts during a check of the baseline264 ms
PassedDriftLag with throttled timers › gives no lag for a throttling that ends at any time in the grid361 ms
PassedDriftLag with throttled timers › gives the state of the timers to onThrottle: true when it finds the throttling, and false when it ends3.3 ms
PassedDriftLag with throttled timers › gives false to onThrottle when it stops during the throttling, and nothing at a stop without throttling5.8 ms
PassedDriftLag with throttled timers › finds the throttling without onThrottle, and logs no error5.5 ms
PassedDriftLag with throttled timers › logs an error of onThrottle, and continues4 ms
PassedDriftLag with throttled timers › finds the throttling also when it starts before the first step1.6 ms
PassedDriftLag with throttled timers › uses few messages: one probe of 50 ms to find the throttling, and one each 30 throttled steps8 ms
PassedDriftLag with throttled timers › records a load of equal long tasks as lag4.2 ms
PassedDriftLag with throttled timers › records a load of tasks of 100 ms as lag, without a probe: only a second long step of 500 ms or more starts a check3.2 ms
PassedDriftLag with throttled timers › ends the throttling when a check operates during the first short step12 ms
PassedDriftLag with throttled timers › records a block as lag without a probe: one long step does not start a check3.3 ms
PassedDriftLag with throttled timers › records a block in the warm-up after a restart without a probe1.8 ms
PassedDriftLag with throttled timers › records a load that starts when the throttling ends, at the next check of the throttled steps6.5 ms
PassedDriftLag with throttled timers › finds the throttling when a task of more than half of the probe starts with each step2.3 ms
PassedDriftLag with throttled timers › logs the busy time of each check that found no free stretch, so that a failure shows the cause1.9 ms
PassedDriftLag with throttled timers › a task of more than half of the probe after each step of throttled timers › control: with no task, the check finds the throttling at each position and no lag shows62 ms
PassedDriftLag with throttled timers › a task of more than half of the probe after each step of throttled timers › records no false lag of 1 s or more when the task follows each step for all 6 s66 ms
PassedDriftLag with throttled timers › a task of more than half of the probe after each step of throttled timers › records no false lag of 1 s or more when the task follows each step for the first 2.5 s54 ms
PassedDriftLag with throttled timers › does not look for throttling without postTask0.54 ms
PassedDriftLag with throttled timers › starts again without the throttled state after stop() and start()2.2 ms
packages/lag/src/EventTimingMonitor.test.ts24 passed
StatusTestDuration
PassedEventTimingMonitor › reports decomposed event timing4.6 ms
PassedEventTimingMonitor › ignores events with interactionId=00.37 ms
PassedEventTimingMonitor › calculates INP as p98 of interaction durations1.2 ms
PassedEventTimingMonitor › returns 0 INP with no interactions0.24 ms
PassedEventTimingMonitor › tracks worst interaction duration per interactionId0.32 ms
PassedEventTimingMonitor › keeps the INP at stop(), and reports each interaction one time after a restart0.82 ms
PassedEventTimingMonitor › asks the browser for events down to 16ms (default threshold is 104ms)0.64 ms
PassedEventTimingMonitor › keeps INP correct while tracking only the longest few interactions5.7 ms
PassedEventTimingMonitor › counts an interaction once across its several events1.7 ms
PassedEventTimingMonitor › clamps presentationDelay at 0 when rounding makes it negative0.29 ms
PassedEventTimingMonitor › uses performance.interactionCount when the browser supplies it0.71 ms
PassedEventTimingMonitor › counts the interactions from the start of the page, as the buffered candidates from before the start do0.62 ms
PassedEventTimingMonitor › counts the interactions it saw when the browser count is missing0.5 ms
PassedEventTimingMonitor › processes the buffered entries that the browser delivers inside observe(), as old Safari did0.35 ms
PassedEventTimingMonitor › gives the event keydown the interaction type keyboard0.16 ms
PassedEventTimingMonitor › gives the event keyup the interaction type keyboard0.07 ms
PassedEventTimingMonitor › gives the event pointerdown the interaction type pointer0.07 ms
PassedEventTimingMonitor › gives the event mousedown the interaction type pointer0.06 ms
PassedEventTimingMonitor › gives the event click the interaction type pointer0.06 ms
PassedEventTimingMonitor › gives the event auxclick the interaction type pointer0.05 ms
PassedEventTimingMonitor › gives the event contextmenu the interaction type pointer0.05 ms
PassedEventTimingMonitor › gives the event touchstart the interaction type pointer0.05 ms
PassedEventTimingMonitor › gives the event dblclick the interaction type other0.06 ms
PassedEventTimingMonitor › gives the event input the interaction type other0.05 ms
packages/lag/src/FrameTimingMonitor.test.ts29 passed
StatusTestDuration
PassedFrameTimingMonitor › schedules an animation frame on construction4.1 ms
PassedFrameTimingMonitor › does not report on the first frame (no previous baseline)1 ms
PassedFrameTimingMonitor › reports zero dropped frames for an on-time frame0.53 ms
PassedFrameTimingMonitor › reports exact dropped frame count for a delayed frame0.22 ms
PassedFrameTimingMonitor › counts a 100ms gap as 5 dropped frames at 60fps0.14 ms
PassedFrameTimingMonitor › tolerates slightly-late frames (16.67 → 17ms)0.12 ms
PassedFrameTimingMonitor › tracks total dropped frames and dropped frame rate0.18 ms
PassedFrameTimingMonitor › resets counters0.19 ms
PassedFrameTimingMonitor › cancels pending frame on stop0.16 ms
PassedFrameTimingMonitor › cancels the frame one time when it stops two times0.14 ms
PassedFrameTimingMonitor › start() while the monitor operates requests no second frame0.15 ms
PassedFrameTimingMonitor › ignores a callback of the chain before stop() and start(), also when the cancel did not remove it0.84 ms
PassedFrameTimingMonitor › respects custom target FPS0.21 ms
PassedFrameTimingMonitor › stop() + start() inside report: one rAF chain, and no frame spanning the pause0.25 ms
PassedFrameTimingMonitor › automatic frame interval › follows a 120 Hz display0.28 ms
PassedFrameTimingMonitor › automatic frame interval › does not count a 30 fps limit (power saving) as dropped frames0.33 ms
PassedFrameTimingMonitor › automatic frame interval › keeps the estimate through a burst of jank0.59 ms
PassedFrameTimingMonitor › automatic frame interval › ignores deltas too short to be a refresh interval0.14 ms
PassedFrameTimingMonitor › automatic frame interval › keeps the interval when one gap is short: a late frame and then an on-time frame1.9 ms
PassedFrameTimingMonitor › automatic frame interval › measures the gaps between the frame timestamps, not the times at which the callbacks run0.66 ms
PassedFrameTimingMonitor › automatic frame interval › reads the clock when the callback gets no frame timestamp0.28 ms
PassedFrameTimingMonitor › rules of the frame interval › uses 60 Hz before the first frames0.24 ms
PassedFrameTimingMonitor › rules of the frame interval › estimates the interval for the target fps "auto"0.17 ms
PassedFrameTimingMonitor › rules of the frame interval › uses 60 Hz until the window has five deltas0.26 ms
PassedFrameTimingMonitor › rules of the frame interval › accepts a delta of 4 ms as a frame interval0.14 ms
PassedFrameTimingMonitor › rules of the frame interval › uses the fifth-shortest delta, thus four short deltas do not change the interval0.16 ms
PassedFrameTimingMonitor › rules of the frame interval › follows a change from 60 Hz to 120 Hz at the fifth short delta0.18 ms
PassedFrameTimingMonitor › rules of the frame interval › follows a change from 120 Hz to 60 Hz after 600 frames6.4 ms
PassedFrameTimingMonitor › rules of the frame interval › logs an error from the report function and continues with the next frame0.88 ms
packages/lag/src/GCSignalDetector.test.ts11 passed
StatusTestDuration
PassedGCSignalDetector › arms exactly one canary on construction2.1 ms
PassedGCSignalDetector › records a GC event when the canary is collected, and re-arms1.8 ms
PassedGCSignalDetector › counts one event per GC cycle, however long the gap between cycles0.27 ms
PassedGCSignalDetector › didGCRecently returns true only within the window0.48 ms
PassedGCSignalDetector › getRecentGCEvents counts events in window0.38 ms
PassedGCSignalDetector › respects the historySize ring buffer0.35 ms
PassedGCSignalDetector › ignores collections after stop and doesn't re-arm0.14 ms
PassedGCSignalDetector › re-arms on restart, without doubling up when the old canary is still pending0.59 ms
PassedGCSignalDetector › keeps one canary when onGC stops and starts the detector0.87 ms
PassedGCSignalDetector › logs an error and keeps detecting if the cleanup callback throws0.69 ms
PassedGCSignalDetector › counts a GC exactly at the edge of the window0.28 ms
packages/lag/src/IdleAvailabilityMonitor.test.ts15 passed
StatusTestDuration
PassedIdleAvailabilityMonitor › schedules an idle callback on construction3.4 ms
PassedIdleAvailabilityMonitor › reports timeRemaining and didTimeout1.1 ms
PassedIdleAvailabilityMonitor › reports timeSinceLastIdleMs as 0 on first fire0.19 ms
PassedIdleAvailabilityMonitor › reports time gap between idle fires0.15 ms
PassedIdleAvailabilityMonitor › tracks timeout rate0.19 ms
PassedIdleAvailabilityMonitor › returns zero timeout rate before any fires0.13 ms
PassedIdleAvailabilityMonitor › resets counters0.36 ms
PassedIdleAvailabilityMonitor › cancels pending idle callback on stop0.26 ms
PassedIdleAvailabilityMonitor › cancels the idle callback one time when it stops two times0.16 ms
PassedIdleAvailabilityMonitor › start() while the monitor operates requests no second idle callback0.09 ms
PassedIdleAvailabilityMonitor › ignores a callback of the chain before stop() and start(), also when the cancel did not remove it0.34 ms
PassedIdleAvailabilityMonitor › rules of the gaps and of the callback chain › gives a gap of 0 for the first callback after a restart0.44 ms
PassedIdleAvailabilityMonitor › rules of the gaps and of the callback chain › measures the gap from a callback at the time 00.19 ms
PassedIdleAvailabilityMonitor › rules of the gaps and of the callback chain › logs an error from the report function and continues with the next callback0.78 ms
PassedIdleAvailabilityMonitor › rules of the gaps and of the callback chain › leaves one waiting callback when report() stops and starts the monitor0.25 ms
packages/lag/src/InpCalculator.test.ts11 passed
StatusTestDuration
PassedInpCalculator › returns 0 without interactions1.6 ms
PassedInpCalculator › ignores entries without an interactionId0.47 ms
PassedInpCalculator › uses the longest event of an interaction0.2 ms
PassedInpCalculator › counts interactions since the start when the browser supplies a count0.22 ms
PassedInpCalculator › reset() starts a new calculation and a new count baseline0.36 ms
PassedInpCalculator › reset() with a baseline counts from that baseline0.13 ms
PassedInpCalculator › reset() without a browser count clears the calculation0.2 ms
PassedInpCalculator › counts the events of one interaction as one candidate, also at 50 or more interactions0.2 ms
PassedInpCalculator › gives the shortest kept interaction when the number of outliers is larger than the number of kept interactions0.62 ms
PassedInpCalculator › gives 0 as the longest duration without interactions0.13 ms
PassedInpCalculator › agrees with the reference definition for any sequence of entries (property test)14 ms
packages/lag/src/LagLogger.test.ts16 passed
StatusTestDuration
PassedLagLogger › should not log anything if utilization remains low4 ms
PassedLagLogger › should ignore all measurements if the tab was hidden0.41 ms
PassedLagLogger › should log warnings for both short and long-term violations if utilization is high enough2.3 ms
PassedLagLogger › should reset its internal state after reporting2.8 ms
PassedLagLogger › uses the interval of each measurement, for example windows of 93 ms3.1 ms
PassedLagLogger › should handle buffer size correctly without unbounded growth4.4 ms
PassedLagLogger › 'short-term' lag detection › should log a warning when average lag exceeds 100% over 2000ms1.5 ms
PassedLagLogger › 'short-term' lag detection › should not log if utilization is below $threshold %0.8 ms
PassedLagLogger › 'long-term' lag detection › should log a warning when average lag exceeds 50% over 5000ms0.87 ms
PassedLagLogger › 'long-term' lag detection › should not log if utilization is below $threshold %0.72 ms
PassedLagLogger › rules of the periods › warns for a 2 s period of high lag that comes after 10 s of low lag1.2 ms
PassedLagLogger › rules of the periods › averages the lag of the most recent samples that cover the period, and no older sample0.84 ms
PassedLagLogger › rules of the periods › does not warn for an average of exactly the threshold0.75 ms
PassedLagLogger › rules of the periods › does not warn for one long sample that the 2 s period averages below 100 %0.91 ms
PassedLagLogger › rules of the periods › warns for a 5 s period at the start of each report period1.9 ms
PassedLagLogger › rules of the periods › uses the measurement interval when a measurement gives an interval of 00.93 ms
packages/lag/src/LayoutShiftMonitor.test.ts9 passed
StatusTestDuration
PassedLayoutShiftMonitor › reports individual shift values4.3 ms
PassedLayoutShiftMonitor › excludes shifts with hadRecentInput=true0.44 ms
PassedLayoutShiftMonitor › accumulates session values within 1s gap0.39 ms
PassedLayoutShiftMonitor › starts new session after 1s gap0.19 ms
PassedLayoutShiftMonitor › starts new session after 5s max duration0.2 ms
PassedLayoutShiftMonitor › tracks worst session value as CLS0.15 ms
PassedLayoutShiftMonitor › keeps the CLS at stop(), and reports each shift one time after a restart0.76 ms
PassedLayoutShiftMonitor › reports the sources of each shift, and no sources for a shift without them0.34 ms
PassedLayoutShiftMonitor › processes the buffered shifts that the browser delivers inside observe(), as old Safari did0.55 ms
packages/lag/src/LongAnimationFrameMonitor.test.ts10 passed
StatusTestDuration
PassedLongAnimationFrameMonitor › reports blockingDuration and duration from LoAF entries5.1 ms
PassedLongAnimationFrameMonitor › calculates renderDuration from renderStart to the end of the frame0.49 ms
PassedLongAnimationFrameMonitor › reports renderDuration 0 for frames that did not render0.23 ms
PassedLongAnimationFrameMonitor › detects forced layout from scripts0.32 ms
PassedLongAnimationFrameMonitor › reports hasForceLayout=false when no forced layout0.32 ms
PassedLongAnimationFrameMonitor › rules of the script attribution › reports no scripts for an entry without a list of scripts0.54 ms
PassedLongAnimationFrameMonitor › rules of the script attribution › names the first of the longest scripts with its function name, and finds a forced layout in any script0.85 ms
PassedLongAnimationFrameMonitor › rules of the script attribution › gives an empty function name for a script without one0.26 ms
PassedLongAnimationFrameMonitor › reports each frame one time after stop() and start(): the restart does not read the buffer of the browser again1.3 ms
PassedLongAnimationFrameMonitor › reads the buffer at a restart when the stop came before the first delivery0.31 ms
packages/lag/src/MacrotaskLag.test.ts13 passed
StatusTestDuration
PassedMacrotaskLag › constructor › sets up an interval with the specified period4.2 ms
PassedMacrotaskLag › measure() › returns a promise that resolves with the macrotask schedulng delay0.51 ms
PassedMacrotaskLag › measure() › schedules a macrotask with zero delay to measure event loop lag0.37 ms
PassedMacrotaskLag › interval callback › measures and reports lag value when interval fires0.38 ms
PassedMacrotaskLag › interval callback › logs an error when the report function throws but continues monitoring0.63 ms
PassedMacrotaskLag › interval callback › handles multiple interval cycles independently0.33 ms
PassedMacrotaskLag › stop() › clears the interval it created in the constructor0.22 ms
PassedMacrotaskLag › stop() › clears the interval one time when it stops two times0.15 ms
PassedMacrotaskLag › stop() › drops a sample that was in flight when stop() was called0.32 ms
PassedMacrotaskLag › stop() › drops a sample that was in flight across stop() and start()0.84 ms
PassedMacrotaskLag › stop() › start() while the monitor operates adds no second interval0.3 ms
PassedMacrotaskLag › stop() › can be restarted0.2 ms
PassedMacrotaskLag › postTask › starts the measurement in the posted task, so that the timer nesting clamp does not apply0.4 ms
packages/lag/src/MemoryMonitor.test.ts17 passed
StatusTestDuration
PassedMemoryMonitor › samples legacy memory immediately on start3.9 ms
PassedMemoryMonitor › uses modern API when available and ignores legacy53 ms
PassedMemoryMonitor › falls back to legacy when modern API rejects51 ms
PassedMemoryMonitor › schedules periodic samples on the configured interval2.3 ms
PassedMemoryMonitor › handles missing source methods gracefully0.49 ms
PassedMemoryMonitor › clears the interval on stop0.65 ms
PassedMemoryMonitor › clears the interval one time when it stops two times0.37 ms
PassedMemoryMonitor › drops a modern sample that resolves after stop()0.5 ms
PassedMemoryMonitor › drops a modern sample of the run before a stop() and start(), and then takes the first sample of the new run102 ms
PassedMemoryMonitor › takes no follow-up sample when the earlier measurement ends after a second stop()0.69 ms
PassedMemoryMonitor › does not start a new sample while one is still pending0.43 ms
PassedMemoryMonitor › stops calling the modern API after it fails once102 ms
PassedMemoryMonitor › rules of the sources › start() while the monitor operates adds no second interval0.99 ms
PassedMemoryMonitor › rules of the sources › logs an error from the report function and continues with the next sample0.99 ms
PassedMemoryMonitor › rules of the sources › logs the failure of the standard API at debug level, and reports nothing without a legacy API0.59 ms
PassedMemoryMonitor › rules of the sources › reports nothing, and logs nothing, when the legacy API gives no value0.47 ms
PassedMemoryMonitor › rules of the sources › gives no usage for a heap limit of 01 ms
packages/lag/src/ObserverMonitor.test.ts15 passed
StatusTestDuration
PassedObserverMonitor › creates a PerformanceObserver and calls observe with buffered4.2 ms
PassedObserverMonitor › processes entries via processEntry0.64 ms
PassedObserverMonitor › logs warning when observe throws (unsupported type)1.3 ms
PassedObserverMonitor › logs error when processEntry throws0.87 ms
PassedObserverMonitor › asks for the buffer again at a restart only until the first entries arrive0.43 ms
PassedObserverMonitor › disconnects on stop0.31 ms
PassedObserverMonitor › prevents double-start0.26 ms
PassedObserverMonitor › skips observing types missing from supportedEntryTypes0.45 ms
PassedObserverMonitor › can retry start() after observe threw0.23 ms
PassedObserverMonitor › takeRecords() processes the entries that the browser has not delivered yet0.21 ms
PassedObserverMonitor › asks for the buffer again at a restart after an empty takeRecords(), but not after entries from takeRecords()0.17 ms
PassedObserverMonitor › takeRecords() does nothing without an observer or without browser support0.13 ms
PassedObserverMonitor › gives the buffered entries that the browser delivers inside observe() to the subclass in a microtask, as for old Safari0.6 ms
PassedObserverMonitor › drops a delivery from inside observe() when stop() comes before the microtask0.57 ms
PassedObserverMonitor › stop() works after a start that failed, and the warning names the entry type and the error0.97 ms
packages/lag/src/PeerHangWatch.test.ts65 passed
StatusTestDuration
PassedPeerHangWatch › uses the channel name and the lock names of the protocol, which pages of other versions also use5 ms
PassedPeerHangWatch › sends a heartbeat when it gets its lock, then one each interval, and none after it becomes hidden1.1 ms
PassedPeerHangWatch › says away only when it was visible0.49 ms
PassedPeerHangWatch › reports a page that hangs after its first heartbeat2 ms
PassedPeerHangWatch › waits 1 s by default for a late message of a page1.1 ms
PassedPeerHangWatch › reports the page when the wait is shorter than the delay of its last message1.3 ms
PassedPeerHangWatch › stops all its timers and closes its channel1.5 ms
PassedPeerHangWatch › starts no wait for a page that ends after the stop0.69 ms
PassedPeerHangWatch › holds the lock of a visible page, and releases it when the page becomes hidden0.6 ms
PassedPeerHangWatch › reports a page that closes during a hang, with the time of its last heartbeat0.89 ms
PassedPeerHangWatch › reports nothing when the page survives its hang0.83 ms
PassedPeerHangWatch › reports nothing when a page closes or becomes hidden normally0.97 ms
PassedPeerHangWatch › reports nothing when a page ends soon after its last heartbeat (a crash, not a hang)0.58 ms
PassedPeerHangWatch › reports a hang of 5 s or more, and nothing for a shorter silence0.9 ms
PassedPeerHangWatch › lets one page only report a hang, when many pages watch it13 ms
PassedPeerHangWatch › waits for the last messages of a page after its lock comes free1.2 ms
PassedPeerHangWatch › takes the record of the worker of the hung page from the journal, and then needs no mark1.3 ms
PassedPeerHangWatch › uses its own times when the journal fails, and marks the report, because the journal can still have the record1.5 ms
PassedPeerHangWatch › reports nothing and puts the record back when it stops while it takes the record from the journal0.83 ms
PassedPeerHangWatch › logs nothing when it stops during the take, and the journal has no record or cannot put the record back1.6 ms
PassedPeerHangWatch › puts nothing back when it stops during the take and the journal has no record1.6 ms
PassedPeerHangWatch › watches the others while hidden, but sends no heartbeat and holds no lock0.63 ms
PassedPeerHangWatch › watches a page again after it becomes visible again0.73 ms
PassedPeerHangWatch › watches a page again at once when the page becomes visible again during the wait for its last messages0.83 ms
PassedPeerHangWatch › keeps a late heartbeat that the page sent before its lock came free with the earlier entry0.86 ms
PassedPeerHangWatch › keeps all late heartbeats that the page sent before its lock came free with the earlier entry: a page that ends soon after a heartbeat did not hang0.59 ms
PassedPeerHangWatch › watches a page again when the page becomes visible again in the millisecond in which its lock came free0.7 ms
PassedPeerHangWatch › does not use a lock that it got after the page became hidden again0.35 ms
PassedPeerHangWatch › stops: it says away, releases its locks, and reports nothing more0.73 ms
PassedPeerHangWatch › reports nothing when it stops while it waits for the last messages of a page0.57 ms
PassedPeerHangWatch › releases the claim when it stops1.5 ms
PassedPeerHangWatch › keeps the claim for PEER_CLAIM_HOLD_MS, and then releases it1.3 ms
PassedPeerHangWatch › reports the hang, but does not keep the claim, when it goes into the back/forward cache during the take of the record0.61 ms
PassedPeerHangWatch › does not keep the claim when the watch stops in the report0.57 ms
PassedPeerHangWatch › releases the claim when it goes into the back/forward cache0.82 ms
PassedPeerHangWatch › ignores messages that are not its own, and its own messages0.8 ms
PassedPeerHangWatch › logs a failed lock request and a failed message, and continues0.85 ms
PassedPeerHangWatch › logs a failed lock request also without AbortController0.41 ms
PassedPeerHangWatch › clears no timer at the stop when all its timers fired2.1 ms
PassedPeerHangWatch › logs a message that the channel cannot send0.69 ms
PassedPeerHangWatch in the back/forward cache › closes its channel while it is suspended, and gets no message then0.88 ms
PassedPeerHangWatch in the back/forward cache › reports no hang for a page that closed normally while it was suspended0.64 ms
PassedPeerHangWatch in the back/forward cache › cancels its waiting lock requests when it is suspended, thus it has one request for each page0.98 ms
PassedPeerHangWatch in the back/forward cache › gets no lock while it is frozen, thus a page that becomes hidden and visible again gets its own lock0.65 ms
PassedPeerHangWatch in the back/forward cache › cancels its waiting lock requests when it stops1.4 ms
PassedPeerHangWatch in the back/forward cache › watches without AbortController, but then it cannot cancel its waiting lock requests0.91 ms
PassedPeerHangWatch in the back/forward cache › opens its channel again when it resumes, and watches again1 ms
PassedPeerHangWatch in the back/forward cache › opens no channel after a stop, and logs a channel that it cannot open0.66 ms
PassedPeerHangWatch, the own page at its close › removes the record of its worker from the journal, and marks its report, as in Firefox1.1 ms
PassedPeerHangWatch, the own page at its close › reports its own hang also when the journal cannot remove the record0.65 ms
PassedPeerHangWatch, the own page at its close › reports its own hang when it closes at the end of a hang, as in Safari0.56 ms
PassedPeerHangWatch, the own page at its close › reports its own hang when a heartbeat comes between the hang and the close, as in Firefox0.64 ms
PassedPeerHangWatch, the own page at its close › reports nothing at a normal close, or at a close some time after a hang0.66 ms
PassedPeerHangWatch, the own page at its close › reports nothing that the worker monitor counted already0.52 ms
PassedPeerHangWatch, the own page at its close › reports a later hang, also after the worker monitor counted an earlier one0.51 ms
PassedPeerHangWatch, the own page at its close › reports nothing when it becomes hidden, or when it closes while hidden or before its first heartbeat0.48 ms
PassedPeerHangWatch, the own page at its close › measures the gaps again after the page was hidden0.47 ms
PassedPeerHangWatch, the own page at its close › reports a silence of exactly the threshold0.41 ms
PassedPeerHangWatch, the own page at its close › reports a gap of exactly the threshold before the last heartbeat0.37 ms
PassedPeerHangWatch, the own page at its close › reports nothing when the page operated for a heartbeat interval after the gap0.42 ms
PassedPeerHangWatch, the own page at its close › reports nothing for a close exactly one heartbeat interval after the heartbeat that ended the gap1.6 ms
PassedPeerHangWatch, the own page at its close › counts a hang that the worker monitor counted at the time of the last heartbeat as counted0.43 ms
PassedPeerHangWatch, the own page at its close › reports nothing for a gap of less than the threshold0.36 ms
PassedisPeerMessage › accepts the two messages of the watch0.29 ms
PassedisPeerMessage › refuses other values0.32 ms
packages/lag/src/SchedulingFairnessMonitor.test.ts16 passed
StatusTestDuration
PassedSchedulingFairnessMonitor › starts measurement loop on construction6 ms
PassedSchedulingFairnessMonitor › reports a SchedulingMeasurement when all three primitives complete2.1 ms
PassedSchedulingFairnessMonitor › stops the measurement loop on stop()0.89 ms
PassedSchedulingFairnessMonitor › clears the interval one time when it stops two times0.53 ms
PassedSchedulingFairnessMonitor › reports one measurement after the last of the three callbacks (microtask, messagechannel, macrotask)0.76 ms
PassedSchedulingFairnessMonitor › reports one measurement after the last of the three callbacks (macrotask, messagechannel, microtask)0.91 ms
PassedSchedulingFairnessMonitor › reports one measurement after the last of the three callbacks (messagechannel, microtask, macrotask)0.73 ms
PassedSchedulingFairnessMonitor › reports one measurement after the last of the three callbacks (macrotask, microtask, messagechannel)0.4 ms
PassedSchedulingFairnessMonitor › logs an error and does not start when the MessageChannel cannot be constructed1.2 ms
PassedSchedulingFairnessMonitor › drops a cycle that was still in flight across stop() and start()0.5 ms
PassedSchedulingFairnessMonitor › starts setTimeout(0) from a message task, not from the setInterval callback0.45 ms
PassedSchedulingFairnessMonitor › closes its channel on stop()0.45 ms
PassedSchedulingFairnessMonitor › rules of the measurement loop › start() while the monitor operates adds no second interval0.86 ms
PassedSchedulingFairnessMonitor › rules of the measurement loop › stop() works after a start that could not make the MessageChannel0.86 ms
PassedSchedulingFairnessMonitor › rules of the measurement loop › logs an error when the report function throws, and continues with the next cycle1.2 ms
PassedSchedulingFairnessMonitor › rules of the measurement loop › logs an error when a cycle cannot start, and continues with the next cycle0.99 ms
packages/lag/src/SharedLivenessMonitor.test.ts7 passed
StatusTestDuration
PassedSharedLivenessMonitor › gives the buffer to the worker at construction, with a threshold of 50 ms and a poll interval of 5 ms2.9 ms
PassedSharedLivenessMonitor › gives the worker the threshold and the poll interval of the options0.49 ms
PassedSharedLivenessMonitor › reports the duration of each block that the worker saw0.42 ms
PassedSharedLivenessMonitor › ignores the other messages of the worker0.37 ms
PassedSharedLivenessMonitor › logs an error from the report function and continues with the next block1.1 ms
PassedSharedLivenessMonitor › stop() removes the listener and stops the watcher of the worker, and a second stop() does nothing0.25 ms
PassedSharedLivenessMonitor › start() after stop() starts the watcher again, and start() while the monitor operates does nothing0.2 ms
packages/lag/src/TimerThrottleDetector.test.ts20 passed
StatusTestDuration
PassedTimerThrottleDetector › reports not throttled when timers fire on time3.5 ms
PassedTimerThrottleDetector › reports throttled when timers are delayed1.6 ms
PassedTimerThrottleDetector › transitions from throttled to not throttled1.2 ms
PassedTimerThrottleDetector › stops calibration when stop() is called0.44 ms
PassedTimerThrottleDetector › clears the calibration timer one time when it stops two times0.49 ms
PassedTimerThrottleDetector › prevents double-start0.38 ms
PassedTimerThrottleDetector › restarting does not leave a second calibration chain running0.47 ms
PassedTimerThrottleDetector › stop() from inside the logger (on a throttle change) sticks0.45 ms
PassedTimerThrottleDetector › reports every calibration round0.64 ms
PassedTimerThrottleDetector › rules of a calibration round › does not count a sample of exactly the threshold as throttled0.67 ms
PassedTimerThrottleDetector › rules of a calibration round › is not throttled when exactly half of the samples are throttled0.47 ms
PassedTimerThrottleDetector › rules of a calibration round › logs an error from the report function and starts the next round0.48 ms
PassedTimerThrottleDetector › rules of a calibration round › logs the start of the throttling and its end one time each0.4 ms
PassedTimerThrottleDetector › the message task of each sample (the control) › does not count a sample as throttled when a block delays the timer and the message task0.79 ms
PassedTimerThrottleDetector › the message task of each sample (the control) › counts a sample as throttled when the message task starts on time and the timer is late0.49 ms
PassedTimerThrottleDetector › the message task of each sample (the control) › counts a sample as throttled when the timer waits much longer than the message task0.32 ms
PassedTimerThrottleDetector › the message task of each sample (the control) › does not count a sample as throttled when the timer waits exactly the threshold longer than the message task0.26 ms
PassedTimerThrottleDetector › the message task of each sample (the control) › waits for the message task when the timer starts first0.26 ms
PassedTimerThrottleDetector › the message task of each sample (the control) › does not report or continue when it stops while the sample waits for the message task0.29 ms
PassedTimerThrottleDetector › the message task of each sample (the control) › ignores the message task of a sample of an earlier start0.27 ms
packages/lag/src/WorkerClockSync.test.ts12 passed
StatusTestDuration
PassedWorkerClockSync › estimates the offset from the exchange with the shortest round trip1.9 ms
PassedWorkerClockSync › treats an offset inside the uncertainty as 00.24 ms
PassedWorkerClockSync › has no correction before a synchronization finished0.16 ms
PassedWorkerClockSync › keeps the most accurate result of all synchronizations0.68 ms
PassedWorkerClockSync › uses 8 exchanges by default0.7 ms
PassedWorkerClockSync › ignores replies with an unknown ID0.24 ms
PassedWorkerClockSync › rules of the exchanges › ignores a reply to a synchronization that a new synchronization replaced0.23 ms
PassedWorkerClockSync › rules of the exchanges › counts a reply that comes two times only one time0.18 ms
PassedWorkerClockSync › rules of the exchanges › keeps the result of a later synchronization with a shorter round trip0.54 ms
PassedWorkerClockSync › rules of the exchanges › takes the first of the exchanges with the shortest round trip0.65 ms
PassedWorkerClockSync › rules of the exchanges › keeps its result when a later synchronization has the same round trip, thus the correction changes only for a more accurate estimate0.34 ms
PassedWorkerClockSync › rules of the exchanges › corrects by an offset that is larger than half the round trip plus 1 ms, but not by an offset of that size0.18 ms
packages/lag/src/WorkerLagMonitor.test.ts27 passed
StatusTestDuration
PassedWorkerLagMonitor › starts the worker's heartbeat loop with hang options and listens on construction5 ms
PassedWorkerLagMonitor › reports how long each heartbeat waited for the main thread, and acknowledges it1.6 ms
PassedWorkerLagMonitor › reports each queued heartbeat's wait after a block0.51 ms
PassedWorkerLagMonitor › clamps tiny negative delays from clock rounding to zero0.35 ms
PassedWorkerLagMonitor › synchronizes the clocks and corrects the delay by the measured offset0.66 ms
PassedWorkerLagMonitor › synchronizes the clocks again after the interval0.77 ms
PassedWorkerLagMonitor › reports a system stall when the worker itself was late by 5 s or more0.52 ms
PassedWorkerLagMonitor › ends the system stall when the worker sent the heartbeat, not when the main thread got it0.37 ms
PassedWorkerLagMonitor › passes hang-ended messages on0.39 ms
PassedWorkerLagMonitor › stops the worker loop and the sync timer on stop, keeps one listener, and can restart0.71 ms
PassedWorkerLagMonitor › passes on the end of a hang while it is stopped, but ignores heartbeats0.6 ms
PassedWorkerLagMonitor › removes its listener on dispose()0.87 ms
PassedWorkerLagMonitor › ignores unknown messages0.32 ms
PassedWorkerLagMonitor › logs instead of throwing when report throws0.62 ms
PassedWorkerLagMonitor › sends its page ID with start, and the page context to the worker0.59 ms
PassedWorkerLagMonitor › watchdog › warns when the worker sends no heartbeat in two checks1.6 ms
PassedWorkerLagMonitor › watchdog › does not warn after a heartbeat, also when the heartbeat comes after the first check0.57 ms
PassedWorkerLagMonitor › watchdog › stops with the monitor0.9 ms
PassedWorkerLagMonitor › watchdog › clears only the clock-sync timer at a stop after the watchdog ended0.41 ms
PassedWorkerLagMonitor › watchdog › clears no timer at a stop after a start that failed before it set its timers1.2 ms
PassedWorkerLagMonitor › rules of the messages and of the lifecycle of the monitor › handles a clock synchronization, the end of a hang and a system stall without event listeners, and logs no error0.97 ms
PassedWorkerLagMonitor › rules of the messages and of the lifecycle of the monitor › reports a system stall at a self lag of exactly 5 s0.45 ms
PassedWorkerLagMonitor › rules of the messages and of the lifecycle of the monitor › ignores a message without data, also while it is stopped0.41 ms
PassedWorkerLagMonitor › rules of the messages and of the lifecycle of the monitor › start() while the monitor operates sends nothing0.44 ms
PassedWorkerLagMonitor › rules of the messages and of the lifecycle of the monitor › keeps the context while it is stopped and sends it at the next start0.4 ms
PassedWorkerLagMonitor › rules of the messages and of the lifecycle of the monitor › listens again at start() after dispose()0.4 ms
PassedWorkerLagMonitor › rules of the messages and of the lifecycle of the monitor › waits five heartbeat intervals for each watchdog check when that is longer than 5 s0.54 ms
packages/lag/src/absolute-clock.test.ts1 passed
StatusTestDuration
PassedcreateAbsoluteClock › reads timeOrigin one time, so that a later change of timeOrigin does not move the clock1.7 ms
packages/lag/src/drift-baseline.test.ts17 passed
StatusTestDuration
PassedidleStepMs › is the step when there is one step1.9 ms
PassedidleStepMs › leaves out a block that is longer than the median plus half the median0.17 ms
PassedstepsUpTo › keeps the steps that are not longer than the limit, in the same sequence0.71 ms
PassedspreadMs › is 2 ms, or 20% of the step if that is more0.15 ms
PassedoutsideStepMs › is the step between the two baselines, for a coarser and for a finer granularity0.12 ms
PassedoutsideStepMs › is not less than the shorter baseline and not more than the longer baseline0.12 ms
PassedusedBaselineMs › is the recent baseline without a confirmed value0.09 ms
PassedusedBaselineMs › is the recent baseline if it is not more than 1 ms above a confirmed value of less than 10 ms0.11 ms
PassedusedBaselineMs › permits an increase of 10% above a confirmed value of more than 10 ms0.59 ms
PassedisIdleStep › is true for a busy time of less than 2 ms when the step is not longer than the baseline0.16 ms
PassedisIdleStep › is true for a busy time of less than half of the extra duration of the step0.1 ms
PassedinterpretCheck › gives no finding when the steps do not agree with each other0.3 ms
PassedinterpretCheck › confirms the recent baseline as the first value0.16 ms
PassedinterpretCheck › confirms the lower of the recent baseline and the idle duration when the idle duration agrees better with the recent baseline0.15 ms
PassedinterpretCheck › gives the limit of the load when the idle duration agrees better with the confirmed value0.11 ms
PassedinterpretCheck › gives the limit of the load when the idle duration is as near to the confirmed value as to the recent baseline0.1 ms
PassedinterpretCheck › uses the larger limit: the confirmed value plus its spread, or the idle duration plus its spread0.08 ms
packages/lag/src/events.test.ts7 passed
StatusTestDuration
PassedwithEventContext › adds the context attributes to each event, and reads the context for each event2.7 ms
PassedwithEventContext › gives the options of the event to the sink, and no options when the event has none0.43 ms
PassedwithEventContext › gives priority to the attributes of the event0.99 ms
PassedplaceEventTime › gives the time of the occurrence when it is no more than 30 minutes from the time of the call0.36 ms
PassedplaceEventTime › gives no time, but the attribute lag.event.time, for an occurrence farther from the time of the call0.28 ms
PassedplaceEventTime › gives nothing for an unknown time or a time that is not a finite number0.24 ms
PassedcreateNoopEventSink › accepts events and does nothing0.72 ms
packages/lag/src/forwarding-meter.test.ts14 passed
StatusTestDuration
Passedforwarding meter › creates the instruments on the other side with their first records, with their options9.8 ms
Passedforwarding meter › sends records in batches at the flush interval2.1 ms
Passedforwarding meter › sends at once when the buffer is full0.58 ms
Passedforwarding meter › sends no empty batches0.4 ms
Passedforwarding meter › dispose() sends the rest and stops the timer0.82 ms
Passedforwarding meter › the receiver ignores records for unknown instruments0.96 ms
Passedforwarding meter › sends the kind of each instrument in the batch of its first record, with the ID of the sender0.49 ms
Passedforwarding meter › gives each forwarding meter its own random sender ID1.1 ms
Passedforwarding meter › keeps the instruments of two senders apart in one receiver0.71 ms
Passedforwarding meter › gives the records to a receiver that starts to listen after the creation of the instruments0.43 ms
Passedforwarding meter › creates each instrument one time, also when a batch comes two times1.3 ms
Passedforwarding meter › ignores the records after dispose()0.53 ms
Passedforwarding meter › flushes at the interval of the options0.49 ms
Passedforwarding meter › sends each record in one batch only, and no batch when no record came after the last batch0.42 ms
packages/lag/src/frame-viewport.test.ts5 passed
StatusTestDuration
PassedcreateFrameViewport › is shown before the first notification, and observes the target only while it has listeners4.2 ms
PassedcreateFrameViewport › gives each change to the listeners, and reads the newest entry of a notification0.67 ms
PassedcreateFrameViewport › ignores a notification without entries0.28 ms
PassedcreateFrameViewport › starts from shown again with a new observer after the last listener left0.87 ms
PassedcreateFrameViewport › lets a listener unsubscribe another listener during a change0.4 ms
packages/lag/src/hang-journal.test.ts26 passed
StatusTestDuration
PassedcreateMemoryHangJournal › takes a record that was seen exactly at the limit2 ms
PassedcreateMemoryHangJournal › keeps one record for each page, and the newest write wins7.4 ms
PassedcreateMemoryHangJournal › removes a record0.22 ms
PassedcreateMemoryHangJournal › takes a stale record one time, and does not take a record that somebody updated after the limit0.29 ms
PassedcreateMemoryHangJournal › keeps a copy of the attributes, not the object of the caller0.14 ms
PassedcreateIndexedDbHangJournal › takes a record that was seen exactly at the limit4.7 ms
PassedcreateIndexedDbHangJournal › keeps one record for each page, and the newest write wins1.1 ms
PassedcreateIndexedDbHangJournal › removes a record0.43 ms
PassedcreateIndexedDbHangJournal › takes a stale record one time, and does not take a record that somebody updated after the limit0.73 ms
PassedcreateIndexedDbHangJournal › keeps a copy of the attributes, not the object of the caller0.24 ms
PassedcreateIndexedDbHangJournal › shares the records between two journals of the same database, as a page and its worker do0.41 ms
PassedcreateIndexedDbHangJournal › gives a record to only one of two journals that take it at the same time, as two pages do0.5 ms
PassedcreateIndexedDbHangJournal › ignores records that are not hang records1.2 ms
PassedcreateIndexedDbHangJournal › ignores and does not take the records whose fields have the wrong type1.5 ms
PassedcreateIndexedDbHangJournal › closes its connection when a page deletes the database, and opens the database again at the next operation1.3 ms
PassedcreateIndexedDbHangJournal › closes its connection when a later version of the library opens the database2.3 ms
PassedcreateIndexedDbHangJournal › opens the database again after the browser closed the connection1.8 ms
PassedcreateIndexedDbHangJournal › rejects when the database cannot open, and tries again at the next operation0.66 ms
PassedcreateIndexedDbHangJournal › rejects an operation whose request fails0.6 ms
PassedcreateIndexedDbHangJournal › rejects a take whose transaction aborts0.29 ms
PassedfindAbandonedHangs › finds the records that nobody updated for the stale time, except the own page0.23 ms
PassedcreateStorageHangReportMarks › gives a mark one time, with the key of the protocol0.52 ms
PassedcreateStorageHangReportMarks › removes the old marks of pages without a record, and keeps the others0.29 ms
PassedcreateStorageHangReportMarks › removes each stale mark one time, and no other key0.18 ms
PassedcreateStorageHangReportMarks › skips an index whose key is gone, for example because another page removed it, and removes the other stale marks0.18 ms
PassedcreateStorageHangReportMarks › does nothing when the storage refuses an operation0.46 ms
packages/lag/src/index.test.ts1 passed
StatusTestDuration
Passedthe public API › exports the dependency groups that the public functions use1.2 ms
packages/lag/src/lag-worker.test.ts35 passed
StatusTestDuration
Passedlag-worker handler › stays idle until told to start4.7 ms
Passedlag-worker handler › posts a timestamped heartbeat every interval once started1.8 ms
Passedlag-worker handler › reports how late its own timer fired as workerSelfLagMs0.55 ms
Passedlag-worker handler › answers a sync request with its absolute time0.32 ms
Passedlag-worker handler › stops the loop on stop and can be restarted0.56 ms
Passedlag-worker handler › clears its timer one time when it stops two times, and clears nothing at a stop before the start0.42 ms
Passedlag-worker handler › restarting with a new interval replaces the old loop instead of adding one0.54 ms
Passedlag-worker handler › hang detection › reports a hang when acks stop, and the end when they resume2.2 ms
Passedlag-worker handler › hang detection › reports each hang once1.1 ms
Passedlag-worker handler › hang detection › does not report a hang while the main thread acknowledges heartbeats0.65 ms
Passedlag-worker handler › hang detection › reports no hang while the main thread acknowledges each heartbeat, also with an interval of the threshold or more0.94 ms
Passedlag-worker handler › hang detection › reports no hang when its own timer is late by less than the threshold, and the main thread acknowledges each heartbeat0.68 ms
Passedlag-worker handler › hang detection › measures the wait from the oldest heartbeat without an acknowledgement0.83 ms
Passedlag-worker handler › hang detection › measures the wait again from an acknowledgement of an earlier heartbeat0.93 ms
Passedlag-worker handler › hang detection › does not blame the main thread for time in which the worker itself did not run0.31 ms
Passedlag-worker handler › hang detection › does not add the time in which the worker itself did not run to a hang in progress0.53 ms
Passedlag-worker handler › hang detection › ends a hang in progress at a stop, because the main thread sent the stop0.47 ms
Passedlag-worker handler › hang detection › does not blame the main thread when the worker itself was late by exactly the threshold0.31 ms
Passedlag-worker handler › hang detection › does not blame the main thread for a heartbeat that waits when the worker itself was late by exactly the threshold0.35 ms
Passedlag-worker handler › hang detection › does not detect hangs without hang options1.3 ms
Passedlag-worker handler › page context and hang journal › adds the last context to its hang reports0.69 ms
Passedlag-worker handler › page context and hang journal › writes a record when a hang starts, writes it again each second, and removes it when the hang ends1.6 ms
Passedlag-worker handler › page context and hang journal › removes the record when it stops during a hang1.1 ms
Passedlag-worker handler › page context and hang journal › writes the wall-clock time of the start of the hang to the journal0.53 ms
Passedlag-worker handler › page context and hang journal › uses Date.now() for the times of the journal when the dependencies have no wall clock0.64 ms
Passedlag-worker handler › page context and hang journal › writes no record while the main thread acknowledges the heartbeats0.78 ms
Passedlag-worker handler › page context and hang journal › removes no record at the end of a hang without a page ID0.96 ms
Passedlag-worker handler › page context and hang journal › keeps no record without a page ID0.52 ms
Passedlag-worker handler › page context and hang journal › continues the heartbeats when the journal fails0.65 ms
Passedlag-worker handler › shared-memory liveness › starts a watcher at liveness-start, and posts each block that the watcher sees1.1 ms
Passedlag-worker handler › shared-memory liveness › uses the threshold and the poll interval of the liveness-start message0.7 ms
Passedlag-worker handler › shared-memory liveness › stops the watcher at liveness-stop0.53 ms
Passedlag-worker handler › shared-memory liveness › replaces the watcher at a second liveness-start0.65 ms
Passedlag-worker handler › shared-memory liveness › ignores liveness-stop when no watcher operates0.82 ms
Passedlag-worker handler › shared-memory liveness › does not watch without both interval functions0.45 ms
packages/lag/src/measurement-conditions.test.ts44 passed
StatusTestDuration
PassedcreateMeasurementConditions › validator › records a normal sample at once6 ms
PassedcreateMeasurementConditions › validator › discards a sample whose window overlaps a hidden period1.5 ms
PassedcreateMeasurementConditions › validator › keeps the first window after the page becomes visible again0.51 ms
PassedcreateMeasurementConditions › validator › discards a sample when the page is hidden but visibilitychange has not fired yet0.43 ms
PassedcreateMeasurementConditions › validator › waits for late evidence before it records an outlier, then records it as a hang1 ms
PassedcreateMeasurementConditions › validator › reports the stall samples of one block as one episode, with the longest sample1.1 ms
PassedcreateMeasurementConditions › validator › reports separate blocks as separate episodes0.69 ms
PassedcreateMeasurementConditions › validator › gives an episode the kind suspend when one of its samples gets suspend evidence during the wait0.56 ms
PassedcreateMeasurementConditions › validator › discards a sample at once when the evidence exists before the sample, and counts a suspend stall1.4 ms
PassedcreateMeasurementConditions › validator › gives the same result when the sample comes before the suspend evidence or after it0.74 ms
PassedcreateMeasurementConditions › validator › uses the suspend evidence when a window overlaps a hidden interval and a suspend0.52 ms
PassedcreateMeasurementConditions › validator › counts no stall for a long sample in a hidden interval0.43 ms
PassedcreateMeasurementConditions › validator › dispose() reports the episodes that wait2.2 ms
PassedcreateMeasurementConditions › validator › discards an outlier when suspend evidence arrives during the wait0.76 ms
PassedcreateMeasurementConditions › validator › uses the configured outlier threshold and wait0.52 ms
PassedcreateMeasurementConditions › validator › dispose() cancels outliers that wait0.46 ms
PassedcreateMeasurementConditions › validator › dispose() clears only the timers of the outliers that still wait, one time0.65 ms
PassedcreateMeasurementConditions › validator › waits for late evidence before it records a sample at the outlier threshold0.43 ms
PassedcreateMeasurementConditions › validator › counts a suspend stall for a discarded sample at the outlier threshold0.44 ms
PassedcreateMeasurementConditions › validator › reports a stall sample that does not overlap the waiting episode as a separate episode0.59 ms
PassedcreateMeasurementConditions › validator › adds a stall sample whose window starts at the end of the waiting episode to the episode0.43 ms
PassedcreateMeasurementConditions › validator › reports a hang whose window ends before a suspend episode starts as a separate episode0.42 ms
PassedcreateMeasurementConditions › validator › adds a hang whose window ends at the start of a suspend episode to the episode0.45 ms
PassedcreateMeasurementConditions › validator › extends an episode with each sample that it gets, so that a later sample can overlap the extension0.42 ms
PassedcreateMeasurementConditions › validator › gives a hang episode the kind suspend when a sample with suspend evidence joins it0.39 ms
PassedcreateMeasurementConditions › validator › works without stall and discard listeners0.84 ms
PassedcreateMeasurementConditions › validator › works without a lifecycle0.65 ms
PassedcreateMeasurementConditions › lifecycle intervals › opens an interval at creation when the page is hidden0.42 ms
PassedcreateMeasurementConditions › lifecycle intervals › records frozen periods with their own reason0.36 ms
PassedcreateMeasurementConditions › lifecycle intervals › dispose() stops following the lifecycle and closes the open interval0.38 ms
PassedcreateMeasurementConditions › pauseWhileHidden › stops a monitor while hidden and starts it again when visible0.69 ms
PassedcreateMeasurementConditions › pauseWhileHidden › stops a monitor at once when the page is hidden at the start0.37 ms
PassedcreateMeasurementConditions › pauseWhileHidden › does not stop or start a monitor when the page loses the focus or gets it again0.49 ms
PassedcreateMeasurementConditions › pauseWhileHidden › does not start a monitor when a hidden page becomes frozen and resumes, but starts it when the page is visible0.48 ms
PassedcreateMeasurementConditions › pauseWhileHidden with the option offscreen › stops a monitor while its frame is off-screen, and starts it again when the frame is in the viewport0.73 ms
PassedcreateMeasurementConditions › pauseWhileHidden with the option offscreen › starts a monitor only when the page is visible and the frame is in the viewport0.75 ms
PassedcreateMeasurementConditions › pauseWhileHidden with the option offscreen › stops a monitor at once when the frame is off-screen at the start0.38 ms
PassedcreateMeasurementConditions › pauseWhileHidden with the option offscreen › does not follow the viewport without the option0.46 ms
PassedcreateMeasurementConditions › pauseWhileHidden with the option offscreen › stops following the page and the viewport when the returned function runs0.49 ms
PassedcreateMeasurementConditions › pauseWhileHidden with the option offscreen › follows only the viewport without a lifecycle, and only the page without a viewport1.5 ms
PassedcreateMeasurementConditions › pauseWhileHidden with the option throttled › stops a monitor while the timers are throttled, and starts it again when they are not0.5 ms
PassedcreateMeasurementConditions › pauseWhileHidden with the option throttled › stops a monitor at once when the timers are throttled at the start, also without a lifecycle0.4 ms
PassedcreateMeasurementConditions › pauseWhileHidden with the option throttled › starts a monitor only when the page is visible and the timers are not throttled0.59 ms
PassedcreateMeasurementConditions › pauseWhileHidden with the option throttled › does not follow the throttled timers without the option0.4 ms
packages/lag/src/message-task.test.ts3 passed
StatusTestDuration
PassedcreateMessageTaskQueue › runs the callbacks later, in the sequence in which they were posted2.8 ms
PassedcreateMessageTaskQueue › drops the callbacks that did not run when it closes, and closes the ports0.58 ms
PassedcreateMessageTaskQueue › closes a channel whose ports have no close()0.74 ms
packages/lag/src/meters.test.ts4 passed
StatusTestDuration
PassedfanOutMeter › records each value into each meter, in the order of the list2.9 ms
PassedfanOutMeter › makes each instrument one time in each meter, with the options of the call0.35 ms
PassedfanOutMeter › gives a meter that records nothing for an empty list0.82 ms
Passedthe Meter type › takes the real Meter of @opentelemetry/api, the no-op meter and a fan-out meter0.83 ms
packages/lag/src/metric-catalog.test.ts16 passed
StatusTestDuration
Passedmetric catalog › has unique metric names1.5 ms
Passedmetric catalog › uses the naming rules: lag_ prefix; histograms end in _histogram, counters do not1.6 ms
Passedmetric catalog › gives every metric a description, a unit and a closed set of attribute values2.4 ms
Passedmetric catalog › has unique event names with attributes0.37 ms
Passedmetric catalog › creates instruments of the declared kind and unit1.1 ms
Passedmetric catalog › gives the bucket boundaries of the catalog to the SDK as advice, as a copy1.3 ms
Passedmetric catalog › refuses to create an instrument of the wrong kind0.94 ms
Passedmetric catalog › permits exactly the values of the types of the monitors as attribute values0.81 ms
Passedmetric catalog › names a monitor of the package for each metric and each event1.3 ms
Passedmetric catalog › gives every event a description1.6 ms
Passedmetric catalog › has unique span names with the lag. prefix, attributes, a description and a monitor of the package0.43 ms
Passedhistogram buckets › gives each histogram ascending, unique bucket boundaries, and no counter1.8 ms
Passedhistogram buckets › selects the boundaries from the unit, and the ordinal boundaries for the pressure state0.56 ms
Passedhistogram buckets › makes the thresholds of the Web Vitals bucket boundaries, thus the buckets give the exact ratings2.2 ms
Passedhistogram buckets › puts the typical values of each type of histogram into different buckets1.4 ms
Passedhistogram buckets › gives exactly the documented boundaries0.5 ms
packages/lag/src/monitor-registry.test.ts6 passed
StatusTestDuration
PassedMonitorRegistry › adds handles and returns them unchanged1.7 ms
PassedMonitorRegistry › looks up handles by name0.34 ms
PassedMonitorRegistry › stopAll() calls stop on every handle in LIFO order0.77 ms
PassedMonitorRegistry › stopAll() isolates errors — one bad stop doesn't prevent others1.7 ms
PassedMonitorRegistry › stopAll() clears the registry0.27 ms
PassedMonitorRegistry › getAll() returns all handles in registration order0.47 ms
packages/lag/src/noop-meter.test.ts1 passed
StatusTestDuration
PassedcreateNoopMeter › gives histograms and counters that accept values and record nothing1.5 ms
packages/lag/src/otel-logger-adapter.test.ts15 passed
StatusTestDuration
PassedcreateOtelLoggerAdapter › emits log records with severityText and body4.4 ms
PassedcreateOtelLoggerAdapter › maps known severity levels to OTel SeverityNumber0.59 ms
PassedcreateOtelLoggerAdapter › defaults to INFO severity for unknown levels0.24 ms
PassedcreateOtelLoggerAdapter › merges object args into attributes0.38 ms
PassedcreateOtelLoggerAdapter › wraps non-object args under 'args' key0.37 ms
PassedcreateOtelLoggerAdapter › gives the string of an argument that is not a primitive and not an object0.14 ms
PassedcreateOtelLoggerAdapter › handles null/undefined args without throwing0.24 ms
PassedcreateTeeLogger › forwards calls to all loggers0.77 ms
PassedcreateTeeLogger › isolates logger errors so one failure doesn't break others1.6 ms
PassedcreateOtelLoggerAdapter attribute encoding › turns an Error into semantic-convention exception attributes3.6 ms
PassedcreateOtelLoggerAdapter attribute encoding › JSON-encodes nested objects and keeps primitive arrays0.28 ms
PassedcreateOtelLoggerAdapter attribute encoding › keeps booleans, numbers and strings, and leaves out the attributes that are undefined or null0.21 ms
PassedcreateOtelLoggerAdapter attribute encoding › JSON-encodes an array with values of different types or with objects0.14 ms
PassedcreateOtelLoggerAdapter attribute encoding › leaves out the stack trace of an Error that has no stack1.4 ms
PassedcreateOtelLoggerAdapter attribute encoding › gives the string of an object that JSON cannot encode0.22 ms
packages/lag/src/page-change.test.ts7 passed
StatusTestDuration
PassedcreatePageChangeClock › gives the time since its start, and then since the last change2.1 ms
PassedcreatePageChangeClock › gives 0 while an animation runs, and counts from the end of the animation0.31 ms
PassedcreatePageChangeClock › stops its source at dispose0.29 ms
PassedcreatePageChangeClock › names 30 s as the time with no change seen, the earliest start of the grid in 4 rows on macOS CI0.09 ms
PasseddomPageChanges › observes all of the tree of the document, and stops0.91 ms
PasseddomPageChanges › listens to scroll and media events in the capture phase, passive, and stops0.4 ms
PasseddomPageChanges › finds a running animation, and no animation without getAnimations0.18 ms
packages/lag/src/random-id.test.ts3 passed
StatusTestDuration
PassedcreateRandomId › gives the bytes of crypto.getRandomValues as 32 hexadecimal digits2.1 ms
PassedcreateRandomId › uses Math.random when the environment has no crypto.getRandomValues1.4 ms
PassedcreateRandomId › gives a different ID at each use5.2 ms
packages/lag/src/reliability.test.ts11 passed
StatusTestDuration
PassedReliabilityTracker › finds a closed interval that overlaps a window2.6 ms
PassedReliabilityTracker › does not count a window that only touches a closed interval0.33 ms
PassedReliabilityTracker › counts an open interval for every window that ends after it starts, including one that ends at its start0.4 ms
PassedReliabilityTracker › closes an interval only once0.16 ms
PassedReliabilityTracker › ignores an interval that ends before it starts0.1 ms
PassedReliabilityTracker › forgets closed intervals after the retention time, but keeps open ones0.3 ms
PassedReliabilityTracker › keeps a closed interval until the retention time after its end has fully passed0.4 ms
PassedReliabilityTracker › notifies subscribers of each new interval until they unsubscribe1.3 ms
PassedReliabilityTracker › counts a closed interval of zero length inside a window1.1 ms
PassedReliabilityTracker › is unreliable now while one interval is open, also when other intervals are closed0.33 ms
PassedReliabilityTracker › forgets an old closed interval before it searches0.2 ms
packages/lag/src/setup-all-monitors.add.test.ts3 passed
StatusTestDuration
PassedAllMonitorHandles.add › makes the monitor with the dependencies of the setup, and registers its handle13 ms
PassedAllMonitorHandles.add › gives the monitor the event sink that adds the ID of the current page view1.2 ms
PassedAllMonitorHandles.add › stops the added monitor first with stop(), because it is the last handle2.3 ms
packages/lag/src/setup-all-monitors.test.ts45 passed
StatusTestDuration
PassedsetupAllMonitors › registers every monitor when all capabilities are present17 ms
PassedsetupAllMonitors › feeds every metric of the catalog that normal activity produces110 ms
PassedsetupAllMonitors › creates only catalog instruments, with the catalog kind, unit and attribute values94 ms
PassedsetupAllMonitors › emits attribution events without query strings70 ms
PassedsetupAllMonitors › gives the ID of the current page view to the worker, for its hang reports1.7 ms
PassedsetupAllMonitors › sends only the event attributes that the catalog lists67 ms
PassedsetupAllMonitors › gives the ID of the current page view to the events of the other monitors63 ms
PassedsetupAllMonitors › flush() records the pending Web Vitals, for the before-flush hook of an exporter67 ms
PassedsetupAllMonitors › records each Web Vital once for each page view, and sends events with the semantic-convention names68 ms
PassedsetupAllMonitors › measures main-thread lag through DriftLag and the worker's delivery delay4.9 ms
PassedsetupAllMonitors › synchronizes the worker clock and records the offset1.1 ms
PassedsetupAllMonitors › discards a lag sample that overlaps a system suspend, after the worker reports it42 ms
PassedsetupAllMonitors › detects a main-thread hang in the worker, and records it when the main thread runs again98 ms
PassedsetupAllMonitors › counts samples that it discards because the page was hidden17 ms
PassedsetupAllMonitors › records clock jumps102 ms
PassedsetupAllMonitors › stop() releases every timer, listener, observer and worker loop45 ms
PassedsetupAllMonitors › pauses timer-driven monitors while the page is hidden74 ms
PassedsetupAllMonitors › keeps the first sample after the page becomes visible again8.3 ms
PassedsetupAllMonitors › gives each monitor of the registry through its typed getter2.5 ms
PassedsetupAllMonitors › gives the ID of the current page view to the hang reports of the worker41 ms
PassedsetupAllMonitors › stop() reports the stall episode that waits, with its kind21 ms
PassedsetupAllMonitors › counts lifecycle transitions1.4 ms
PassedsetupAllMonitors › emits the start of the page view and each lifecycle transition, with the page-view ID and a time of the absolute clock1.4 ms
PassedsetupAllMonitors with shared memory › adds the shared-memory liveness monitor, and DriftLag beats the counter6.2 ms
PassedsetupAllMonitors degradation › runs the core monitors with only the required deps0.7 ms
PassedsetupAllMonitors degradation › skips the worker monitor, with a warning, when performance is missing1.2 ms
PassedsetupAllMonitors degradation › keeps the timer-driven monitors when the page lifecycle cannot start1.7 ms
PassedsetupAllMonitors degradation › keeps going when one monitor fails to construct0.7 ms
PassedsetupAllMonitors degradation › registers no monitor whose dependencies are not complete, and logs no warning0.86 ms
PassedsetupAllMonitors degradation › registers no page-view context without the page-view vitals0.7 ms
PassedsetupAllMonitors degradation › gives the page-view ID to the crash-report context of the browser, also without a worker0.84 ms
PassedsetupAllMonitors degradation › counts a stall without an event sink30 ms
PassedsetupAllMonitors degradation › sends the stall events without a page-view ID when the page-view vitals are missing29 ms
PassedsetupAllMonitors with BroadcastChannel and the Web Locks API › adds the peer hang watch, which sends the ID of the current page view in its heartbeats8.2 ms
PassedsetupAllMonitors with BroadcastChannel and the Web Locks API › gives the worker and the watch one page ID6.1 ms
PassedsetupAllMonitors with BroadcastChannel and the Web Locks API › tells the watch about each hang that the worker monitor counts as ended, not about an abandoned hang of the journal53 ms
PassedsetupAllMonitors with BroadcastChannel and the Web Locks API › gives the journal to the watch of a page without a worker, but the page does not read the journal at its start36 ms
PassedsetupAllMonitors with BroadcastChannel and the Web Locks API › needs the wall clock, BroadcastChannel and the Web Locks API for the watch1.9 ms
PassedsetupAllMonitors with BroadcastChannel and the Web Locks API › counts a hang of the worker monitor without an event sink, with the watch71 ms
PassedsetupAllMonitors with an exporter that gets the pagehide event first › without the event, the final export misses the end of the page1.6 ms
PassedsetupAllMonitors with an exporter that gets the pagehide event first › flush(event) records the end of the page before the export, and the listener of the monitors does not record it again1.2 ms
PassedsetupAllMonitors with a span sink › makes one trace for each page view, with the spans of the monitors in the span of the view92 ms
PassedsetupAllMonitors with a span sink › gives the identity of the span of the view to the hang reports of the worker, for the trace of an abandoned hang45 ms
PassedsetupAllMonitors with a span sink › records no span for a stall without performance, because the stall then has no absolute time22 ms
PassedsetupAllMonitors with a span sink › makes no spans without a span sink9.8 ms
packages/lag/src/shared-liveness.test.ts12 passed
StatusTestDuration
Passedshared-memory liveness › reports nothing while the main thread beats4.1 ms
Passedshared-memory liveness › reports a block when the counter stops changing, when it changes again1.3 ms
Passedshared-memory liveness › ignores quiet periods shorter than the threshold0.5 ms
Passedshared-memory liveness › does not report time in which the watcher itself did not run0.39 ms
Passedshared-memory liveness › stops polling on stop()0.49 ms
Passedshared-memory liveness › beatingSetTimeout beats before each callback0.96 ms
Passedshared-memory liveness › uses a threshold of 50 ms and a poll interval of 5 ms by default1.5 ms
Passedshared-memory liveness › start() while the watcher operates adds no second poll0.2 ms
Passedshared-memory liveness › clears its poll one time when it stops two times, and clears nothing at a stop before the start0.43 ms
Passedshared-memory liveness › reports a quiet period of exactly the threshold0.46 ms
Passedshared-memory liveness › measures a block also when one poll of the watcher is late by less than the threshold0.86 ms
Passedshared-memory liveness › does not count the time in which the watcher itself was late by exactly the threshold0.57 ms
packages/lag/src/spans.test.ts15 passed
StatusTestDuration
PassedcreateNoopSpanSink › records nothing, and its spans have no identity1.7 ms
PassedisSpanIdentity › accepts the trace ID and the span ID of the W3C trace context0.38 ms
PassedisSpanIdentity › accepts IDs that start or end with zeros0.14 ms
PassedisSpanIdentity › rejects missing, malformed and all-zero IDs0.5 ms
PassedisSpanIdentity › rejects IDs that are not strings, also when their text is a valid ID0.14 ms
PassedcreateOtelSpanSink › starts an open span at its start time in the root context, without the attributes that have no value2.8 ms
PassedcreateOtelSpanSink › records an ended span in the context of its parent, sampled and remote, with its links1.5 ms
PassedcreateOtelSpanSink › gives an unsampled span the identity sampled: false, and its children the context of an unsampled parent0.39 ms
PassedcreateOtelSpanSink › gives no links option to a span without links0.92 ms
PassedcreatePageViewSpans › starts the span of a view at its start, and ends it at the final report with the values of the vitals0.84 ms
PassedcreatePageViewSpans › ends the span of a view at the start of the next view, and ignores the end of a view that is not open0.43 ms
PassedcreatePageViewSpans › gives the span of a view without a URL no URL attribute0.15 ms
PassedcreatePageViewSpans › ends the span when the page of its view is hidden, and ignores a hidden page of a view that is not open0.25 ms
PassedcreatePageViewSpans › ignores the final report of a view when no view is open0.73 ms
PassedcreatePageViewSpans › uses Date.now() without a clock2 ms
packages/lag/src/support.test.ts13 passed
StatusTestDuration
PassedRateLimiter › permits `limit` actions in each window2.2 ms
PassedstripUrlParameters › removes the query string and the fragment0.32 ms
PassedOTLP JSON encoding › converts milliseconds to a nanosecond string, rounded to microseconds0.19 ms
PassedOTLP JSON encoding › encodes log records as an ExportLogsServiceRequest0.55 ms
PassedOTLP JSON encoding › gives a record the observed time of the input, or the time of the occurrence0.16 ms
PassedOTLP JSON encoding › encodes only safe integers as intValue, and other numbers as doubleValue0.37 ms
Passedevent sinks › the OTel event sink emits a log record with the event name, without empty attributes1.8 ms
Passedevent sinks › gives each event a different body, so that Loki keeps events of the same millisecond0.34 ms
Passedevent sinks › the OTel event sink gives the time of the occurrence to the record2 ms
Passedevent sinks › the OTel event sink keeps the time of the call for an occurrence that is too old for Loki, and keeps its time as an attribute0.75 ms
Passedevent sinks › the OTel event sink compares the times with Date.now by default0.44 ms
Passedevent sinks › the OTel event sink leaves out the attributes that are null0.26 ms
Passedevent sinks › the no-op event sink accepts events0.74 ms
packages/lag/src/browser/browser-deps.test.ts30 passed
StatusTestDuration
PassedcreateBrowserDeps › binds each browser function to its object3.6 ms
PassedcreateBrowserDeps › leaves out the deps of an API that the browser does not have0.29 ms
PassedcreateBrowserDeps › uses shared memory only in a cross-origin-isolated page, and only if the option permits it0.29 ms
PassedcreateBrowserDeps › finds the legacy and the standard memory APIs0.66 ms
PassedcreateBrowserDeps › observes the cpu pressure source by default0.71 ms
PassedcreateBrowserDeps › passes the options through0.76 ms
PassedcreateBrowserDeps › leaves out the options that the caller did not give, thus they do not replace other values in a spread0.17 ms
PassedcreateBrowserDeps › observes the changes of the document for DriftLag, with MutationObserver, if the option permits it0.43 ms
PassedcreateBrowserDeps › uses IndexedDB for the hang journal only with a worker or the peer hang watch, and only if the option permits it0.68 ms
PassedcreateBrowserDeps › marks the reports of the peer hang watch in localStorage, with the conditions of the hang journal0.51 ms
PassedcreateBrowserDeps › uses BroadcastChannel and the Web Locks API for the peer hang watch, if the option permits it1.9 ms
PassedcreateBrowserDeps › uses the crash-report context of the browser where it exists0.19 ms
PassedcreateBrowserDeps › gives setupAllMonitors the monitors that the browser can support9 ms
PassedcreateBrowserDeps › adapts the timer functions of the browser: each one passes the callback and the delay, and gives the handle of the browser0.28 ms
PassedcreateBrowserDeps › leaves out PerformanceObserver when the browser does not have it0.11 ms
PassedcreateBrowserDeps › reads the wall clock from Date.now()0.39 ms
PassedcreateBrowserDeps › gives requestIdleCallback and cancelIdleCallback, bound to the window, only when the browser has both0.35 ms
PassedcreateBrowserDeps › gives MessageChannel with queueMicrotask, and leaves out an API that is not a function0.22 ms
PassedcreateBrowserDeps › leaves out requestAnimationFrame when the browser has no cancelAnimationFrame0.09 ms
PassedcreateBrowserDeps › finds one memory API without the other, and leaves out a memory object that is null0.37 ms
PassedcreateBrowserDeps › uses a crash-report object only when it has a set() function0.1 ms
PassedcreateBrowserDeps › gives FinalizationRegistry and ReportingObserver when the browser has them0.11 ms
PassedcreateBrowserDeps › the frame viewport › gives the frame viewport of the documentElement to a document in a frame0.38 ms
PassedcreateBrowserDeps › the frame viewport › gives no frame viewport to a top-level page, without IntersectionObserver, or when the read of top throws0.32 ms
PassedcreateBrowserDeps › the frame viewport › gives no frame viewport without a top (undefined, or null in a detached frame) or without a documentElement0.2 ms
PassedcreateBrowserDeps › the frame viewport › gives the frame viewport also without animation frames, because DriftLag pauses with it0.84 ms
PassedcreateBrowserDeps › the frame viewport › pauses the frame-timing monitor of setupAllMonitors while the frame is off-screen0.65 ms
PassedcreateBrowserDeps and the shared lifecycle tracker › gives the shared tracker of the page when the globals are the global object0.41 ms
PassedcreateBrowserDeps and the shared lifecycle tracker › makes the shared tracker with the clock of the page and the logger of the options0.52 ms
PassedcreateBrowserDeps and the shared lifecycle tracker › gives no shared tracker with sharedLifecycle: false, or for other globals (as in a test)0.2 ms
packages/lag/src/browser/page-source.test.ts8 passed
StatusTestDuration
PassedcreatePageSource › gives the navigation entry, with web-vitals navigation types2.5 ms
PassedcreatePageSource › uses 0 when the entry has no activationStart0.27 ms
PassedcreatePageSource › ignores an entry with a responseStart that is 0, missing, or not before now0.22 ms
PassedcreatePageSource › gives no entry when the browser has no getEntriesByType or the call fails0.23 ms
PassedcreatePageSource › gives the start times of the hidden visibility-state entries0.14 ms
PassedcreatePageSource › reads the prerender and discard state of the document0.18 ms
PassedcreatePageSource › gives the URL of the document from location.href, and no URL without a location0.16 ms
PassedcreatePageSource › listens to prerenderingchange in the capture phase, and the return value removes the listener1.2 ms
packages/lag/src/async-context/LongCallbackMonitor.test.ts19 passed
StatusTestDuration
PassedLongCallbackMonitor › adds one hook at the construction, with before and after2.4 ms
PassedLongCallbackMonitor › reports a callback of 50 ms or more with its name, source, source kind, duration and start1.2 ms
PassedLongCallbackMonitor › uses the threshold of the options0.23 ms
PassedLongCallbackMonitor › measures the time of the clock from before to after, not the time before the callback0.24 ms
PassedLongCallbackMonitor › names a step after an await with the name of the async function0.68 ms
PassedLongCallbackMonitor › names a callback without a name (anonymous)0.27 ms
PassedLongCallbackMonitor › gives each nested callback its own start: the callback that it starts synchronously is in both durations0.32 ms
PassedLongCallbackMonitor › reports a long inner callback of a short outer callback, and keeps the stack correct after the nesting0.26 ms
PassedLongCallbackMonitor › measures the callback also when it throws an error0.92 ms
PassedLongCallbackMonitor › ignores an after without a before: the callback started before the hook0.66 ms
PassedLongCallbackMonitor operation › reads the operation only for a long callback, after the callback0.28 ms
PassedLongCallbackMonitor operation › gives no operation when the function gives no value0.15 ms
PassedLongCallbackMonitor operation › gives no operation when the function gives an empty string0.08 ms
PassedLongCallbackMonitor operation › gives no operation when the function gives a value that is not a string0.14 ms
PassedLongCallbackMonitor operation › reports the callback without an operation when the function throws, and logs one warning0.9 ms
PassedLongCallbackMonitor errors and stop › logs an error of the report, and continues with the next callbacks0.5 ms
PassedLongCallbackMonitor errors and stop › removes the hook at stop(), one time0.3 ms
PassedLongCallbackMonitor errors and stop › ignores the after of a callback that started before stop(), and the hook calls after stop()0.17 ms
PassedLongCallbackMonitor errors and stop › forgets the starts of the open callbacks at stop()0.13 ms
packages/lag/src/async-context/long-callbacks.test.ts19 passed
StatusTestDuration
PassedcreateInstrumentedLongCallbacks › records the duration of each long callback with its source kind, from the catalog6.2 ms
PassedcreateInstrumentedLongCallbacks › sends an event with the callback, the source, the source kind and the duration, at the start of the callback0.68 ms
PassedcreateInstrumentedLongCallbacks › sends no operation attribute without an operation1.3 ms
PassedcreateInstrumentedLongCallbacks › uses the threshold of the options for the metric and the events0.7 ms
PassedcreateInstrumentedLongCallbacks › sends no more than 10 events each minute, and records each callback0.71 ms
PassedcreateInstrumentedLongCallbacks › sends the event without a time when it has no clock for absolute times0.23 ms
PassedcreateInstrumentedLongCallbacks › records only the histogram without events and spans0.51 ms
PassedcreateInstrumentedLongCallbacks › removes the hook at stop()0.4 ms
PassedcreateInstrumentedLongCallbacks › gives a handle without a monitor when the hook function fails, and logs a warning1.5 ms
PassedcreateInstrumentedLongCallbacks with spans › records a span from the start to the end of each long callback, in the current page view0.92 ms
PassedcreateInstrumentedLongCallbacks with spans › records the spans without an event sink, with the same limit of 10 each minute0.44 ms
PassedsetupLongCallbacks › adds the monitor to the setup: the events have the page-view ID, the spans are in the page view, and stop() removes the hook15 ms
PassedsetupLongCallbacks › takes the addCallbackHook function of async-browser-context, which does nothing on Node.js0.8 ms
PassedactiveSpanName › gives the name of the active span of the SDK0.35 ms
PassedactiveSpanName › gives undefined for no active span0.12 ms
PassedactiveSpanName › gives undefined for a span without a name (not recording)0.04 ms
PassedactiveSpanName › gives undefined for a name that is not a string0.03 ms
Passed@mark1russell7/lag/async-context › exports the add-on0.07 ms
Passed@mark1russell7/lag/async-context › puts typical durations of long callbacks into different buckets0.08 ms
packages/lag/src/async-context/source-kind.test.ts60 passed
StatusTestDuration
PassedcallbackSourceKind › gives the kind of the source await: await3.6 ms
PassedcallbackSourceKind › gives the kind of the source Promise.then: promise0.15 ms
PassedcallbackSourceKind › gives the kind of the source queueMicrotask: promise0.07 ms
PassedcallbackSourceKind › gives the kind of the source setTimeout: timer0.07 ms
PassedcallbackSourceKind › gives the kind of the source setInterval: timer0.06 ms
PassedcallbackSourceKind › gives the kind of the source setImmediate: timer0.05 ms
PassedcallbackSourceKind › gives the kind of the source requestIdleCallback: timer0.05 ms
PassedcallbackSourceKind › gives the kind of the source Scheduler.postTask: timer0.05 ms
PassedcallbackSourceKind › gives the kind of the source requestAnimationFrame: frame0.07 ms
PassedcallbackSourceKind › gives the kind of the source XRSession.requestAnimationFrame: frame0.05 ms
PassedcallbackSourceKind › gives the kind of the source HTMLVideoElement.requestVideoFrameCallback: frame0.05 ms
PassedcallbackSourceKind › gives the kind of the source Document.startViewTransition: frame0.05 ms
PassedcallbackSourceKind › gives the kind of the source NavigateEvent.intercept: event0.05 ms
PassedcallbackSourceKind › gives the kind of the source LockManager.request: lock0.05 ms
PassedcallbackSourceKind › gives the kind of the source MutationObserver: observer0.05 ms
PassedcallbackSourceKind › gives the kind of the source WebKitMutationObserver: observer0.05 ms
PassedcallbackSourceKind › gives the kind of the source ResizeObserver: observer0.05 ms
PassedcallbackSourceKind › gives the kind of the source IntersectionObserver: observer0.05 ms
PassedcallbackSourceKind › gives the kind of the source PerformanceObserver: observer3.3 ms
PassedcallbackSourceKind › gives the kind of the source ReportingObserver: observer0.08 ms
PassedcallbackSourceKind › gives the kind of the source PressureObserver: observer0.05 ms
PassedcallbackSourceKind › gives the kind of the source FinalizationRegistry: observer0.07 ms
PassedcallbackSourceKind › gives the kind of the pattern of the source addEventListener:click: event0.09 ms
PassedcallbackSourceKind › gives the kind of the pattern of the source addEventListener:message: event0.05 ms
PassedcallbackSourceKind › gives the kind of the pattern of the source addEventListener:change: event0.05 ms
PassedcallbackSourceKind › gives the kind of the pattern of the source addEventListener:my-event:done: event0.05 ms
PassedcallbackSourceKind › gives the kind of the pattern of the source onclick: event0.08 ms
PassedcallbackSourceKind › gives the kind of the pattern of the source onmessage: event0.11 ms
PassedcallbackSourceKind › gives the kind of the pattern of the source onreadystatechange: event0.05 ms
PassedcallbackSourceKind › gives the kind of the pattern of the source ReadableStream.start: stream0.08 ms
PassedcallbackSourceKind › gives the kind of the pattern of the source ReadableStream.pull: stream0.06 ms
PassedcallbackSourceKind › gives the kind of the pattern of the source WritableStream.write: stream0.05 ms
PassedcallbackSourceKind › gives the kind of the pattern of the source TransformStream.transform: stream0.05 ms
PassedcallbackSourceKind › gives the kind of the pattern of the source TransformStream.flush: stream0.04 ms
PassedcallbackSourceKind › gives other for the source "Geolocation.watchPosition"0.08 ms
PassedcallbackSourceKind › gives other for the source "HTMLCanvasElement.toBlob"0.04 ms
PassedcallbackSourceKind › gives other for the source "Array.fromAsync"0.04 ms
PassedcallbackSourceKind › gives other for the source "MediaSession.setActionHandler"0.04 ms
PassedcallbackSourceKind › gives other for the source "RTCPeerConnection.createOffer"0.03 ms
PassedcallbackSourceKind › gives other for the source ""0.03 ms
PassedcallbackSourceKind › gives other for the source "constructor"0.03 ms
PassedcallbackSourceKind › gives other for the source "toString"0.03 ms
PassedcallbackSourceKind › gives other for the source "__proto__"0.03 ms
PassedcallbackSourceKind › gives other for the source "on"0.03 ms
PassedcallbackSourceKind › gives other for the source "onClick"0.04 ms
PassedcallbackSourceKind › gives other for the source "xonclick"0.03 ms
PassedcallbackSourceKind › gives other for the source "on-click"0.03 ms
PassedcallbackSourceKind › gives other for the source "onclick1"0.03 ms
PassedcallbackSourceKind › gives other for the source "onclick.call"0.03 ms
PassedcallbackSourceKind › gives other for the source "addEventListener"0.03 ms
PassedcallbackSourceKind › gives other for the source "xaddEventListener:click"0.03 ms
PassedcallbackSourceKind › gives other for the source "ReadableStream"0.03 ms
PassedcallbackSourceKind › gives other for the source "ReadableStream."0.03 ms
PassedcallbackSourceKind › gives other for the source "XReadableStream.pull"0.03 ms
PassedcallbackSourceKind › gives other for the source "ReadableStream.pull.x"0.03 ms
PassedcallbackSourceKind › gives other for the source "DuplexStream.pull"0.03 ms
PassedcallbackSourceKind › gives other for the source "set Timeout"0.03 ms
PassedcallbackSourceKind › gives other for the source "setTimeout "0.05 ms
PassedcallbackSourceKind › gives only the values of the closed set0.65 ms
PassedCALLBACK_SOURCE_KINDS › is the type CallbackSourceKind, and the attribute values of the histogram of long callbacks0.43 ms
packages/lag/src/node/event-loop.test.ts20 passed
StatusTestDuration
PassedwatchEventLoop › keeps a gap over the limit as a block, with the tick before the gap as its start2.7 ms
PassedwatchEventLoop › keeps no block for a gap at the limit, and gives the longest gap0.53 ms
PassedwatchEventLoop › closes the open gap at the time of span(), and starts the next span there0.32 ms
PassedwatchEventLoop › gives the delay of the histogram in milliseconds, and resets the histogram for each span0.26 ms
PassedwatchEventLoop › gives the busy part of each span from the activity of the loop, and no busy part for a span with no time0.16 ms
PassedwatchEventLoop › gives no busy part when the deps give no activity0.06 ms
PassedwatchEventLoop › gives busy parts from 0 to 1 that add up to the activity of the whole watch (property test)19 ms
PassedwatchEventLoop › keeps the first blocks up to its maximum, and counts each block0.43 ms
PassedwatchEventLoop › calls unref() on each timer0.35 ms
PassedwatchEventLoop › stops the timer and the histogram, and refuses a span after stop()0.99 ms
PassedwatchEventLoop › refuses the option { resolutionMs: +0 }0.18 ms
PassedwatchEventLoop › refuses the option { resolutionMs: 1.5 }0.36 ms
PassedwatchEventLoop › refuses the option { limitMs: -1 }0.1 ms
PassedwatchEventLoop › refuses the option { limitMs: NaN }0.07 ms
PassedwatchEventLoop › refuses the option { limitMs: Infinity }0.06 ms
PassedwatchEventLoop › refuses the option { maxBlocks: -1 }0.06 ms
PassedwatchEventLoop › refuses the option { maxBlocks: 0.5 }0.05 ms
PassedwatchEventLoop › gives blocks over the limit, in sequence, inside the span, and fewer blocks for a higher limit (property test)59 ms
PassedwatchEventLoop on Node.js › finds a busy wait of 120 ms as a block, in the histogram and in the busy part of the loop188 ms
PassedwatchEventLoop on Node.js › does not keep a process alive51 ms
packages/lag/src/instrumented/browser-reports.test.ts4 passed
StatusTestDuration
PassedcreateInstrumentedBrowserReports › counts each report by its type, and sends an event without the query of the source file6.6 ms
PassedcreateInstrumentedBrowserReports › sends an event without a time when it has no clock1.7 ms
PassedcreateInstrumentedBrowserReports › sends no more than 10 events each minute, but counts all reports0.57 ms
PassedcreateInstrumentedBrowserReports › counts the reports without an event sink0.44 ms
packages/lag/src/instrumented/clock-drift.test.ts4 passed
StatusTestDuration
PassedcreateInstrumentedClockDrift › adds a suspend to the measurement conditions, over the interval in which it occurred6.5 ms
PassedcreateInstrumentedClockDrift › adds nothing for a clock step2.8 ms
PassedcreateInstrumentedClockDrift › counts a clock jump without an event sink and without measurement conditions1 ms
PassedcreateInstrumentedClockDrift › records each kind of jump with the attribute values of the catalog, and events with the attributes of the catalog3.9 ms
packages/lag/src/instrumented/clock-reliability.test.ts3 passed
StatusTestDuration
PassedcreateInstrumentedClockReliability › records the resolution of the clock one time, 5 s after the setup6.6 ms
PassedcreateInstrumentedClockReliability › records nothing when the clock did not advance during the measurement7 ms
PassedcreateInstrumentedClockReliability › stop() before the measurement cancels it0.67 ms
packages/lag/src/instrumented/compute-pressure.test.ts3 passed
StatusTestDuration
PassedcreateInstrumentedComputePressure › observes the cpu source each second by default, and records the state ordinal with the source4.4 ms
PassedcreateInstrumentedComputePressure › emits an event for each change of the state of a source, at the time of the record1.2 ms
PassedcreateInstrumentedComputePressure › observes the sources and the sample interval of the dependencies0.4 ms
packages/lag/src/instrumented/drift-lag.test.ts10 passed
StatusTestDuration
PassedcreateInstrumentedDriftLag › records the lag and the baseline of each window, and logs sustained lag through the lag logger48 ms
PassedcreateInstrumentedDriftLag › stop() cancels the windows that wait for evidence1.5 ms
PassedcreateInstrumentedDriftLag › pauses while its frame is off the screen, where WebKit makes each nested timer wait approximately 1 s6.5 ms
PassedcreateInstrumentedDriftLag with MessageChannel › probes through a message queue, and closes the queue when it stops6.4 ms
PassedcreateInstrumentedDriftLag with MessageChannel › marks the value of a long throttled step, with the option14 ms
PassedcreateInstrumentedDriftLag with MessageChannel › gives no value of a long throttled step by default, and it counts the step as unread21 ms
PassedcreateInstrumentedDriftLag with MessageChannel › gives the time since the last change of the page to the throttle counters: unchanged from 30 s, changed before26 ms
PassedcreateInstrumentedDriftLag with MessageChannel › gives no time when the change clock throws, and the chain of steps goes on4 ms
PassedcreateInstrumentedDriftLag with MessageChannel › discards the value when an unreliable interval overlaps the long step, and keeps it when the interval ends before the step8.6 ms
PassedcreateInstrumentedDriftLag with MessageChannel › gives the throttled timers of a visible page to the conditions: a monitor of the rendering pauses3.3 ms
packages/lag/src/instrumented/event-timing.test.ts3 passed
StatusTestDuration
PassedcreateInstrumentedEventTiming › records the duration and the three phases of each interaction event, with the interaction type5.6 ms
PassedcreateInstrumentedEventTiming › records 0 for a phase that the clock rounding makes negative0.38 ms
PassedcreateInstrumentedEventTiming › gives the monitor the interaction count of the page0.27 ms
packages/lag/src/instrumented/frame-timing.test.ts6 passed
StatusTestDuration
PassedcreateInstrumentedFrameTiming › records the time between two frames, and counts the delivered frames and the dropped frames7 ms
PassedcreateInstrumentedFrameTiming › with measurement conditions, waits for late evidence before it records a frame gap of 5 s or more2 ms
PassedcreateInstrumentedFrameTiming › with measurement conditions, stops while the page is hidden and starts again when it is visible1.5 ms
PassedcreateInstrumentedFrameTiming › with measurement conditions, stops while its frame is off-screen, and does not record the time off-screen as a frame gap0.95 ms
PassedcreateInstrumentedFrameTiming › with measurement conditions, stops while the timers of the visible page are throttled, and does not record that time as a frame gap0.51 ms
PassedcreateInstrumentedFrameTiming › stop() cancels the frame gaps that wait for evidence, and the page lifecycle does not start the monitor again0.71 ms
packages/lag/src/instrumented/idle-availability.test.ts4 passed
StatusTestDuration
PassedcreateInstrumentedIdleAvailability › records the idle time, the gap after the first callback, and counts the callbacks by timeout7.1 ms
PassedcreateInstrumentedIdleAvailability › with measurement conditions, waits for late evidence before it records a gap of 5 s or more1.9 ms
PassedcreateInstrumentedIdleAvailability › with measurement conditions, stops while the page is hidden and starts again when it is visible1.2 ms
PassedcreateInstrumentedIdleAvailability › stop() cancels the gaps that wait for evidence, and the page lifecycle does not start the monitor again0.88 ms
packages/lag/src/instrumented/lifecycle.test.ts7 passed
StatusTestDuration
PassedcreateInstrumentedLifecycle › counts each transition, and emits an event at the time of the browser event4.6 ms
PassedcreateInstrumentedLifecycle › emits the events without a time when it has no clock, and stops with the machine0.81 ms
PassedcreateInstrumentedLifecycle › records no period span and logs no error without a span sink0.43 ms
PassedcreateInstrumentedLifecycle with spans › records each hidden and frozen period as a span in the current page view, to the next transition0.67 ms
PassedcreateInstrumentedLifecycle with spans › ends the open period at stop(), and records no period after the stop0.19 ms
PassedcreateInstrumentedLifecycle with spans › uses Date.now() without a clock, also at stop(), and starts a new trace without page-view spans1.6 ms
PassedcreateInstrumentedLifecycle with a tracker that the page shares › subscribes to the tracker, and at stop() it unsubscribes but does not dispose of the tracker0.49 ms
packages/lag/src/instrumented/loaf.test.ts12 passed
StatusTestDuration
PassedcreateInstrumentedLoaf › records each frame, and sends an event only for a frame that blocks for 150 ms or more4.6 ms
PassedcreateInstrumentedLoaf › sends no more than 10 events each minute1.4 ms
PassedcreateInstrumentedLoaf › records the frames without an event sink0.42 ms
PassedcreateInstrumentedLoaf › names the longest script in the event, without the query of its URL1.4 ms
PassedcreateInstrumentedLoaf › removes the query string and the fragment from a URL in the invoker of the type classic-script0.32 ms
PassedcreateInstrumentedLoaf › removes the query string and the fragment from a URL in the invoker of the type module-script0.13 ms
PassedcreateInstrumentedLoaf › removes the query string and the fragment from a URL in the invoker of the type event-listener0.17 ms
PassedcreateInstrumentedLoaf › removes the query string and the fragment from a URL in the invoker of the type event-listener0.11 ms
PassedcreateInstrumentedLoaf › removes the query string and the fragment from a URL in the invoker of the type user-callback0.12 ms
PassedcreateInstrumentedLoaf with spans › records a span from the start to the end of each frame that gets an event, in the current page view0.72 ms
PassedcreateInstrumentedLoaf with spans › records no span without a clock, because the frame has no absolute time0.24 ms
PassedcreateInstrumentedLoaf with spans › records the spans without an event sink, with the same limit of 10 each minute0.3 ms
packages/lag/src/instrumented/macrotask-lag.test.ts2 passed
StatusTestDuration
PassedcreateInstrumentedMacrotaskLag › records the time that a zero-delay timeout waited, one time in 5 s7 ms
PassedcreateInstrumentedMacrotaskLag › stop() cancels the samples that wait for evidence1.8 ms
packages/lag/src/instrumented/memory.test.ts3 passed
StatusTestDuration
PassedcreateInstrumentedMemory › records the used heap with its source, and the usage ratio of the legacy source6.3 ms
PassedcreateInstrumentedMemory › records no usage ratio for the modern source, because it gives no limit1.6 ms
PassedcreateInstrumentedMemory › samples at the interval of the dependencies0.53 ms
packages/lag/src/instrumented/page-view-context.test.ts11 passed
StatusTestDuration
PassedcreateInstrumentedPageViewContext › gives the current page view ID to each receiver, now and at each new view3.1 ms
PassedcreateInstrumentedPageViewContext › adds the attributes of the app, and reads them again at each new view0.44 ms
PassedcreateInstrumentedPageViewContext › logs a failure of the function of the app and continues with the page-view ID1.3 ms
PassedcreateInstrumentedPageViewContext › initializes the crash-report context, sets the view ID, and deletes it on stop4.3 ms
PassedcreateInstrumentedPageViewContext › still sets the context when an other script initialized the crash-report context first1.5 ms
PassedcreateInstrumentedPageViewContext › logs a failure of the crash-report context at debug level and continues0.57 ms
PassedcreateInstrumentedPageViewContext › still sets the context when initialize() of the crash-report context throws an error1.4 ms
PassedcreateInstrumentedPageViewContext › logs nothing without a crash-report context2.5 ms
PassedcreateInstrumentedPageViewContext with page-view spans › gives the identity of the span of the current view to the receivers, at each new view0.32 ms
PassedcreateInstrumentedPageViewContext with page-view spans › gives the identity of the span of a prerendered page at the activation, when the span starts0.48 ms
PassedcreateInstrumentedPageViewContext with page-view spans › gives no span identity for a span that the SDK did not sample0.18 ms
packages/lag/src/instrumented/page-view-vitals.test.ts23 passed
StatusTestDuration
PassedcreateInstrumentedPageViewVitals › records each vital of a view one time, also when a flush comes after the final report (Firefox and WebKit)6.8 ms
PassedcreateInstrumentedPageViewVitals › records each vital of a view one time with the event sequence of the specification0.56 ms
PassedcreateInstrumentedPageViewVitals › records each vital of a view one time when stop() comes after the final report0.88 ms
PassedcreateInstrumentedPageViewVitals › sends events whose deltas add up to the value0.65 ms
PassedcreateInstrumentedPageViewVitals › sends a second event with the change of the value when the value of a view changes, but records the first value only2.2 ms
PassedcreateInstrumentedPageViewVitals › sends the attributes of the semantic conventions with the attribution, and no URL attribute for a view without a URL1.7 ms
PassedcreateInstrumentedPageViewVitals › makes the LCP final at a trusted click on the window of the dependencies0.92 ms
PassedcreateInstrumentedPageViewVitals › records the vitals without an event sink0.57 ms
PassedcreateInstrumentedPageViewVitals › operates without page-view spans: a hidden page and the final report give no error1.4 ms
PassedcreateInstrumentedPageViewVitals › counts the interactions of the page with performance.interactionCount0.56 ms
PassedcreateInstrumentedPageViewVitals › records the FCP of a restore from the animation frames, with the navigation type of the restore0.87 ms
PassedcreateInstrumentedPageViewVitals › sends a lag.page_view.start event for the load and for each later view, at the start of the view1.2 ms
PassedcreateInstrumentedPageViewVitals › sends a lag.page_view.start event without a URL attribute for a view without a URL0.63 ms
PassedcreateInstrumentedPageViewVitals › sends each vital at the time of its occurrence, not at the time of the report0.71 ms
PassedcreateInstrumentedPageViewVitals › observes soft navigations when the dependencies enable them0.35 ms
PassedcreateInstrumentedPageViewVitals › records the vitals of each navigation type with an attribute value that the catalog permits2 ms
PassedcreateInstrumentedPageViewVitals with page-view spans › starts the span of the load, and ends it when the page is hidden for the first time, with the values at that time1.7 ms
PassedcreateInstrumentedPageViewVitals with page-view spans › starts a new trace for a restore from the back/forward cache1.7 ms
PassedcreateInstrumentedPageViewVitals with page-view spans › starts the span of each view without an event sink0.42 ms
PassedcreateInstrumentedPageViewVitals with page-view spans › sends no span identity in the lag.page_view.start events when the span of the view is not sampled1.1 ms
PassedcreateInstrumentedPageViewVitals with page-view spans › starts the view of a prerendered page at the activation: no start event and no span for a prerender that the user does not see0.65 ms
PassedcreateInstrumentedPageViewVitals with page-view spans › makes no span for a prerendered page that unloads or stops before the activation0.29 ms
PassedcreateInstrumentedPageViewVitals with page-view spans › gives the page-view spans no hidden page after stop()0.51 ms
packages/lag/src/instrumented/peer-hang-watch.test.ts11 passed
StatusTestDuration
PassedcreateInstrumentedPeerHangWatch › records a page that closed during a hang as an abandoned hang, with the context of that page11 ms
PassedcreateInstrumentedPeerHangWatch › takes the record of the worker from the hang journal1.9 ms
PassedcreateInstrumentedPeerHangWatch › holds the lock only while the page is visible1.8 ms
PassedcreateInstrumentedPeerHangWatch › records the hang without an event sink, and stops listening to the lifecycle2.1 ms
PassedcreateInstrumentedPeerHangWatch › records the hang of its own page with the source self, when the page closes at the end of a hang0.84 ms
PassedcreateInstrumentedPeerHangWatch › counts its own hang one time, also when its worker leaves the record in the journal9.7 ms
PassedcreateInstrumentedPeerHangWatch › does not record a hang when the page becomes hidden at the end of a hang8.7 ms
PassedcreateInstrumentedPeerHangWatch › does not record a hang when the page goes into the back/forward cache0.72 ms
PassedcreateInstrumentedPeerHangWatch › makes a page ID when it gets none0.88 ms
PassedcreateInstrumentedPeerHangWatch › gives an empty handle when the construction fails0.67 ms
PassedcreateInstrumentedPeerHangWatch with spans › puts the span of the hang of a closed page into the trace of the page view that hung, with a link to the view that reports it1.8 ms
packages/lag/src/instrumented/scheduling-fairness.test.ts4 passed
StatusTestDuration
PassedcreateInstrumentedSchedulingFairness › records the latency of each of the three primitives of a cycle5.2 ms
PassedcreateInstrumentedSchedulingFairness › with measurement conditions, validates a cycle by its longest latency1.8 ms
PassedcreateInstrumentedSchedulingFairness › with measurement conditions, stops while the page is hidden and starts again when it is visible0.84 ms
PassedcreateInstrumentedSchedulingFairness › stop() cancels the cycles that wait for evidence, and the page lifecycle does not start the monitor again0.73 ms
packages/lag/src/instrumented/shared-liveness.test.ts3 passed
StatusTestDuration
PassedcreateInstrumentedSharedLiveness › records the duration of each block that the worker saw6.1 ms
PassedcreateInstrumentedSharedLiveness › with measurement conditions, stops the watcher while the page is hidden, and does not record a block that overlaps the hidden period2.5 ms
PassedcreateInstrumentedSharedLiveness › stop() stops the watcher, cancels the blocks that wait for evidence, and ends the pause1.2 ms
packages/lag/src/instrumented/shared.test.ts11 passed
StatusTestDuration
PassedvalidatedRecorder › records each sample at once with its window, without measurement conditions4.2 ms
PassedvalidatedRecorder › gives each sample to a validator of the measurement conditions, and dispose() cancels the samples that wait1.7 ms
PassedoccurredAt › gives the absolute time of a monotonic time0.34 ms
PassedoccurredAt › gives no time without a clock or without a monotonic time0.35 ms
PassedcreateHandle › gives a handle with the monitor and the stop function of the build function0.99 ms
Passedthe span helpers › pageViewSpanOf reads the span of the page view from the context attributes, if it is valid0.55 ms
Passedthe span helpers › puts the span of an abandoned hang into the trace of the page that hung, with a link to the view that reports it1.1 ms
Passedthe span helpers › gives no link when the page that hung is this view, or when this page has no open view0.46 ms
Passedthe span helpers › puts a hang into the current view when the record of the page that hung has no span, or when there is no record0.59 ms
Passedthe span helpers › recordSpan records a span of a monitor in the current view, or as a new trace without an open view0.4 ms
Passedthe span helpers › does nothing without a span sink1 ms
packages/lag/src/instrumented/throttle-detector.test.ts2 passed
StatusTestDuration
PassedcreateInstrumentedThrottleDetector › counts each calibration round with the attribute throttled8.1 ms
PassedcreateInstrumentedThrottleDetector › with MessageChannel, does not count a busy main thread as throttling, and closes the channel at stop()2.1 ms
packages/lag/src/instrumented/worker-lag.test.ts23 passed
StatusTestDuration
PassedcreateInstrumentedWorkerLag with a hang journal › reports the hangs that earlier pages did not survive, and removes their records12 ms
PassedcreateInstrumentedWorkerLag with a hang journal › puts the span of an abandoned hang into the trace of the page view that hung, with a link to this view4 ms
PassedcreateInstrumentedWorkerLag with a hang journal › sends its page ID to the worker1.2 ms
PassedcreateInstrumentedWorkerLag with a hang journal › sends no page ID without a journal, so that the worker writes no journal either1 ms
PassedcreateInstrumentedWorkerLag with a hang journal › reports nothing after stop()0.66 ms
PassedcreateInstrumentedWorkerLag: two pages of the origin start at the same time (a session restore) › reports an abandoned hang one time with a journal in memory12 ms
PassedcreateInstrumentedWorkerLag: two pages of the origin start at the same time (a session restore) › reports an abandoned hang one time with IndexedDB204 ms
PassedcreateInstrumentedWorkerLag with a real worker handler › counts a hang that ends while the page is hidden (the user changed the tab during the hang)10 ms
PassedcreateInstrumentedWorkerLag with a real worker handler and a main thread that is not blocked › counts no hang in 60 s, also with a heartbeat interval of the hang threshold or more5.4 ms
PassedcreateInstrumentedWorkerLag with the messages of a worker › gives the hang report target to the worker0.85 ms
PassedcreateInstrumentedWorkerLag with the messages of a worker › counts a hang that the worker ended, with the outcome ended, and records its duration1.2 ms
PassedcreateInstrumentedWorkerLag with the messages of a worker › handles a system stall and the end of a hang without measurement conditions and without an event sink0.53 ms
PassedcreateInstrumentedWorkerLag with the messages of a worker › stop() cancels the heartbeat delays that wait for evidence0.53 ms
PassedcreateInstrumentedWorkerLag with the messages of a worker › uses Date.now() to find the abandoned hangs when the dependencies have no wall clock0.64 ms
PassedcreateInstrumentedWorkerLag with the messages of a worker › reports an abandoned hang without an event sink0.58 ms
PassedcreateInstrumentedWorkerLag with the messages of a worker › does not report a hang whose record another page updated after the read, because the hang continues0.67 ms
PassedcreateInstrumentedWorkerLag with the messages of a worker › skips a record that another page took first0.46 ms
PassedcreateInstrumentedWorkerLag with the messages of a worker › takes no record from the journal when the monitor stops before the read of the journal ends0.56 ms
PassedcreateInstrumentedWorkerLag with the messages of a worker › puts a record back for the next page when the monitor stops while it takes the record0.48 ms
PassedcreateInstrumentedWorkerLag with the messages of a worker › removes the record of a hang that the peer hang watch reported, but does not count the hang again1.7 ms
PassedcreateInstrumentedWorkerLag with the messages of a worker › removes the old marks of pages without a record, and keeps the marks that the journal can still need0.4 ms
PassedcreateInstrumentedWorkerLag with the messages of a worker › reports the other abandoned hangs and removes the old marks when it cannot take one record0.8 ms
PassedcreateInstrumentedWorkerLag with the messages of a worker › logs a warning when it cannot read the hang journal0.41 ms
packages/lag/src/vitals/PageViewVitals.test.ts81 passed
StatusTestDuration
PassedPageViewVitals › a load › reports TTFB, FCP, LCP, INP and CLS when the page becomes hidden7.6 ms
PassedPageViewVitals › a load › keeps the last LCP candidate of the browser, also when its start time (the load time) is earlier1.1 ms
PassedPageViewVitals › a load › makes the LCP final at a click that gives no Event Timing entry, as the DOM listener of web-vitals does0.4 ms
PassedPageViewVitals › a load › makes the LCP final at a key press that gives no Event Timing entry0.31 ms
PassedPageViewVitals › a load › ignores a synthetic click (isTrusted false), and removes its listeners at stop()0.56 ms
PassedPageViewVitals › a load › ignores the LCP candidates that paint after the first click or key press, as web-vitals does0.26 ms
PassedPageViewVitals › a load › counts the interactions of the load from the start of the page, also when the monitors start later0.3 ms
PassedPageViewVitals › a load › observes the event entries with the smallest threshold that browsers permit0.28 ms
PassedPageViewVitals › a load › reports the final values when the page terminates0.37 ms
PassedPageViewVitals › a load › ignores the paints after the page was hidden for the first time0.3 ms
PassedPageViewVitals › a load › takes the first hidden time from the visibility-state entries1.5 ms
PassedPageViewVitals › a load › thinks that a page that is hidden at the start was hidden from the start0.3 ms
PassedPageViewVitals › a load › uses the navigation type restore for a page that the browser discarded0.26 ms
PassedPageViewVitals › a load › uses navigate and gives no TTFB without a navigation entry0.36 ms
PassedPageViewVitals › a load › works without a page source0.3 ms
PassedPageViewVitals › a load › gets the buffered FCP and layout shifts, also when observe() delivers them at once (old Safari: false)0.7 ms
PassedPageViewVitals › a load › gets the buffered FCP and layout shifts, also when observe() delivers them at once (old Safari: true)0.36 ms
PassedPageViewVitals › a load › makes no report at a checkpoint when there are no values0.23 ms
PassedPageViewVitals › a prerendered page › starts at the activation and measures the load metrics from the activation0.78 ms
PassedPageViewVitals › a restore from the back/forward cache › ends the view and starts a new one, with TTFB 0 and paint times from two animation frames0.76 ms
PassedPageViewVitals › a restore from the back/forward cache › starts a new view with the event sequence of Chromium, in which the page is visible before pageshow0.6 ms
PassedPageViewVitals › a restore from the back/forward cache › gives an INP of 8 ms when there were interactions after the restore but no entries0.32 ms
PassedPageViewVitals › soft navigations › are off by default, as in web-vitals0.25 ms
PassedPageViewVitals › soft navigations › start a new view with TTFB 0, FCP from the presentation time and LCP from the interaction paints0.74 ms
PassedPageViewVitals › soft navigations › gives the paints that the browser did not deliver yet to the new view, after the largest paint of the entry0.44 ms
PassedPageViewVitals › soft navigations › gives an interaction after the start of the soft navigation to the new view, also when its observer did not deliver it yet0.5 ms
PassedPageViewVitals › soft navigations › keeps an entry that the browser delivered before the soft-navigation entry in the earlier view, also when it starts later, as web-vitals does0.55 ms
PassedPageViewVitals › soft navigations › ignores the paints of the navigation after the next click, as web-vitals makes the LCP final at the next input0.4 ms
PassedPageViewVitals › soft navigations › need the soft-navigation and interaction-contentful-paint entry types0.26 ms
PassedPageViewVitals › checkpoints › process the entries that the browser has not delivered yet0.31 ms
PassedPageViewVitals › checkpoints › split the pending entries at a pending soft navigation, in the sequence of their start times0.38 ms
PassedPageViewVitals › checkpoints › log an error from the report function and continue1.3 ms
PassedPageViewVitals › subscribe() › calls the listener at each new view, until the listener is removed0.45 ms
PassedPageViewVitals › subscribe() › logs an error from a listener and continues0.35 ms
PassedPageViewVitals › flush() › reports the current values now, as a checkpoint that is not final0.31 ms
PassedPageViewVitals › flush() › does nothing before the activation of a prerendered page or after stop()0.43 ms
PassedPageViewVitals › stop() › reports the final values, stops the observers and ignores later changes0.33 ms
PassedPageViewVitals › stop() › removes its lifecycle subscription, thus a stopped instance keeps no reference in the lifecycle0.52 ms
PassedPageViewVitals › stop() › gives no value for a vital whose entry type the browser does not have, as web-vitals0.37 ms
PassedPageViewVitals › stop() › does nothing at a second call: no report, and no listener is removed again0.38 ms
PassedPageViewVitals › stop() › ends the processing when the report function calls it at the final report of a view: the later entries of the delivery count nowhere, no listener gets a new view, and no report comes after it0.55 ms
PassedPageViewVitals › stop() › starts no new view when the report function calls it at the final report before a soft navigation0.31 ms
PassedPageViewVitals › stop() › starts no new view when the report function calls it at the final report before a restore from the back/forward cache0.38 ms
PassedPageViewVitals › stop() › makes no observer for an entry type that the browser does not have, and no warning0.19 ms
PassedPageViewVitals › view IDs › makes an ID of the form lag-<time>-<13 random digits> without an ID function, and a new ID for each view2.6 ms
PassedPageViewVitals › view IDs › keeps 13 random digits also for the smallest and the largest random value0.95 ms
PassedPageViewVitals › rules of the load metrics › uses the describeNode function of the dependencies for the attribution0.32 ms
PassedPageViewVitals › rules of the load metrics › describes a node with the selector of web-vitals when the dependencies have no describeNode function0.44 ms
PassedPageViewVitals › rules of the load metrics › ignores a first-paint entry: only first-contentful-paint gives FCP0.27 ms
PassedPageViewVitals › rules of the load metrics › ignores a paint at the time at which the page became hidden, as web-vitals does0.26 ms
PassedPageViewVitals › rules of the load metrics › keeps the first hidden time when the page becomes hidden again0.31 ms
PassedPageViewVitals › rules of the load metrics › takes the earliest hidden time of the visibility-state entries0.85 ms
PassedPageViewVitals › rules of the load metrics › thinks that a page that is hidden at the start was hidden from the start, also without a page source0.28 ms
PassedPageViewVitals › rules of the load metrics › ignores the hidden times before the activation of a prerendered page0.29 ms
PassedPageViewVitals › rules of the load metrics › counts a hidden time at the activation of a prerendered page, as web-vitals does0.34 ms
PassedPageViewVitals › rules of the load metrics › uses the navigation type prerender for a page that the browser activated before the monitors started0.27 ms
PassedPageViewVitals › rules of the load metrics › makes the LCP final at a key press0.27 ms
PassedPageViewVitals › rules of the load metrics › does not make the LCP final at a pointer event without a click2.7 ms
PassedPageViewVitals › rules of the load metrics › processes the entries that the other observers did not deliver yet before a later entry0.29 ms
PassedPageViewVitals › rules of the load metrics › counts the first input for INP, also when the event entries do not contain it0.2 ms
PassedPageViewVitals › rules of the load metrics › gives FCP and LCP entries only to the load: a restored view gets these values from the animation frames0.23 ms
PassedPageViewVitals › rules of soft navigations › observes no soft navigations when the browser gives no list of supported entry types0.18 ms
PassedPageViewVitals › rules of soft navigations › does not make the LCP final at the interaction that started the soft navigation0.25 ms
PassedPageViewVitals › rules of soft navigations › does not make the LCP of a soft navigation final at an input at the start time of the navigation0.3 ms
PassedPageViewVitals › rules of soft navigations › ignores the paints of other interactions, also when they come last0.35 ms
PassedPageViewVitals › rules of soft navigations › counts an interaction paint without an interaction ID for the current soft navigation0.3 ms
PassedPageViewVitals › rules of soft navigations › ignores an interaction paint before the first soft navigation0.24 ms
PassedPageViewVitals › rules of soft navigations › ignores an interaction paint at or after the time at which the page became hidden0.3 ms
PassedPageViewVitals › rules of soft navigations › starts a view for an entry without a largest paint, and logs no error0.35 ms
PassedPageViewVitals › rules of soft navigations › logs no error for an interaction paint without a paint0.22 ms
PassedPageViewVitals › rules of soft navigations › does not take the paint times of a soft navigation from the animation frames0.25 ms
PassedPageViewVitals › rules of restores and of the end of a view › gives no TTFB to a restored view when the load had no navigation entry0.24 ms
PassedPageViewVitals › rules of restores and of the end of a view › gives the pending entries before a restore to the view that ends, and the other entries to the new view0.35 ms
PassedPageViewVitals › rules of restores and of the end of a view › gives a pending soft navigation from before a restore to the view that ends, and processes it one time0.41 ms
PassedPageViewVitals › rules of restores and of the end of a view › gives a restored view the URL of the document at the restore, without the query string and the fragment0.41 ms
PassedPageViewVitals › rules of restores and of the end of a view › gives a restored view the URL of the load when the page source gives no URL0.25 ms
PassedPageViewVitals › rules of restores and of the end of a view › gives a restored view no URL when the load had no URL0.37 ms
PassedPageViewVitals › rules of restores and of the end of a view › makes no report when a prerendered page terminates before the activation0.33 ms
PassedPageViewVitals › rules of restores and of the end of a view › makes no report after the final report of a view, also at a later lifecycle event0.37 ms
PassedPageViewVitals › rules of restores and of the end of a view › observes each entry type one time, also when the page source reports the activation two times0.24 ms
PassedPageViewVitals › rules of restores and of the end of a view › stop() removes its activation listener from the page source0.23 ms
packages/lag/src/vitals/ViewCollector.test.ts38 passed
StatusTestDuration
PassedViewCollector › INP › is 0 for a first input with the duration 0, as in web-vitals2.8 ms
PassedViewCollector › INP › counts the interactions of a view that starts at 0 (the load) from 0, and of a later view from its start0.39 ms
PassedViewCollector › INP › is the longest interaction when there are fewer than 500.15 ms
PassedViewCollector › INP › uses the longest entry of each interaction0.15 ms
PassedViewCollector › INP › counts the first-input entry as a candidate, because the browser always delivers it0.12 ms
PassedViewCollector › INP › ignores entries without an interaction ID and entries from before the view0.11 ms
PassedViewCollector › INP › gives the target, the type and the three phases of the INP interaction0.68 ms
PassedViewCollector › INP › caps the processing at the next paint, for example after alert()0.22 ms
PassedViewCollector › INP › spans the processing over the entries of the interaction in the same frame0.21 ms
PassedViewCollector › INP › leaves out the interaction that started a soft navigation, also when its entry comes late0.15 ms
PassedViewCollector › INP › counts the processing of other events in the frame, as web-vitals does0.6 ms
PassedViewCollector › INP › starts the processing at the interaction at the earliest0.17 ms
PassedViewCollector › INP › leaves out the entries of the interaction that end in a different frame0.12 ms
PassedViewCollector › INP › keeps the entry details only for the interactions that can be INP1.6 ms
PassedViewCollector › INP › gives 8 ms after a restore when there were interactions but no entries1.6 ms
PassedViewCollector › CLS › reports a load only after FCP, and then includes the shifts from before FCP0.4 ms
PassedViewCollector › CLS › reports a restore and a soft navigation from the start, at 00.14 ms
PassedViewCollector › CLS › ignores shifts after recent input and shifts from before the view0.1 ms
PassedViewCollector › CLS › names the largest shift of the worst session window0.17 ms
PassedViewCollector › CLS › makes the selector of the largest shift at the time of the shift, while the node is in the document0.99 ms
PassedViewCollector › CLS › names the first source with an element node, as web-vitals does, also when a text node comes first0.15 ms
PassedViewCollector › CLS › names the first source when no source has an element node, as web-vitals does0.69 ms
PassedViewCollector › the time of each value › is the time of the occurrence that gave the value, also in a view that starts later0.31 ms
PassedViewCollector › the time of each value › is undefined for an INP estimate and for a CLS without shifts0.34 ms
PassedViewCollector › paint and network metrics › keeps the first FCP, the last LCP, and never a value below 00.19 ms
PassedViewCollector › paint and network metrics › leaves out the vitals that have no value0.08 ms
PassedViewCollector › rules of the entries › counts an event and a layout shift that start at the start of the view0.13 ms
PassedViewCollector › rules of the entries › gives 8 ms after a soft navigation when there were interactions but no entries0.12 ms
PassedViewCollector › rules of the entries › keeps no more than 16 entries of one interaction for the attribution0.16 ms
PassedViewCollector › rules of the entries › uses the longest entry of an interaction for the attribution, and the first one of entries with the same duration, as web-vitals does0.14 ms
PassedViewCollector › rules of the entries › puts the entries whose render times are 8 ms apart into one frame0.27 ms
PassedViewCollector › rules of the entries › looks for the frame of an entry in the 50 most recent frames0.36 ms
PassedViewCollector › rules of the entries › describes the target only of an interaction that can be INP1.8 ms
PassedViewCollector › rules of the entries › keeps the INP of an interaction whose target the selector function cannot describe, without an attribution0.99 ms
PassedViewCollector › rules of the entries › gives no interaction target when the target of the event is null or when no entry has a target0.19 ms
PassedViewCollector › rules of the entries › names the first source with an element node, also after a source without a node0.16 ms
PassedViewCollector › rules of the entries › gives no CLS target when the largest shift has no source0.21 ms
PassedViewCollector › rules of the entries › keeps an LCP that paints at the time at which the LCP became final, and ignores a later paint0.28 ms
packages/lag/src/vitals/selector.test.ts8 passed
StatusTestDuration
PasseddescribeNode › joins the parts from the root down with >1.8 ms
PasseddescribeNode › stops at the first element with an ID0.61 ms
PasseddescribeNode › keeps the selector at 100 characters or less, and gives the deepest part when no part fits0.39 ms
PasseddescribeNode › names text nodes in upper case without the number sign0.23 ms
PasseddescribeNode › removes the number sign only at the start of the name0.15 ms
PasseddescribeNode › gives an empty string for an empty value or an object that throws0.34 ms
PasseddescribeNode › describes an element without a node name by its classes0.13 ms
PasseddescribeNode › keeps a selector of exactly the maximum length, and stops before a longer one0.19 ms
packages/lag/src/vitals/types.test.ts5 passed
StatusTestDuration
PassedrateVital › rates INP as good up to 200 and as poor above 500, as web-vitals does2.1 ms
PassedrateVital › rates CLS as good up to 0.1 and as poor above 0.25, as web-vitals does0.47 ms
PassedrateVital › rates LCP as good up to 2500 and as poor above 4000, as web-vitals does0.14 ms
PassedrateVital › rates FCP as good up to 1800 and as poor above 3000, as web-vitals does0.47 ms
PassedrateVital › rates TTFB as good up to 800 and as poor above 1800, as web-vitals does0.34 ms

@lag/integration-tests: browser tests in chromium

Suite integration-bfcache-chromium. 2 passed. Duration 7.9 s.

packages/lag-integration-tests/src/bfcache/back-forward-cache.test.ts2 passed
StatusTestDuration
Passedthe back/forward cache with the peer hang watch › removes a page with an open channel of the watch from the cache: the check of this test operates3.15 s
Passedthe back/forward cache with the peer hang watch › keeps a page with the library in the cache, and the page watches again after the restore4.75 s

@lag/integration-tests: browser tests in chrome

Suite integration-browser-chrome. 71 passed, 6 skipped. Duration 4 min 9 s.

packages/lag-integration-tests/src/async-context.test.ts3 passed
StatusTestDuration
PassedLong callbacks (async-browser-context) › names the function and the source setTimeout of a long timer callback163 ms
PassedLong callbacks (async-browser-context) › gives the operation of the context, through setupAllMonitors and setupLongCallbacks, and stop() removes the hook464 ms
PassedLong callbacks (async-browser-context) › names the source of an event listener and of a promise reaction121 ms
packages/lag-integration-tests/src/browser-apis.test.ts6 passed
StatusTestDuration
PassedMonitors of engine-specific APIs › LayoutShiftMonitor records each layout shift that the browser reports81 ms
PassedMonitors of engine-specific APIs › ComputePressureMonitor observes the real CPU pressure source2.01 s
PassedMonitors of engine-specific APIs › the page source reads the visibility-state entries0.4 ms
PassedMonitors of engine-specific APIs › the browser has the Page Lifecycle freeze and resume events0.2 ms
PassedMonitors of engine-specific APIs › IdleAvailabilityMonitor sees the idle periods of an idle page1 s
PassedMonitors of engine-specific APIs › MemoryMonitor reads performance.memory51 ms
packages/lag-integration-tests/src/browser-facts.test.ts2 passed
StatusTestDuration
PassedFacts of the engines › gives the entry types of the research1.4 ms
PassedFacts of the engines › starts the listeners at window in the order of experiment E10.3 ms
packages/lag-integration-tests/src/drift-accuracy.test.ts1 passed
StatusTestDuration
PassedDriftLag accuracy › reports approximately 0 on an idle page and the length of a block4.31 s
packages/lag-integration-tests/src/drift-load.test.ts2 passed, 1 skipped
StatusTestDuration
PassedDriftLag during a sustained load › reports equal message tasks of 20 ms as lag, and no lag after the load8.42 s
PassedDriftLag during a sustained load › reports equal timer tasks of 30 ms as lag, and no lag after the load8.43 s
SkippedDriftLag during a sustained load › reads the timer chain in the page state of the load cases
Skipped: This read is for the real Safari.
–
packages/lag-integration-tests/src/grid-page-read.test.ts1 skipped
StatusTestDuration
SkippedThe grid of 1 s of Safari on a CI runner › reads the timer chain with and without an animation
Skipped: This read is for the real Safari.
–
packages/lag-integration-tests/src/hang-journal.test.ts1 passed
StatusTestDuration
Passedhang journal in a browser › keeps the record of a hang that did not end7.01 s
packages/lag-integration-tests/src/lag-monitors.test.ts13 passed
StatusTestDuration
PassedLag Monitor Integration › registers a monitor for each API that the browser has, and no other10 ms
PassedLag Monitor Integration › DriftLag measures a blocked main thread812 ms
PassedLag Monitor Integration › the worker measures main-thread blocking from outside the main thread1.31 s
PassedLag Monitor Integration › FrameTimingMonitor records frames0.4 ms
PassedLag Monitor Integration › LongAnimationFrameMonitor records every long frame the browser reports657 ms
PassedLag Monitor Integration › PageViewVitals measures the load of the page and a real click1.07 s
PassedLag Monitor Integration › MacrotaskLag, SchedulingFairness and idle monitors sample within one 5s cycle1.12 s
PassedLag Monitor Integration › MemoryMonitor samples the heap through performance.memory0.3 ms
PassedLag Monitor Integration › ClockReliabilityChecker reports the clock resolution0.7 ms
PassedLag Monitor Integration › GCSignalDetector counts GC cycles under allocation pressure1.07 s
PassedLag Monitor Integration › emits a synthetic log to verify the Loki bridge0.4 ms
PassedLag Monitor Integration › stop() halts all reporting1.77 s
PassedLag Monitor Integration › flushes metrics to the OTLP endpoint9.67 s
packages/lag-integration-tests/src/lifecycle.test.ts3 passed
StatusTestDuration
PassedLifecycleStateMachine in a browser › notifies its subscribers before a document listener that the page added earlier0.9 ms
PassedLifecycleStateMachine in a browser › uses the time of the event for the transition0.5 ms
PassedLifecycleStateMachine in a browser › removes every listener when it is disposed0.1 ms
packages/lag-integration-tests/src/load-read.test.ts11 passed
StatusTestDuration
PassedloadRead › gives no read for a page on the grid in the Safari where the grid was read0.8 ms
PassedloadRead › stops the no read at its end date, so that the job fails0.2 ms
PassedloadRead › does not excuse a healthy chain with no window0.1 ms
PassedloadRead › does not excuse a monitor that blocks with gaps off the grid0.1 ms
PassedloadRead › does not excuse gaps of the grid mixed with too many others0.1 ms
PassedloadRead › does not excuse another browser or another version of Safari0.2 ms
PassedloadRead › reads a page with a window in the load, on the grid or not0 ms
PassedchainOnGrid › counts a gap of some steps of the grid0 ms
PassedchainOnGrid › asks for at least three gaps on the grid0 ms
PassedchainOnGrid › holds the tolerance at 50 ms on both sides0.1 ms
PassedsafariVersion › reads Safari, and no other browser0 ms
packages/lag-integration-tests/src/offscreen-frame.test.ts2 passed
StatusTestDuration
PassedA frame off the screen › pauses DriftLag while the frame is off the screen, and starts it again after11.22 s
PassedA frame off the screen › without the frame viewport, DriftLag finds the throttled timers of WebKit and records no window of them11.13 s
packages/lag-integration-tests/src/peer-hang-watch.test.ts1 passed
StatusTestDuration
Passedthe peer hang watch in a browser › reports a page that closes during a hang: the other page reports it, or the page itself at its close12.23 s
packages/lag-integration-tests/src/peer-tab.test.ts2 passed
StatusTestDuration
Passedexperiment E7: another page of the origin watches a hang › sees the silence of the main thread, while the lock of the page stays held8.13 s
Passedexperiment E7: another page of the origin watches a hang › gets the lock of a page that closes during a hang2.61 s
packages/lag-integration-tests/src/soft-navigation.test.ts1 passed
StatusTestDuration
PassedPageViewVitals with a real soft navigation › starts a new page view with its own LCP, and keeps the click in the INP of the first view2.87 s
packages/lag-integration-tests/src/stress.test.ts6 passed, 1 skipped
StatusTestDuration
PassedLag Monitor Stress Tests › light load profile completes and reports few events20.96 s
PassedLag Monitor Stress Tests › moderate load profile triggers measurable lag18.86 s
PassedLag Monitor Stress Tests › heavy load profile drives the system hard18.59 s
PassedLag Monitor Stress Tests › bursty load produces both small and huge events (bimodal)19.02 s
PassedLag Monitor Stress Tests › evolutionary load drifts upward over time18.19 s
PassedLag Monitor Stress Tests › kitchen sink profile exercises all generators18.82 s
SkippedLag Monitor Stress Tests › exports the heavy profile to Mimir
Skipped: Needs the Grafana stack: run pnpm test:e2e.
–
packages/lag-integration-tests/src/throttled-step-read.test.ts2 skipped
StatusTestDuration
SkippedA read of long throttled steps › an idle page with the frame off the screen
Skipped: This read is for the real Safari.
–
SkippedA read of long throttled steps › known blocks with the frame off the screen
Skipped: This read is for the real Safari.
–
packages/lag-integration-tests/src/web-vitals-oracle.test.ts3 passed, 1 skipped
StatusTestDuration
PassedPageViewVitals agrees with web-vitals › FCP, LCP and TTFB agree exactly578 ms
PassedPageViewVitals agrees with web-vitals › CLS agrees exactly1.69 s
SkippedPageViewVitals agrees with web-vitals › reports no CLS where the browser cannot measure it, as web-vitals does
Skipped: This browser measures layout shifts.
–
PassedPageViewVitals agrees with web-vitals › INP agrees exactly, and so do its attribution phases1.42 s
packages/lag-integration-tests/src/worker-io.test.ts11 passed
StatusTestDuration
Passedthe input and output of a worker during a main-thread block › an IndexedDB write of a worker completes during the block, except in WebKit2.01 s
Passedthe input and output of a worker during a main-thread block › a fetch with keepalive of a worker completes during the block, except in WebKit2.01 s
Passedthe input and output of a worker during a main-thread block › the writes and fetches of a service worker complete during the block, except in WebKit3.33 s
Passedthe input and output of a worker during a main-thread block › the writes and fetches of a shared worker complete during the block, except in WebKit2.9 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › opfs-sync-access: the operation completes during the block2.28 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › opfs-writable: the operation completes during the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › opfs-lookup: the operation completes during the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › cache-put: the operation completes during the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › xhr: the operation completes during the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › sync-xhr: the operation completes during the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › websocket: the message arrives during the block2.52 s
packages/lag-integration-tests/src/worker.test.ts3 passed
StatusTestDuration
PassedWorker Lag Monitor Integration › receives heartbeats from a real Web Worker1.51 s
PassedWorker Lag Monitor Integration › detects main thread blocking1.6 s
PassedWorker Lag Monitor Integration › stops and restarts the worker's heartbeat loop1.2 s

@lag/integration-tests: browser tests in chromium

Suite integration-browser-chromium. 71 passed, 6 skipped. Duration 4 min 7 s.

packages/lag-integration-tests/src/async-context.test.ts3 passed
StatusTestDuration
PassedLong callbacks (async-browser-context) › names the function and the source setTimeout of a long timer callback163 ms
PassedLong callbacks (async-browser-context) › gives the operation of the context, through setupAllMonitors and setupLongCallbacks, and stop() removes the hook464 ms
PassedLong callbacks (async-browser-context) › names the source of an event listener and of a promise reaction121 ms
packages/lag-integration-tests/src/browser-apis.test.ts6 passed
StatusTestDuration
PassedMonitors of engine-specific APIs › LayoutShiftMonitor records each layout shift that the browser reports72 ms
PassedMonitors of engine-specific APIs › ComputePressureMonitor observes the real CPU pressure source2.01 s
PassedMonitors of engine-specific APIs › the page source reads the visibility-state entries0.5 ms
PassedMonitors of engine-specific APIs › the browser has the Page Lifecycle freeze and resume events0.2 ms
PassedMonitors of engine-specific APIs › IdleAvailabilityMonitor sees the idle periods of an idle page1 s
PassedMonitors of engine-specific APIs › MemoryMonitor reads performance.memory51 ms
packages/lag-integration-tests/src/browser-facts.test.ts2 passed
StatusTestDuration
PassedFacts of the engines › gives the entry types of the research1.4 ms
PassedFacts of the engines › starts the listeners at window in the order of experiment E10.4 ms
packages/lag-integration-tests/src/drift-accuracy.test.ts1 passed
StatusTestDuration
PassedDriftLag accuracy › reports approximately 0 on an idle page and the length of a block4.31 s
packages/lag-integration-tests/src/drift-load.test.ts2 passed, 1 skipped
StatusTestDuration
PassedDriftLag during a sustained load › reports equal message tasks of 20 ms as lag, and no lag after the load8.42 s
PassedDriftLag during a sustained load › reports equal timer tasks of 30 ms as lag, and no lag after the load8.42 s
SkippedDriftLag during a sustained load › reads the timer chain in the page state of the load cases
Skipped: This read is for the real Safari.
–
packages/lag-integration-tests/src/grid-page-read.test.ts1 skipped
StatusTestDuration
SkippedThe grid of 1 s of Safari on a CI runner › reads the timer chain with and without an animation
Skipped: This read is for the real Safari.
–
packages/lag-integration-tests/src/hang-journal.test.ts1 passed
StatusTestDuration
Passedhang journal in a browser › keeps the record of a hang that did not end7.01 s
packages/lag-integration-tests/src/lag-monitors.test.ts13 passed
StatusTestDuration
PassedLag Monitor Integration › registers a monitor for each API that the browser has, and no other2.2 ms
PassedLag Monitor Integration › DriftLag measures a blocked main thread657 ms
PassedLag Monitor Integration › the worker measures main-thread blocking from outside the main thread1.31 s
PassedLag Monitor Integration › FrameTimingMonitor records frames0.5 ms
PassedLag Monitor Integration › LongAnimationFrameMonitor records every long frame the browser reports654 ms
PassedLag Monitor Integration › PageViewVitals measures the load of the page and a real click739 ms
PassedLag Monitor Integration › MacrotaskLag, SchedulingFairness and idle monitors sample within one 5s cycle1.65 s
PassedLag Monitor Integration › MemoryMonitor samples the heap through performance.memory0.3 ms
PassedLag Monitor Integration › ClockReliabilityChecker reports the clock resolution0.6 ms
PassedLag Monitor Integration › GCSignalDetector counts GC cycles under allocation pressure1.07 s
PassedLag Monitor Integration › emits a synthetic log to verify the Loki bridge0.3 ms
PassedLag Monitor Integration › stop() halts all reporting1.75 s
PassedLag Monitor Integration › flushes metrics to the OTLP endpoint10.83 s
packages/lag-integration-tests/src/lifecycle.test.ts3 passed
StatusTestDuration
PassedLifecycleStateMachine in a browser › notifies its subscribers before a document listener that the page added earlier0.8 ms
PassedLifecycleStateMachine in a browser › uses the time of the event for the transition0.4 ms
PassedLifecycleStateMachine in a browser › removes every listener when it is disposed0.3 ms
packages/lag-integration-tests/src/load-read.test.ts11 passed
StatusTestDuration
PassedloadRead › gives no read for a page on the grid in the Safari where the grid was read0.7 ms
PassedloadRead › stops the no read at its end date, so that the job fails0.1 ms
PassedloadRead › does not excuse a healthy chain with no window0 ms
PassedloadRead › does not excuse a monitor that blocks with gaps off the grid0.1 ms
PassedloadRead › does not excuse gaps of the grid mixed with too many others0.1 ms
PassedloadRead › does not excuse another browser or another version of Safari0.1 ms
PassedloadRead › reads a page with a window in the load, on the grid or not0 ms
PassedchainOnGrid › counts a gap of some steps of the grid0.1 ms
PassedchainOnGrid › asks for at least three gaps on the grid0 ms
PassedchainOnGrid › holds the tolerance at 50 ms on both sides0 ms
PassedsafariVersion › reads Safari, and no other browser0.2 ms
packages/lag-integration-tests/src/offscreen-frame.test.ts2 passed
StatusTestDuration
PassedA frame off the screen › pauses DriftLag while the frame is off the screen, and starts it again after11.18 s
PassedA frame off the screen › without the frame viewport, DriftLag finds the throttled timers of WebKit and records no window of them11.09 s
packages/lag-integration-tests/src/peer-hang-watch.test.ts1 passed
StatusTestDuration
Passedthe peer hang watch in a browser › reports a page that closes during a hang: the other page reports it, or the page itself at its close12.18 s
packages/lag-integration-tests/src/peer-tab.test.ts2 passed
StatusTestDuration
Passedexperiment E7: another page of the origin watches a hang › sees the silence of the main thread, while the lock of the page stays held7.94 s
Passedexperiment E7: another page of the origin watches a hang › gets the lock of a page that closes during a hang2.59 s
packages/lag-integration-tests/src/soft-navigation.test.ts1 passed
StatusTestDuration
PassedPageViewVitals with a real soft navigation › starts a new page view with its own LCP, and keeps the click in the INP of the first view2.77 s
packages/lag-integration-tests/src/stress.test.ts6 passed, 1 skipped
StatusTestDuration
PassedLag Monitor Stress Tests › light load profile completes and reports few events20.52 s
PassedLag Monitor Stress Tests › moderate load profile triggers measurable lag17.93 s
PassedLag Monitor Stress Tests › heavy load profile drives the system hard18.4 s
PassedLag Monitor Stress Tests › bursty load produces both small and huge events (bimodal)18.36 s
PassedLag Monitor Stress Tests › evolutionary load drifts upward over time17.97 s
PassedLag Monitor Stress Tests › kitchen sink profile exercises all generators18.73 s
SkippedLag Monitor Stress Tests › exports the heavy profile to Mimir
Skipped: Needs the Grafana stack: run pnpm test:e2e.
–
packages/lag-integration-tests/src/throttled-step-read.test.ts2 skipped
StatusTestDuration
SkippedA read of long throttled steps › an idle page with the frame off the screen
Skipped: This read is for the real Safari.
–
SkippedA read of long throttled steps › known blocks with the frame off the screen
Skipped: This read is for the real Safari.
–
packages/lag-integration-tests/src/web-vitals-oracle.test.ts3 passed, 1 skipped
StatusTestDuration
PassedPageViewVitals agrees with web-vitals › FCP, LCP and TTFB agree exactly512 ms
PassedPageViewVitals agrees with web-vitals › CLS agrees exactly1.7 s
SkippedPageViewVitals agrees with web-vitals › reports no CLS where the browser cannot measure it, as web-vitals does
Skipped: This browser measures layout shifts.
–
PassedPageViewVitals agrees with web-vitals › INP agrees exactly, and so do its attribution phases1.4 s
packages/lag-integration-tests/src/worker-io.test.ts11 passed
StatusTestDuration
Passedthe input and output of a worker during a main-thread block › an IndexedDB write of a worker completes during the block, except in WebKit2.01 s
Passedthe input and output of a worker during a main-thread block › a fetch with keepalive of a worker completes during the block, except in WebKit2.01 s
Passedthe input and output of a worker during a main-thread block › the writes and fetches of a service worker complete during the block, except in WebKit2.92 s
Passedthe input and output of a worker during a main-thread block › the writes and fetches of a shared worker complete during the block, except in WebKit2.9 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › opfs-sync-access: the operation completes during the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › opfs-writable: the operation completes during the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › opfs-lookup: the operation completes during the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › cache-put: the operation completes during the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › xhr: the operation completes during the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › sync-xhr: the operation completes during the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › websocket: the message arrives during the block2.51 s
packages/lag-integration-tests/src/worker.test.ts3 passed
StatusTestDuration
PassedWorker Lag Monitor Integration › receives heartbeats from a real Web Worker1.5 s
PassedWorker Lag Monitor Integration › detects main thread blocking1.6 s
PassedWorker Lag Monitor Integration › stops and restarts the worker's heartbeat loop1.2 s

@lag/integration-tests: browser tests in firefox

Suite integration-browser-firefox. 63 passed, 14 skipped. Duration 4 min.

packages/lag-integration-tests/src/async-context.test.ts3 passed
StatusTestDuration
PassedLong callbacks (async-browser-context) › names the function and the source setTimeout of a long timer callback163 ms
PassedLong callbacks (async-browser-context) › gives the operation of the context, through setupAllMonitors and setupLongCallbacks, and stop() removes the hook464 ms
PassedLong callbacks (async-browser-context) › names the source of an event listener and of a promise reaction120 ms
packages/lag-integration-tests/src/browser-apis.test.ts1 passed, 5 skipped
StatusTestDuration
SkippedMonitors of engine-specific APIs › LayoutShiftMonitor records each layout shift that the browser reports
Skipped: Layout Instability (the layout-shift entry type, CLS) is Chromium-only.
–
SkippedMonitors of engine-specific APIs › ComputePressureMonitor observes the real CPU pressure source
Skipped: The Compute Pressure API (PressureObserver) is Chromium-only.
–
SkippedMonitors of engine-specific APIs › the page source reads the visibility-state entries
Skipped: The visibility-state entry type is Chromium-only.
–
SkippedMonitors of engine-specific APIs › the browser has the Page Lifecycle freeze and resume events
Skipped: The Page Lifecycle freeze and resume events are Chromium-only.
–
PassedMonitors of engine-specific APIs › IdleAvailabilityMonitor sees the idle periods of an idle page1 s
SkippedMonitors of engine-specific APIs › MemoryMonitor reads performance.memory
Skipped: performance.memory is Chromium-only.
–
packages/lag-integration-tests/src/browser-facts.test.ts2 passed
StatusTestDuration
PassedFacts of the engines › gives the entry types of the research1 ms
PassedFacts of the engines › starts the listeners at window in the order of experiment E11 ms
packages/lag-integration-tests/src/drift-accuracy.test.ts1 passed
StatusTestDuration
PassedDriftLag accuracy › reports approximately 0 on an idle page and the length of a block4.3 s
packages/lag-integration-tests/src/drift-load.test.ts2 passed, 1 skipped
StatusTestDuration
PassedDriftLag during a sustained load › reports equal message tasks of 20 ms as lag, and no lag after the load8.41 s
PassedDriftLag during a sustained load › reports equal timer tasks of 30 ms as lag, and no lag after the load8.41 s
SkippedDriftLag during a sustained load › reads the timer chain in the page state of the load cases
Skipped: This read is for the real Safari.
–
packages/lag-integration-tests/src/grid-page-read.test.ts1 skipped
StatusTestDuration
SkippedThe grid of 1 s of Safari on a CI runner › reads the timer chain with and without an animation
Skipped: This read is for the real Safari.
–
packages/lag-integration-tests/src/hang-journal.test.ts1 passed
StatusTestDuration
Passedhang journal in a browser › keeps the record of a hang that did not end7.01 s
packages/lag-integration-tests/src/lag-monitors.test.ts11 passed, 2 skipped
StatusTestDuration
PassedLag Monitor Integration › registers a monitor for each API that the browser has, and no other2 ms
PassedLag Monitor Integration › DriftLag measures a blocked main thread655 ms
PassedLag Monitor Integration › the worker measures main-thread blocking from outside the main thread1.3 s
PassedLag Monitor Integration › FrameTimingMonitor records frames0 ms
SkippedLag Monitor Integration › LongAnimationFrameMonitor records every long frame the browser reports
Skipped: Long Animation Frames (the long-animation-frame entry type) are Chromium-only.
–
PassedLag Monitor Integration › PageViewVitals measures the load of the page and a real click749 ms
PassedLag Monitor Integration › MacrotaskLag, SchedulingFairness and idle monitors sample within one 5s cycle2.31 s
SkippedLag Monitor Integration › MemoryMonitor samples the heap through performance.memory
Skipped: performance.memory is Chromium-only.
–
PassedLag Monitor Integration › ClockReliabilityChecker reports the clock resolution1 ms
PassedLag Monitor Integration › GCSignalDetector counts GC cycles under allocation pressure1.03 s
PassedLag Monitor Integration › emits a synthetic log to verify the Loki bridge0 ms
PassedLag Monitor Integration › stop() halts all reporting1.75 s
PassedLag Monitor Integration › flushes metrics to the OTLP endpoint10.37 s
packages/lag-integration-tests/src/lifecycle.test.ts3 passed
StatusTestDuration
PassedLifecycleStateMachine in a browser › notifies its subscribers before a document listener that the page added earlier0 ms
PassedLifecycleStateMachine in a browser › uses the time of the event for the transition1 ms
PassedLifecycleStateMachine in a browser › removes every listener when it is disposed0 ms
packages/lag-integration-tests/src/load-read.test.ts11 passed
StatusTestDuration
PassedloadRead › gives no read for a page on the grid in the Safari where the grid was read1 ms
PassedloadRead › stops the no read at its end date, so that the job fails0 ms
PassedloadRead › does not excuse a healthy chain with no window0 ms
PassedloadRead › does not excuse a monitor that blocks with gaps off the grid0 ms
PassedloadRead › does not excuse gaps of the grid mixed with too many others0 ms
PassedloadRead › does not excuse another browser or another version of Safari0 ms
PassedloadRead › reads a page with a window in the load, on the grid or not0 ms
PassedchainOnGrid › counts a gap of some steps of the grid1 ms
PassedchainOnGrid › asks for at least three gaps on the grid1 ms
PassedchainOnGrid › holds the tolerance at 50 ms on both sides0 ms
PassedsafariVersion › reads Safari, and no other browser0 ms
packages/lag-integration-tests/src/offscreen-frame.test.ts2 passed
StatusTestDuration
PassedA frame off the screen › pauses DriftLag while the frame is off the screen, and starts it again after11.17 s
PassedA frame off the screen › without the frame viewport, DriftLag finds the throttled timers of WebKit and records no window of them11.07 s
packages/lag-integration-tests/src/peer-hang-watch.test.ts1 passed
StatusTestDuration
Passedthe peer hang watch in a browser › reports a page that closes during a hang: the other page reports it, or the page itself at its close10.83 s
packages/lag-integration-tests/src/peer-tab.test.ts2 passed
StatusTestDuration
Passedexperiment E7: another page of the origin watches a hang › sees the silence of the main thread, while the lock of the page stays held8.04 s
Passedexperiment E7: another page of the origin watches a hang › gets the lock of a page that closes during a hang2.22 s
packages/lag-integration-tests/src/soft-navigation.test.ts1 skipped
StatusTestDuration
SkippedPageViewVitals with a real soft navigation › starts a new page view with its own LCP, and keeps the click in the INP of the first view
Skipped: This browser has no soft-navigation entries.
–
packages/lag-integration-tests/src/stress.test.ts6 passed, 1 skipped
StatusTestDuration
PassedLag Monitor Stress Tests › light load profile completes and reports few events20.69 s
PassedLag Monitor Stress Tests › moderate load profile triggers measurable lag18.24 s
PassedLag Monitor Stress Tests › heavy load profile drives the system hard18.15 s
PassedLag Monitor Stress Tests › bursty load produces both small and huge events (bimodal)18.24 s
PassedLag Monitor Stress Tests › evolutionary load drifts upward over time18.27 s
PassedLag Monitor Stress Tests › kitchen sink profile exercises all generators19.34 s
SkippedLag Monitor Stress Tests › exports the heavy profile to Mimir
Skipped: Needs the Grafana stack: run pnpm test:e2e.
–
packages/lag-integration-tests/src/throttled-step-read.test.ts2 skipped
StatusTestDuration
SkippedA read of long throttled steps › an idle page with the frame off the screen
Skipped: This read is for the real Safari.
–
SkippedA read of long throttled steps › known blocks with the frame off the screen
Skipped: This read is for the real Safari.
–
packages/lag-integration-tests/src/web-vitals-oracle.test.ts3 passed, 1 skipped
StatusTestDuration
PassedPageViewVitals agrees with web-vitals › FCP, LCP and TTFB agree exactly509 ms
SkippedPageViewVitals agrees with web-vitals › CLS agrees exactly
Skipped: Layout Instability (the layout-shift entry type, CLS) is Chromium-only.
–
PassedPageViewVitals agrees with web-vitals › reports no CLS where the browser cannot measure it, as web-vitals does0 ms
PassedPageViewVitals agrees with web-vitals › INP agrees exactly, and so do its attribution phases1.43 s
packages/lag-integration-tests/src/worker-io.test.ts11 passed
StatusTestDuration
Passedthe input and output of a worker during a main-thread block › an IndexedDB write of a worker completes during the block, except in WebKit2.01 s
Passedthe input and output of a worker during a main-thread block › a fetch with keepalive of a worker completes during the block, except in WebKit2.01 s
Passedthe input and output of a worker during a main-thread block › the writes and fetches of a service worker complete during the block, except in WebKit2.92 s
Passedthe input and output of a worker during a main-thread block › the writes and fetches of a shared worker complete during the block, except in WebKit2.9 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › opfs-sync-access: the operation completes during the block2.22 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › opfs-writable: the operation completes during the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › opfs-lookup: the operation completes during the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › cache-put: the operation completes during the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › xhr: the operation waits for the end of the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › sync-xhr: the operation waits for the end of the block2.22 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › websocket: the message arrives after the block2.52 s
packages/lag-integration-tests/src/worker.test.ts3 passed
StatusTestDuration
PassedWorker Lag Monitor Integration › receives heartbeats from a real Web Worker1.51 s
PassedWorker Lag Monitor Integration › detects main thread blocking1.61 s
PassedWorker Lag Monitor Integration › stops and restarts the worker's heartbeat loop1.2 s

@lag/integration-tests: browser tests in safari

Suite integration-browser-safari. 60 passed, 17 skipped. Duration 8 min 21 s.

packages/lag-integration-tests/src/async-context.test.ts3 passed
StatusTestDuration
PassedLong callbacks (async-browser-context) › names the function and the source setTimeout of a long timer callback170 ms
PassedLong callbacks (async-browser-context) › gives the operation of the context, through setupAllMonitors and setupLongCallbacks, and stop() removes the hook488 ms
PassedLong callbacks (async-browser-context) › names the source of an event listener and of a promise reaction122 ms
packages/lag-integration-tests/src/browser-apis.test.ts6 skipped
StatusTestDuration
SkippedMonitors of engine-specific APIs › LayoutShiftMonitor records each layout shift that the browser reports
Skipped: Layout Instability (the layout-shift entry type, CLS) is Chromium-only.
–
SkippedMonitors of engine-specific APIs › ComputePressureMonitor observes the real CPU pressure source
Skipped: The Compute Pressure API (PressureObserver) is Chromium-only.
–
SkippedMonitors of engine-specific APIs › the page source reads the visibility-state entries
Skipped: The visibility-state entry type is Chromium-only.
–
SkippedMonitors of engine-specific APIs › the browser has the Page Lifecycle freeze and resume events
Skipped: The Page Lifecycle freeze and resume events are Chromium-only.
–
SkippedMonitors of engine-specific APIs › IdleAvailabilityMonitor sees the idle periods of an idle page
Skipped: requestIdleCallback is not in WebKit.
–
SkippedMonitors of engine-specific APIs › MemoryMonitor reads performance.memory
Skipped: performance.memory is Chromium-only.
–
packages/lag-integration-tests/src/browser-facts.test.ts2 passed
StatusTestDuration
PassedFacts of the engines › gives the entry types of the research1 ms
PassedFacts of the engines › starts the listeners at window in the order of experiment E11 ms
packages/lag-integration-tests/src/drift-accuracy.test.ts1 passed
StatusTestDuration
PassedDriftLag accuracy › reports approximately 0 on an idle page and the length of a block4.38 s
packages/lag-integration-tests/src/drift-load.test.ts1 passed, 2 skipped
StatusTestDuration
SkippedDriftLag during a sustained load › reports equal message tasks of 20 ms as lag, and no lag after the load
Skipped: No read: the browser held the timers of the page on a grid of 1 s, and no window ended in the load. Gaps of the chain: 806 1014 1002 984 1001 1000 1000 637 (visibilityState "visible", hasFocus true, window 414x844).
–
SkippedDriftLag during a sustained load › reports equal timer tasks of 30 ms as lag, and no lag after the load
Skipped: No read: the browser held the timers of the page on a grid of 1 s, and no window ended in the load. Gaps of the chain: 353 1000 1001 1000 1000 1000 999 1003 81 (visibilityState "visible", hasFocus true, window 414x844).
–
PassedDriftLag during a sustained load › reads the timer chain in the page state of the load cases25.14 s
packages/lag-integration-tests/src/grid-page-read.test.ts1 passed
StatusTestDuration
PassedThe grid of 1 s of Safari on a CI runner › reads the timer chain with and without an animation20.03 s
packages/lag-integration-tests/src/hang-journal.test.ts1 skipped
StatusTestDuration
Skippedhang journal in a browser › keeps the record of a hang that did not end
Skipped: This browser completes the IndexedDB requests of a worker on the main thread (WebKit), thus the worker cannot write the record during the hang.
–
packages/lag-integration-tests/src/lag-monitors.test.ts11 passed, 2 skipped
StatusTestDuration
PassedLag Monitor Integration › registers a monitor for each API that the browser has, and no other21 ms
PassedLag Monitor Integration › DriftLag measures a blocked main thread736 ms
PassedLag Monitor Integration › the worker measures main-thread blocking from outside the main thread1.31 s
PassedLag Monitor Integration › FrameTimingMonitor records frames2 ms
SkippedLag Monitor Integration › LongAnimationFrameMonitor records every long frame the browser reports
Skipped: Long Animation Frames (the long-animation-frame entry type) are Chromium-only.
–
PassedLag Monitor Integration › PageViewVitals measures the load of the page and a real click783 ms
PassedLag Monitor Integration › MacrotaskLag, SchedulingFairness and idle monitors sample within one 5s cycle2.13 s
SkippedLag Monitor Integration › MemoryMonitor samples the heap through performance.memory
Skipped: performance.memory is Chromium-only.
–
PassedLag Monitor Integration › ClockReliabilityChecker reports the clock resolution7 ms
PassedLag Monitor Integration › GCSignalDetector counts GC cycles under allocation pressure1.08 s
PassedLag Monitor Integration › emits a synthetic log to verify the Loki bridge1 ms
PassedLag Monitor Integration › stop() halts all reporting1.76 s
PassedLag Monitor Integration › flushes metrics to the OTLP endpoint9.84 s
packages/lag-integration-tests/src/lifecycle.test.ts3 passed
StatusTestDuration
PassedLifecycleStateMachine in a browser › notifies its subscribers before a document listener that the page added earlier1 ms
PassedLifecycleStateMachine in a browser › uses the time of the event for the transition0 ms
PassedLifecycleStateMachine in a browser › removes every listener when it is disposed0 ms
packages/lag-integration-tests/src/load-read.test.ts11 passed
StatusTestDuration
PassedloadRead › gives no read for a page on the grid in the Safari where the grid was read1 ms
PassedloadRead › stops the no read at its end date, so that the job fails0 ms
PassedloadRead › does not excuse a healthy chain with no window0 ms
PassedloadRead › does not excuse a monitor that blocks with gaps off the grid0 ms
PassedloadRead › does not excuse gaps of the grid mixed with too many others0 ms
PassedloadRead › does not excuse another browser or another version of Safari0 ms
PassedloadRead › reads a page with a window in the load, on the grid or not0 ms
PassedchainOnGrid › counts a gap of some steps of the grid0 ms
PassedchainOnGrid › asks for at least three gaps on the grid1 ms
PassedchainOnGrid › holds the tolerance at 50 ms on both sides0 ms
PassedsafariVersion › reads Safari, and no other browser0 ms
packages/lag-integration-tests/src/offscreen-frame.test.ts2 passed
StatusTestDuration
PassedA frame off the screen › pauses DriftLag while the frame is off the screen, and starts it again after11.31 s
PassedA frame off the screen › without the frame viewport, DriftLag finds the throttled timers of WebKit and records no window of them12.21 s
packages/lag-integration-tests/src/peer-hang-watch.test.ts1 passed
StatusTestDuration
Passedthe peer hang watch in a browser › reports a page that closes during a hang: the other page reports it, or the page itself at its close16.88 s
packages/lag-integration-tests/src/peer-tab.test.ts2 passed
StatusTestDuration
Passedexperiment E7: another page of the origin watches a hang › sees the silence of the main thread, while the lock of the page stays held10.23 s
Passedexperiment E7: another page of the origin watches a hang › gets the lock of a page that closes during a hang21.24 s
packages/lag-integration-tests/src/soft-navigation.test.ts1 skipped
StatusTestDuration
SkippedPageViewVitals with a real soft navigation › starts a new page view with its own LCP, and keeps the click in the INP of the first view
Skipped: This browser has no soft-navigation entries.
–
packages/lag-integration-tests/src/stress.test.ts3 passed, 4 skipped
StatusTestDuration
PassedLag Monitor Stress Tests › light load profile completes and reports few events20.13 s
PassedLag Monitor Stress Tests › moderate load profile triggers measurable lag18.67 s
PassedLag Monitor Stress Tests › heavy load profile drives the system hard17.87 s
SkippedLag Monitor Stress Tests › bursty load produces both small and huge events (bimodal)
Skipped: The browser slowed the page: the 5 ms timer chain made 2.0 callbacks each second, with a longest gap of 1005 ms (visibilityState "visible", hasFocus true, window 414x844).
–
SkippedLag Monitor Stress Tests › evolutionary load drifts upward over time
Skipped: The browser slowed the page: the 5 ms timer chain made 2.0 callbacks each second, with a longest gap of 1005 ms (visibilityState "visible", hasFocus true, window 414x844).
–
SkippedLag Monitor Stress Tests › kitchen sink profile exercises all generators
Skipped: The browser slowed the page: the profile took 22103 ms for 10000 ms; the 5 ms timer chain made 1.5 callbacks each second, with a longest gap of 1003 ms (visibilityState "visible", hasFocus true, window 414x844).
–
SkippedLag Monitor Stress Tests › exports the heavy profile to Mimir
Skipped: Needs the Grafana stack: run pnpm test:e2e.
–
packages/lag-integration-tests/src/throttled-step-read.test.ts2 passed
StatusTestDuration
PassedA read of long throttled steps › an idle page with the frame off the screen1 min 9 s
PassedA read of long throttled steps › known blocks with the frame off the screen1 min 50 s
packages/lag-integration-tests/src/web-vitals-oracle.test.ts3 passed, 1 skipped
StatusTestDuration
PassedPageViewVitals agrees with web-vitals › FCP, LCP and TTFB agree exactly541 ms
SkippedPageViewVitals agrees with web-vitals › CLS agrees exactly
Skipped: Layout Instability (the layout-shift entry type, CLS) is Chromium-only.
–
PassedPageViewVitals agrees with web-vitals › reports no CLS where the browser cannot measure it, as web-vitals does0 ms
PassedPageViewVitals agrees with web-vitals › INP agrees exactly, and so do its attribution phases1.34 s
packages/lag-integration-tests/src/worker-io.test.ts11 passed
StatusTestDuration
Passedthe input and output of a worker during a main-thread block › an IndexedDB write of a worker completes during the block, except in WebKit2.11 s
Passedthe input and output of a worker during a main-thread block › a fetch with keepalive of a worker completes during the block, except in WebKit2.04 s
Passedthe input and output of a worker during a main-thread block › the writes and fetches of a service worker complete during the block, except in WebKit3.01 s
Passedthe input and output of a worker during a main-thread block › the writes and fetches of a shared worker complete during the block, except in WebKit2.92 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › opfs-sync-access: the operation waits for the end of the block2.27 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › opfs-writable: the operation waits for the end of the block2.24 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › opfs-lookup: the operation waits for the end of the block2.25 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › cache-put: the operation waits for the end of the block2.25 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › xhr: the operation waits for the end of the block2.24 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › sync-xhr: the operation waits for the end of the block2.25 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › websocket: the message arrives after the block2.54 s
packages/lag-integration-tests/src/worker.test.ts3 passed
StatusTestDuration
PassedWorker Lag Monitor Integration › receives heartbeats from a real Web Worker1.57 s
PassedWorker Lag Monitor Integration › detects main thread blocking1.62 s
PassedWorker Lag Monitor Integration › stops and restarts the worker's heartbeat loop1.23 s

@lag/integration-tests: browser tests in webkit

Suite integration-browser-webkit. 61 passed, 16 skipped. Duration 3 min 58 s.

packages/lag-integration-tests/src/async-context.test.ts3 passed
StatusTestDuration
PassedLong callbacks (async-browser-context) › names the function and the source setTimeout of a long timer callback164 ms
PassedLong callbacks (async-browser-context) › gives the operation of the context, through setupAllMonitors and setupLongCallbacks, and stop() removes the hook465 ms
PassedLong callbacks (async-browser-context) › names the source of an event listener and of a promise reaction121 ms
packages/lag-integration-tests/src/browser-apis.test.ts6 skipped
StatusTestDuration
SkippedMonitors of engine-specific APIs › LayoutShiftMonitor records each layout shift that the browser reports
Skipped: Layout Instability (the layout-shift entry type, CLS) is Chromium-only.
–
SkippedMonitors of engine-specific APIs › ComputePressureMonitor observes the real CPU pressure source
Skipped: The Compute Pressure API (PressureObserver) is Chromium-only.
–
SkippedMonitors of engine-specific APIs › the page source reads the visibility-state entries
Skipped: The visibility-state entry type is Chromium-only.
–
SkippedMonitors of engine-specific APIs › the browser has the Page Lifecycle freeze and resume events
Skipped: The Page Lifecycle freeze and resume events are Chromium-only.
–
SkippedMonitors of engine-specific APIs › IdleAvailabilityMonitor sees the idle periods of an idle page
Skipped: requestIdleCallback is not in WebKit.
–
SkippedMonitors of engine-specific APIs › MemoryMonitor reads performance.memory
Skipped: performance.memory is Chromium-only.
–
packages/lag-integration-tests/src/browser-facts.test.ts2 passed
StatusTestDuration
PassedFacts of the engines › gives the entry types of the research1 ms
PassedFacts of the engines › starts the listeners at window in the order of experiment E11 ms
packages/lag-integration-tests/src/drift-accuracy.test.ts1 passed
StatusTestDuration
PassedDriftLag accuracy › reports approximately 0 on an idle page and the length of a block4.31 s
packages/lag-integration-tests/src/drift-load.test.ts2 passed, 1 skipped
StatusTestDuration
PassedDriftLag during a sustained load › reports equal message tasks of 20 ms as lag, and no lag after the load8.41 s
PassedDriftLag during a sustained load › reports equal timer tasks of 30 ms as lag, and no lag after the load8.41 s
SkippedDriftLag during a sustained load › reads the timer chain in the page state of the load cases
Skipped: This read is for the real Safari.
–
packages/lag-integration-tests/src/grid-page-read.test.ts1 skipped
StatusTestDuration
SkippedThe grid of 1 s of Safari on a CI runner › reads the timer chain with and without an animation
Skipped: This read is for the real Safari.
–
packages/lag-integration-tests/src/hang-journal.test.ts1 skipped
StatusTestDuration
Skippedhang journal in a browser › keeps the record of a hang that did not end
Skipped: This browser completes the IndexedDB requests of a worker on the main thread (WebKit), thus the worker cannot write the record during the hang.
–
packages/lag-integration-tests/src/lag-monitors.test.ts11 passed, 2 skipped
StatusTestDuration
PassedLag Monitor Integration › registers a monitor for each API that the browser has, and no other79 ms
PassedLag Monitor Integration › DriftLag measures a blocked main thread705 ms
PassedLag Monitor Integration › the worker measures main-thread blocking from outside the main thread1.3 s
PassedLag Monitor Integration › FrameTimingMonitor records frames1 ms
SkippedLag Monitor Integration › LongAnimationFrameMonitor records every long frame the browser reports
Skipped: Long Animation Frames (the long-animation-frame entry type) are Chromium-only.
–
PassedLag Monitor Integration › PageViewVitals measures the load of the page and a real click770 ms
PassedLag Monitor Integration › MacrotaskLag, SchedulingFairness and idle monitors sample within one 5s cycle2.17 s
SkippedLag Monitor Integration › MemoryMonitor samples the heap through performance.memory
Skipped: performance.memory is Chromium-only.
–
PassedLag Monitor Integration › ClockReliabilityChecker reports the clock resolution1 ms
PassedLag Monitor Integration › GCSignalDetector counts GC cycles under allocation pressure1.07 s
PassedLag Monitor Integration › emits a synthetic log to verify the Loki bridge0 ms
PassedLag Monitor Integration › stop() halts all reporting1.75 s
PassedLag Monitor Integration › flushes metrics to the OTLP endpoint10.36 s
packages/lag-integration-tests/src/lifecycle.test.ts3 passed
StatusTestDuration
PassedLifecycleStateMachine in a browser › notifies its subscribers before a document listener that the page added earlier1 ms
PassedLifecycleStateMachine in a browser › uses the time of the event for the transition0 ms
PassedLifecycleStateMachine in a browser › removes every listener when it is disposed1 ms
packages/lag-integration-tests/src/load-read.test.ts11 passed
StatusTestDuration
PassedloadRead › gives no read for a page on the grid in the Safari where the grid was read0 ms
PassedloadRead › stops the no read at its end date, so that the job fails1 ms
PassedloadRead › does not excuse a healthy chain with no window0 ms
PassedloadRead › does not excuse a monitor that blocks with gaps off the grid0 ms
PassedloadRead › does not excuse gaps of the grid mixed with too many others0 ms
PassedloadRead › does not excuse another browser or another version of Safari0 ms
PassedloadRead › reads a page with a window in the load, on the grid or not0 ms
PassedchainOnGrid › counts a gap of some steps of the grid0 ms
PassedchainOnGrid › asks for at least three gaps on the grid1 ms
PassedchainOnGrid › holds the tolerance at 50 ms on both sides0 ms
PassedsafariVersion › reads Safari, and no other browser0 ms
packages/lag-integration-tests/src/offscreen-frame.test.ts2 passed
StatusTestDuration
PassedA frame off the screen › pauses DriftLag while the frame is off the screen, and starts it again after11.34 s
PassedA frame off the screen › without the frame viewport, DriftLag finds the throttled timers of WebKit and records no window of them12.21 s
packages/lag-integration-tests/src/peer-hang-watch.test.ts1 passed
StatusTestDuration
Passedthe peer hang watch in a browser › reports a page that closes during a hang: the other page reports it, or the page itself at its close15.71 s
packages/lag-integration-tests/src/peer-tab.test.ts2 passed
StatusTestDuration
Passedexperiment E7: another page of the origin watches a hang › sees the silence of the main thread, while the lock of the page stays held7.96 s
Passedexperiment E7: another page of the origin watches a hang › gets the lock of a page that closes during a hang6.13 s
packages/lag-integration-tests/src/soft-navigation.test.ts1 skipped
StatusTestDuration
SkippedPageViewVitals with a real soft navigation › starts a new page view with its own LCP, and keeps the click in the INP of the first view
Skipped: This browser has no soft-navigation entries.
–
packages/lag-integration-tests/src/stress.test.ts6 passed, 1 skipped
StatusTestDuration
PassedLag Monitor Stress Tests › light load profile completes and reports few events20.1 s
PassedLag Monitor Stress Tests › moderate load profile triggers measurable lag17.91 s
PassedLag Monitor Stress Tests › heavy load profile drives the system hard18.28 s
PassedLag Monitor Stress Tests › bursty load produces both small and huge events (bimodal)18.09 s
PassedLag Monitor Stress Tests › evolutionary load drifts upward over time17.35 s
PassedLag Monitor Stress Tests › kitchen sink profile exercises all generators17.98 s
SkippedLag Monitor Stress Tests › exports the heavy profile to Mimir
Skipped: Needs the Grafana stack: run pnpm test:e2e.
–
packages/lag-integration-tests/src/throttled-step-read.test.ts2 skipped
StatusTestDuration
SkippedA read of long throttled steps › an idle page with the frame off the screen
Skipped: This read is for the real Safari.
–
SkippedA read of long throttled steps › known blocks with the frame off the screen
Skipped: This read is for the real Safari.
–
packages/lag-integration-tests/src/web-vitals-oracle.test.ts3 passed, 1 skipped
StatusTestDuration
PassedPageViewVitals agrees with web-vitals › FCP, LCP and TTFB agree exactly508 ms
SkippedPageViewVitals agrees with web-vitals › CLS agrees exactly
Skipped: Layout Instability (the layout-shift entry type, CLS) is Chromium-only.
–
PassedPageViewVitals agrees with web-vitals › reports no CLS where the browser cannot measure it, as web-vitals does0 ms
PassedPageViewVitals agrees with web-vitals › INP agrees exactly, and so do its attribution phases1.39 s
packages/lag-integration-tests/src/worker-io.test.ts11 passed
StatusTestDuration
Passedthe input and output of a worker during a main-thread block › an IndexedDB write of a worker completes during the block, except in WebKit2.98 s
Passedthe input and output of a worker during a main-thread block › a fetch with keepalive of a worker completes during the block, except in WebKit2.01 s
Passedthe input and output of a worker during a main-thread block › the writes and fetches of a service worker complete during the block, except in WebKit2.91 s
Passedthe input and output of a worker during a main-thread block › the writes and fetches of a shared worker complete during the block, except in WebKit2.9 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › opfs-sync-access: the operation waits for the end of the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › opfs-writable: the operation waits for the end of the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › opfs-lookup: the operation waits for the end of the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › cache-put: the operation waits for the end of the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › xhr: the operation waits for the end of the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › sync-xhr: the operation waits for the end of the block2.21 s
Passedthe output of a dedicated worker during a main-thread block (experiment E6) › websocket: the message arrives after the block2.51 s
packages/lag-integration-tests/src/worker.test.ts3 passed
StatusTestDuration
PassedWorker Lag Monitor Integration › receives heartbeats from a real Web Worker1.51 s
PassedWorker Lag Monitor Integration › detects main thread blocking1.6 s
PassedWorker Lag Monitor Integration › stops and restarts the worker's heartbeat loop1.2 s

@lag/integration-tests: browser tests in chromium

Suite integration-cdp-chromium. 6 passed. Duration 22.35 s.

packages/lag-integration-tests/src/cdp/compute-pressure.test.ts1 passed
StatusTestDuration
PassedComputePressureMonitor with a virtual CPU pressure source › records each state of the source, as ordinals 0 to 3417 ms
packages/lag-integration-tests/src/cdp/cpu-throttling.test.ts1 passed
StatusTestDuration
PassedCPU throttling (CDP Emulation.setCPUThrottlingRate) › 4x throttling of the same work increases the drift and the worker lag9.16 s
packages/lag-integration-tests/src/cdp/freeze.test.ts2 passed
StatusTestDuration
PassedA frozen page (CDP Page.setWebLifecycleState) › the lifecycle state machine sees the freeze and the resume1.02 s
PassedA frozen page (CDP Page.setWebLifecycleState) › timer monitors pause before the freeze, record no stall for it, and continue after the resume5.04 s
packages/lag-integration-tests/src/cdp/visibility.test.ts1 passed
StatusTestDuration
PassedA hidden page (a second page in front) › timer monitors pause while the page is hidden and continue when it is visible4.57 s
packages/lag-integration-tests/src/cdp/vitals-checkpoint.test.ts1 passed
StatusTestDuration
PassedThe page-view vitals at the hidden checkpoint › record one value for each vital, and the events, when the page becomes hidden1.52 s

@lag/integration-tests: browser tests in chromium

Suite integration-coi-chromium. 4 passed. Duration 1.27 s.

packages/lag-integration-tests/src/coi/isolation.test.ts4 passed
StatusTestDuration
PassedA cross-origin-isolated page › is cross-origin isolated and has SharedArrayBuffer1.7 ms
PassedA cross-origin-isolated page › the shared-memory liveness monitor reports a main-thread block1.27 s
PassedA cross-origin-isolated page › the memory monitor uses measureUserAgentSpecificMemory()0.89 ms
PassedA cross-origin-isolated page › performance.now() has a high resolution2.6 ms

@lag/integration-tests: browser tests in firefox

Suite integration-coi-firefox. 3 passed, 1 skipped. Duration 1.26 s.

packages/lag-integration-tests/src/coi/isolation.test.ts3 passed, 1 skipped
StatusTestDuration
PassedA cross-origin-isolated page › is cross-origin isolated and has SharedArrayBuffer0.56 ms
PassedA cross-origin-isolated page › the shared-memory liveness monitor reports a main-thread block1.26 s
SkippedA cross-origin-isolated page › the memory monitor uses measureUserAgentSpecificMemory()
Skipped: performance.measureUserAgentSpecificMemory() needs Chromium in the new headless mode and cross-origin isolation.
–
PassedA cross-origin-isolated page › performance.now() has a high resolution2.1 ms

@lag/integration-tests: browser tests in webkit

Suite integration-coi-webkit. 3 passed, 1 skipped. Duration 1.26 s.

packages/lag-integration-tests/src/coi/isolation.test.ts3 passed, 1 skipped
StatusTestDuration
PassedA cross-origin-isolated page › is cross-origin isolated and has SharedArrayBuffer2.1 ms
PassedA cross-origin-isolated page › the shared-memory liveness monitor reports a main-thread block1.26 s
SkippedA cross-origin-isolated page › the memory monitor uses measureUserAgentSpecificMemory()
Skipped: performance.measureUserAgentSpecificMemory() needs Chromium in the new headless mode and cross-origin isolation.
–
PassedA cross-origin-isolated page › performance.now() has a high resolution2 ms

@lag/integration-tests: benchmark tests in chromium

Suite integration-overhead-chromium. 1 passed. Duration 1 min 23 s.

packages/lag-integration-tests/src/overhead/overhead.test.ts1 passed
StatusTestDuration
PassedThe overhead of all monitors on an idle page › stays in the CPU and timer budgets1 min 23 s

@lag/load: unit tests in node

Suite load-unit-node. 18 passed. Duration 87 ms.

packages/load/src/load.test.ts15 passed
StatusTestDuration
Passedload: RNG › is reproducible given the same seed1.7 ms
Passedload: RNG › produces different sequences for different seeds0.53 ms
Passedload: RNG › int() respects bounds inclusively3.8 ms
Passedload: RNG › range() respects bounds (half-open)3.4 ms
Passedload: RNG › normal() produces values approximately centered at 03.2 ms
Passedload: RNG › bool(p) approximates the requested probability3.1 ms
Passedload: RNG › pick() selects from the array uniformly1.1 ms
Passedload: Distributions › constant always returns the same value0.83 ms
Passedload: Distributions › uniform stays in bounds19 ms
Passedload: Distributions › normal clamps to [min, max]12 ms
Passedload: Distributions › exponential is non-negative and skewed2 ms
Passedload: Distributions › powerLaw produces a long tail1.8 ms
Passedload: Distributions › bimodal produces two clusters0.31 ms
Passedload: Distributions › evolutionary drifts as a random walk0.21 ms
Passedload: Distributions › burst alternates between active and idle0.24 ms
packages/load/src/rng.test.ts3 passed
StatusTestDuration
PassedcreateRng on randomOf of @mark1russell7/rigor-generators › gives the same draws as the copy for each seed, with valid inputs48 ms
PassedcreateRng on randomOf of @mark1russell7/rigor-generators › keeps the seed that it got, also when the seed is not a 32-bit integer0.25 ms
PassedcreateRng on randomOf of @mark1russell7/rigor-generators › throws on the inputs that the copy took without an error0.75 ms

@lag/report: unit tests in node

Suite report-unit-node. 12 passed. Duration 9.2 ms.

packages/report/src/convert.test.ts12 passed
StatusTestDuration
PassedrelativePath › makes Windows and POSIX paths relative to the root, with forward slashes0.94 ms
PassedrelativePath › ignores case on the root, as Windows paths do0.12 ms
PassedrelativePath › keeps paths outside the root0.15 ms
PassedrelativePath › removes the checkout folder of another runner, thus the file names agree in each engine0.19 ms
PassedrelativePath › removes the part before the packages folder of a file from another machine0.16 ms
PassedfromVitestJson › converts files, tests, statuses and timing0.86 ms
PassedfromVitestJson › adds a failed test for a file that failed without a failed test, as Vitest's JSON reporter writes it0.37 ms
PassedfromIstanbulSummary › separates the total from the files and sorts the files4.6 ms
PassedfromStrykerReport › counts mutants and calculates the score from valid mutants only0.88 ms
PassedfromStrykerReport › keeps the commit and the time of the Stryker run0.2 ms
PassedfromStrykerReport › gives no score to a file without valid mutants, and puts it after the files with a score0.23 ms
Passedrun summaries › counts statuses across suites0.21 ms

@lag/scripts: unit tests in node

Suite scripts-unit-node. 56 passed. Duration 714 ms.

packages/scripts/src/package-template.test.ts8 passed
StatusTestDuration
Passedpnpm new › refuses an existing folder, unless --force1.3 ms
Passedpnpm new › refuses the name of a package in another folder, also with --force0.79 ms
Passedpnpm new › adds the devDependencies that the types of each TypeScript config need, with the versions of the workspace0.93 ms
Passedpnpm new › gives a dependency for each `types` entry of the config files1.4 ms
Passedpnpm new › finds a version in the workspace for each devDependency of each config2 ms
Passedpnpm new › takes the range with the highest version when two packages differ0.21 ms
Passedpnpm new › makes the package.json and the tsconfig.json of an ESM and a CommonJS package0.31 ms
Passedpnpm new › fails when no workspace package uses a necessary devDependency0.27 ms
packages/scripts/src/readme-metrics.test.ts5 passed
StatusTestDuration
Passedreadme-metrics › makes one row for each metric of the catalog1.6 ms
Passedreadme-metrics › escapes the pipe character in a description0.14 ms
Passedreadme-metrics › escapes a backslash before a pipe character, so the pipe does not start a new cell0.18 ms
Passedreadme-metrics › replaces only the text between the markers0.44 ms
Passedreadme-metrics › finds the README in agreement with the catalog0.2 ms
packages/scripts/src/results/browser-projects.test.ts5 passed
StatusTestDuration
Passedthe browser projects of the results collector › are the projects of the browser jobs of ci.yml and pages.yml, for each engine1.7 ms
Passedthe browser projects of the results collector › are all the projects of every engine, one engine after the other0.15 ms
PassedparseProjectList › reads the JSON array of the matrix of a workflow0.22 ms
PassedparseProjectList › reads names with commas between them, without the spaces at their ends, and each name one time0.1 ms
PassedparseProjectList › gives an error for a value without names, for JSON that is not an array and for a name that is not a string0.73 ms
packages/scripts/src/results/ios-count.test.ts9 passed
StatusTestDuration
PassedreadIosLog › reads a failed test one time, without the project, also with color codes1.6 ms
PassedreadIosLog › reads each line of the test of a frame off the screen0.32 ms
PassedreadIosLog › reads the busy time of each check from a new line0.21 ms
PassedreadIosLog › reads nothing from other lines0.18 ms
PassedisWrongRecord › takes a drift value or a frame gap of 1 s or more, and only those0.22 ms
PassedcountIosAttempts › counts by test name and keeps the attempt of each wrong record0.39 ms
PassedcountIosAttempts › needs an issue for a failed test, a wrong record in a passed attempt, a failure with no test name, or a log not read0.3 ms
PassedrenderIosCount › says that the list of wrong records can be short, and names the values0.32 ms
PassedrenderIosCount › says so when nothing failed0.17 ms
packages/scripts/src/results/model.test.ts17 passed
StatusTestDuration
Passedsuite names › names a suite after the package, the project and the environment2.6 ms
Passedsuite names › finds the kind of a suite from the project0.28 ms
Passedsuite names › shortens the package names0.13 ms
Passedsuite names › gives each project report a file name without spaces0.33 ms
Passedresults.jsonl › reads the valid records and leaves out the other lines0.78 ms
Passedresults.jsonl › gives each measurement the suite of its project and joins the same name0.37 ms
Passedresults.jsonl › keeps one budget for each name, calculates `pass` again and puts the failed ones first0.35 ms
Passedthe run index › makes a run ID that sorts by time and has the short commit0.51 ms
Passedthe run index › adds the run to the index, oldest first, and replaces a run with the same ID8.3 ms
Passedthe run index › gives the summary of the new run its budget counts, and keeps an older summary without them0.39 ms
Passedthe run index › starts again from an index that the site cannot read, and keeps at most maxRuns0.79 ms
Passedthe result of the collector › fails when a step gave an exit code that is not 0, also without a failed test0.19 ms
Passedthe result of the collector › reads the exit codes of the steps of another machine, without the items that are not a step0.35 ms
Passedthe result of the collector › fails when a test or a budget failed0.13 ms
Passedthe result of the collector › uses only the files that changed during the run, with a tolerance of 2 s0.17 ms
Passedthe origin of the mutation report › takes the commit and the time from the file of the Pages workflow0.19 ms
Passedthe origin of the mutation report › uses the time of the report file, and no commit, without a valid file0.16 ms
packages/scripts/src/results/project-reporter.test.ts5 passed
StatusTestDuration
Passedproject reporter with Vitest › adds a failed test for a beforeAll hook that failed, and keeps its tests skipped1.3 ms
Passedproject reporter with Vitest › adds a failed test for a file that failed at its import0.28 ms
Passedproject reporter with Vitest › adds a failed test for an afterAll hook that failed, and keeps its tests passed0.33 ms
Passedproject reporter with Vitest › adds nothing to a file that passed, and the counts agree with the exit code of Vitest0.93 ms
Passedproject reporter › adds a failed test for a file that Vitest marks as failed without an error0.38 ms
packages/scripts/src/results/session-loss.test.ts3 passed
StatusTestDuration
PassedsessionLossRetry › operates the tests a second time after a lost session without a failed test, also with the colors of Vitest1.6 ms
PassedsessionLossRetry › does not operate the tests again when a test also failed0.37 ms
PassedsessionLossRetry › does not operate the tests again for another failure0.14 ms
packages/scripts/src/results/stamp.test.ts4 passed
StatusTestDuration
Passedthe data stamp of the results page › names the newest run, its date, its link and the version of the engine2 ms
Passedthe data stamp of the results page › stops the build when the index has no run1.1 ms
Passedthe link of a run › comes from the environment of the run0.27 ms
Passedthe link of a run › stops the build outside a run0.76 ms

@lag/site: browser tests in chromium

Suite site-browser-chromium. 113 passed. Duration 28.81 s.

packages/site/src/app/prerender-handoff.browser.test.tsx8 passed
StatusTestDuration
PassedroutePathOf › gives the route of a URL path below the base2.5 ms
PassedisPrerendering › is true only when the prerender sets the flag0.1 ms
PassedmountApp › gives the root element when the page has no HTML from the build0.2 ms
PassedmountApp › removes HTML from the build for a different route1.6 ms
PassedmountApp › renders hidden after the saved HTML, and shows the app when nothing loads203 ms
PassedmountApp › shows the app after the settle time, also when a live chart changes the DOM all the time252 ms
PassedmountApp › shows the app after the time limit, also when an element still loads202 ms
PassedmountApp › gives React an ID prefix, so the IDs differ from the IDs in the saved HTML2.8 ms
packages/site/src/app/smoke.browser.test.tsx71 passed
StatusTestDuration
Passedsite routes › renders / without errors284 ms
Passedsite routes › renders /results without errors530 ms
Passedsite routes › renders /results/2026-10-06-f6e5d4c without errors179 ms
Passedsite routes › renders /results/2026-10-06-f6e5d4c/tests without errors185 ms
Passedsite routes › renders /results/2026-10-06-f6e5d4c/tests?status=failed&q=heartbeat without errors156 ms
Passedsite routes › renders /results/2026-10-06-f6e5d4c/coverage without errors162 ms
Passedsite routes › renders /results/2026-10-06-f6e5d4c/mutation without errors160 ms
Passedsite routes › renders /results/2026-10-06-f6e5d4c/budgets without errors154 ms
Passedsite routes › renders /results/2026-10-06-f6e5d4c/measurements without errors231 ms
Passedsite routes › renders /results/2026-10-06-f6e5d4c/measurements?group=browser without errors178 ms
Passedsite routes › renders /results/no-such-run without errors164 ms
Passedsite routes › renders /playground without errors361 ms
Passedsite routes › renders /no/such/page without errors153 ms
Passedsite routes › renders /docs/no-such-page without errors152 ms
Passedsite routes › renders /docs without errors454 ms
Passedsite routes › renders /docs/getting-started without errors458 ms
Passedsite routes › renders /docs/concepts/event-loop without errors1.38 s
Passedsite routes › renders /docs/concepts/page-lifecycle without errors741 ms
Passedsite routes › renders /docs/concepts/page-views without errors457 ms
Passedsite routes › renders /docs/concepts/clocks-and-time without errors468 ms
Passedsite routes › renders /docs/concepts/measurement-validity without errors504 ms
Passedsite routes › renders /docs/concepts/statistics without errors446 ms
Passedsite routes › renders /docs/concepts/survivorship without errors453 ms
Passedsite routes › renders /docs/concepts/metrics-model without errors425 ms
Passedsite routes › renders /docs/monitors without errors454 ms
Passedsite routes › renders /docs/monitors/drift-lag without errors431 ms
Passedsite routes › renders /docs/monitors/macrotask-lag without errors453 ms
Passedsite routes › renders /docs/monitors/scheduling-fairness without errors453 ms
Passedsite routes › renders /docs/monitors/worker-lag without errors456 ms
Passedsite routes › renders /docs/monitors/peer-hang-watch without errors453 ms
Passedsite routes › renders /docs/monitors/shared-liveness without errors453 ms
Passedsite routes › renders /docs/monitors/long-animation-frames without errors453 ms
Passedsite routes › renders /docs/monitors/long-callbacks without errors453 ms
Passedsite routes › renders /docs/monitors/event-timing without errors453 ms
Passedsite routes › renders /docs/monitors/layout-shift without errors453 ms
Passedsite routes › renders /docs/monitors/page-view-vitals without errors453 ms
Passedsite routes › renders /docs/monitors/page-view-context without errors452 ms
Passedsite routes › renders /docs/monitors/frame-timing without errors453 ms
Passedsite routes › renders /docs/monitors/idle-availability without errors453 ms
Passedsite routes › renders /docs/monitors/memory without errors453 ms
Passedsite routes › renders /docs/monitors/compute-pressure without errors453 ms
Passedsite routes › renders /docs/monitors/gc-signal without errors452 ms
Passedsite routes › renders /docs/monitors/lifecycle without errors503 ms
Passedsite routes › renders /docs/monitors/timer-throttle without errors453 ms
Passedsite routes › renders /docs/monitors/clock-reliability without errors452 ms
Passedsite routes › renders /docs/monitors/clock-drift without errors453 ms
Passedsite routes › renders /docs/monitors/browser-reports without errors453 ms
Passedsite routes › renders /docs/architecture without errors556 ms
Passedsite routes › renders /docs/api without errors453 ms
Passedsite routes › renders /docs/api-exports without errors453 ms
Passedsite routes › renders /docs/operations/opentelemetry without errors453 ms
Passedsite routes › renders /docs/operations/grafana-stack without errors467 ms
Passedsite routes › renders /docs/operations/dashboards without errors455 ms
Passedsite routes › renders /docs/testing/strategy without errors453 ms
Passedsite routes › renders /docs/contributing/writing-style without errors453 ms
Passedsite routes › renders /docs/contributing/development without errors452 ms
Passedsite routes › renders /research without errors452 ms
Passedsite routes › renders /research/browser-support without errors428 ms
Passedsite routes › renders /research/clocks-and-timers without errors454 ms
Passedsite routes › renders /research/local-experiments without errors455 ms
Passedsite routes › renders /research/web-vitals-algorithms without errors455 ms
Passedsite routes › renders /research/rum-landscape without errors453 ms
Passedsite routes › renders /research/otel-browser-metrics without errors454 ms
Passedsite routes › renders /research/writing-standard without errors453 ms
Passedsite routes › renders /research/sources without errors453 ms
Passedsite routes › renders /thesis without errors453 ms
Passedsite routes › draws the measurement charts of almost equal values153 ms
Passedsite routes › shows the title of each content page as its h1122 ms
Passedsite routes › shows the empty state without results51 ms
Passedsite routes › draws the boxes and the arrows of the architecture map163 ms
Passedsite routes › starts the monitors in the playground and stops them on unmount58 ms
packages/site/src/explainers/explainers.browser.test.tsx5 passed
StatusTestDuration
PassedDriftStepper › shows the lag of the window with the block, less than the block by less than one step151 ms
PassedDriftStepper › gives false lag without calibration, and no lag without a block114 ms
PassedHistogramMerge › keeps the estimate of the merged buckets nearer to the correct value than the mean of the percentiles219 ms
PassedProbeLoops › gives the table of the worked example of the statistics page63 ms
PassedLifecycleLive › shows the state of this tab and each transition of the shared tracker22 ms
packages/site/src/playground/session.browser.test.ts3 passed
StatusTestDuration
Passedbrowser session › records the real monitors and sees a blocked main thread1.52 s
Passedbrowser session › records nothing more after it stops2.01 s
Passedbrowser session › gives the home page every monitor and a worker, with a window of 10 s507 ms
packages/site/src/components/FourLags/FourLags.browser.test.tsx4 passed
StatusTestDuration
PassedFourLags › shows the four quantities of the default example62 ms
PassedFourLags › changes only the input latency much when the click moves out of the task40 ms
PassedFourLags › gives no input latency without a click, and a longer task gives more blocked time50 ms
PassedFourLags › moves the click to the place that the reader drags44 ms
packages/site/src/components/LiveDemo/LiveDemo.browser.test.tsx8 passed
StatusTestDuration
PassedLiveDemo › starts DriftLag when it comes into view, and records a block as lag713 ms
PassedLiveDemo › starts the demo of frame-timing without errors62 ms
PassedLiveDemo › starts the demo of worker-lag without errors58 ms
PassedLiveDemo › starts the demo of lifecycle without errors63 ms
PassedLiveDemo › starts the demo of gc-signal without errors59 ms
PassedLiveDemo › starts the demo of event-timing without errors58 ms
PassedLiveDemo › shows the transitions of the lifecycle demo55 ms
PassedLiveDemo › does not start in the prerender of the build352 ms
packages/site/src/home/hero/HeroInstrument.browser.test.tsx2 passed
StatusTestDuration
PassedHeroInstrument › starts no monitor before the first input, then starts them at the first input561 ms
PassedHeroInstrument › measures one block with five monitors13.15 s
packages/site/src/playground/timeline/Analysis.browser.test.tsx5 passed
StatusTestDuration
PassedEpochPanel › draws the three signals around the blocks79 ms
PassedEpochPanel › changes the time 0 to the end of the blocks27 ms
PassedEpochPanel › tells what to do when there are no blocks, and keeps the place of the charts8.8 ms
PassedInpScatterPanel › draws one dot for each interaction, with the INP thresholds13 ms
PassedInpScatterPanel › tells that a browser without long animation frames puts all dots at 0 ms10 ms
packages/site/src/playground/timeline/SessionTimeline.browser.test.tsx7 passed
StatusTestDuration
PassedSessionTimeline › draws the tracks, and follows the present time85 ms
PassedSessionTimeline › hides a track when its check box is cleared31 ms
PassedSessionTimeline › zooms, pans and shows all with the keyboard, and stops following45 ms
PassedSessionTimeline › goes to the next item with the keyboard, describes it and announces it51 ms
PassedSessionTimeline › shows a tooltip for the item under the pointer23 ms
PassedSessionTimeline › gives the items of the visible range as a table80 ms
PassedSessionTimeline › keeps the frame rate of an empty timeline with thousands of items3.13 s

@lag/site: unit tests in node

Suite site-unit-node. 399 passed. Duration 9.32 s.

packages/site/build/base.test.ts3 passed
StatusTestDuration
PassednormalizeBase › gives / for an empty value1.4 ms
PassednormalizeBase › adds the slashes at the start and the end0.64 ms
PassednormalizeBase › keeps a full URL0.16 ms
packages/site/build/frontmatter.test.ts7 passed
StatusTestDuration
PassedisFrontmatterRequest › accepts an .mdx ID with the frontmatter query5.4 ms
PassedisFrontmatterRequest › rejects other IDs0.84 ms
PassedstripQuery › removes the query0.25 ms
PassedextractFrontmatter › reads the YAML block at the start of the file6.2 ms
PassedextractFrontmatter › reads CRLF line endings and a byte order mark1.9 ms
PassedextractFrontmatter › returns an empty object without frontmatter0.27 ms
PassedextractFrontmatter › returns an empty object if the YAML is not a mapping0.89 ms
packages/site/build/head-tags.test.ts10 passed
StatusTestDuration
Passedhead tags › gives an article its canonical URL, Open Graph, the Twitter card and the sitemap2.4 ms
Passedhead tags › gives the home page the full title, the type website and the site URL0.39 ms
Passedhead tags › uses the fallback description for a page without a description0.46 ms
Passedhead tags › tells search engines not to keep the page of a test run0.53 ms
Passedhead tags › gives the home page a WebSite and a SoftwareSourceCode in TypeScript under the MIT license0.84 ms
Passedhead tags › gives an article a TechArticle and a BreadcrumbList0.82 ms
Passedhead tags › gives a page of the app a WebPage0.32 ms
Passedhead tags › puts only the parent routes that exist into the breadcrumbs0.22 ms
Passedhead tags › escapes the JSON so that a text cannot close the script element0.26 ms
Passedhead tags › names the image files and the text alternatives0.27 ms
packages/site/build/mdx-plugin.test.ts2 passed
StatusTestDuration
PassedisRawRequest › finds the import of the text of a file1 ms
PassedisRawRequest › does not find a page or another query0.16 ms
packages/site/build/og-image.test.ts11 passed
StatusTestDuration
PassedOpen Graph images › gives an article its group, its title and its description4.3 ms
PassedOpen Graph images › gives the home page the language and the license of the library0.35 ms
PassedOpen Graph images › keeps each word with a hyphen on one line, and escapes the title0.37 ms
PassedOpen Graph images › gives the address of the site without the protocol0.14 ms
PassedOpen Graph images › escapes the text, uses the fonts of the site and tells the build when it is ready2.3 ms
Passedlag chart › gives the same values for the same seed, and other values for another seed1.3 ms
Passedlag chart › has a few long windows and many short windows, for each seed1.2 ms
Passedlag chart › draws one bar for each window, red from 50 ms, the dashed line at 50 ms and the scale0.59 ms
Passedlag chart › draws the site mark with its red frame0.6 ms
Passedprerender switch › is on unless SITE_PRERENDER is 0, false, no or off0.4 ms
Passedfont preload › selects the Latin text font and the Latin code font of the bundle0.39 ms
packages/site/build/rehype-export-toc.test.ts3 passed
StatusTestDuration
PassedcollectToc › collects the h2 and h3 headings that have an id, in order6.9 ms
PassedcreateExportNode › makes an ESM export of the entries1.1 ms
PassedrehypeExportToc › puts the export at the start of the tree2.3 ms
packages/site/build/remark-mermaid.test.ts4 passed
StatusTestDuration
PassedremarkMermaid › changes a mermaid fence into the Mermaid component, with its title and caption2.7 ms
PassedremarkMermaid › changes fences inside other nodes, for example in a list0.22 ms
PassedremarkMermaid › reads the key-value pairs of the meta string0.23 ms
PassedremarkMermaid › makes MDX code that gives the chart to the component13 ms
packages/site/build/site-url.test.ts6 passed
StatusTestDuration
Passedsite URL › uses SITE_URL, with a slash at the end and a host in lower case4.4 ms
Passedsite URL › uses the fallback when SITE_URL is not set or empty0.25 ms
Passedsite URL › refuses a value that is not an absolute http or https URL0.77 ms
Passedsite URL › gives the absolute URL of a route, as the links of the app give it0.26 ms
Passedsitemap and robots.txt › lists each URL one time, with escapes10 ms
Passedsitemap and robots.txt › lets all crawlers read the site and gives the sitemap0.68 ms
packages/site/build/snapshot.test.ts10 passed
StatusTestDuration
Passedcolor tokens › reads the colors of the light theme, and leaves out a color that two tokens have12 ms
Passedcolor tokens › finds each color of styles/tokens.css one time, with the ink, the mark and the series colors8.5 ms
Passedcolor tokens › replaces hex and rgb() colors of tokens, and nothing else0.55 ms
Passedcolor tokens › works with no outside value, thus the prerender can start it in the browser0.28 ms
Passedcolor tokens › makes CSS rules with no specificity for the SVG attributes with a token color0.41 ms
Passedpage HTML › puts the head tags after the title, and keeps the root element empty without a snapshot0.6 ms
Passedpage HTML › puts the snapshot into the root element, with the route, and the text stays as it is7.5 ms
Passedpage HTML › adds the style sheets of the page one time each, after the style sheet of the template3.2 ms
Passedpage HTML › adds the color rules before the style sheets, thus the other rules win3.4 ms
Passedpage HTML › refuses a template without an empty root element0.8 ms
packages/site/build/social-card.test.ts2 passed
StatusTestDuration
Passedsocial preview › shows the name, the claim, the facts and the chart at 1280 × 640 pixels2.4 ms
Passedsocial preview › escapes the text0.43 ms
packages/site/build/static-routes.test.ts11 passed
StatusTestDuration
Passedstatic routes › gives the content pages the paths, titles and groups of the content registry, in path order19 ms
Passedstatic routes › gives the views of each run, with a unique title, and ignores an unsafe run ID0.68 ms
Passedstatic routes › gives the playground and the list of runs a title and a description0.34 ms
Passedstatic routes › takes the home route from the title and the description of index.html0.28 ms
Passedstatic routes › lists the home page first, then the content pages, the app pages and the runs13 ms
Passedstatic routes › has the title of the home page in index.html0.42 ms
Passedstatic routes › gives each page of the site a unique title and a description of a useful length29 ms
Passedstatic routes › puts the title and the description of the route into the HTML, with escapes0.71 ms
Passedstatic routes › gives the 404 page its title and noindex, and no description1.3 ms
Passedstatic routes › writes a file for the path and a file for the path with a slash at the end0.31 ms
Passedstatic routes › names the sections as the navigation does0.23 ms
packages/site/src/architecture/graph.test.ts4 passed
StatusTestDuration
Passedarchitecture graph › has a unique ID for each node4.9 ms
Passedarchitecture graph › connects only nodes that exist7.5 ms
Passedarchitecture graph › puts children in group nodes that exist0.37 ms
Passedarchitecture graph › links each node to a page that exists0.63 ms
packages/site/src/app/prerender-sessions.test.ts2 passed
StatusTestDuration
PassedsessionsWithoutStart › gives the sessions of the factory, but they do not start the monitors2.3 ms
PassedsessionsWithoutStart › gives the error of the factory2.1 ms
packages/site/src/app/routes.test.ts2 passed
StatusTestDuration
PassedrouterBasename › removes the slash at the end of the base URL1.2 ms
PassedrouterBasename › uses the path of a full URL0.15 ms
packages/site/src/content/content.test.ts55 passed
StatusTestDuration
Passedsite content › has valid frontmatter on every page1.7 ms
Passedsite content › has every required page1.6 ms
Passedsite content › gives each page in a section a different order0.28 ms
Passedsite content › compiles /docs with a component and a table of contents70 ms
Passedsite content › compiles /docs/getting-started with a component and a table of contents43 ms
Passedsite content › compiles /docs/concepts/event-loop with a component and a table of contents257 ms
Passedsite content › compiles /docs/concepts/page-lifecycle with a component and a table of contents68 ms
Passedsite content › compiles /docs/concepts/page-views with a component and a table of contents89 ms
Passedsite content › compiles /docs/concepts/clocks-and-time with a component and a table of contents80 ms
Passedsite content › compiles /docs/concepts/measurement-validity with a component and a table of contents85 ms
Passedsite content › compiles /docs/concepts/statistics with a component and a table of contents280 ms
Passedsite content › compiles /docs/concepts/survivorship with a component and a table of contents61 ms
Passedsite content › compiles /docs/concepts/metrics-model with a component and a table of contents147 ms
Passedsite content › compiles /docs/monitors with a component and a table of contents139 ms
Passedsite content › compiles /docs/monitors/drift-lag with a component and a table of contents88 ms
Passedsite content › compiles /docs/monitors/macrotask-lag with a component and a table of contents30 ms
Passedsite content › compiles /docs/monitors/scheduling-fairness with a component and a table of contents33 ms
Passedsite content › compiles /docs/monitors/worker-lag with a component and a table of contents64 ms
Passedsite content › compiles /docs/monitors/peer-hang-watch with a component and a table of contents86 ms
Passedsite content › compiles /docs/monitors/shared-liveness with a component and a table of contents29 ms
Passedsite content › compiles /docs/monitors/long-animation-frames with a component and a table of contents47 ms
Passedsite content › compiles /docs/monitors/long-callbacks with a component and a table of contents43 ms
Passedsite content › compiles /docs/monitors/event-timing with a component and a table of contents31 ms
Passedsite content › compiles /docs/monitors/layout-shift with a component and a table of contents29 ms
Passedsite content › compiles /docs/monitors/page-view-vitals with a component and a table of contents87 ms
Passedsite content › compiles /docs/monitors/page-view-context with a component and a table of contents28 ms
Passedsite content › compiles /docs/monitors/frame-timing with a component and a table of contents40 ms
Passedsite content › compiles /docs/monitors/idle-availability with a component and a table of contents48 ms
Passedsite content › compiles /docs/monitors/memory with a component and a table of contents47 ms
Passedsite content › compiles /docs/monitors/compute-pressure with a component and a table of contents100 ms
Passedsite content › compiles /docs/monitors/gc-signal with a component and a table of contents155 ms
Passedsite content › compiles /docs/monitors/lifecycle with a component and a table of contents68 ms
Passedsite content › compiles /docs/monitors/timer-throttle with a component and a table of contents48 ms
Passedsite content › compiles /docs/monitors/clock-reliability with a component and a table of contents24 ms
Passedsite content › compiles /docs/monitors/clock-drift with a component and a table of contents43 ms
Passedsite content › compiles /docs/monitors/browser-reports with a component and a table of contents50 ms
Passedsite content › compiles /docs/architecture with a component and a table of contents59 ms
Passedsite content › compiles /docs/api with a component and a table of contents159 ms
Passedsite content › compiles /docs/api-exports with a component and a table of contents59 ms
Passedsite content › compiles /docs/operations/opentelemetry with a component and a table of contents37 ms
Passedsite content › compiles /docs/operations/grafana-stack with a component and a table of contents128 ms
Passedsite content › compiles /docs/operations/dashboards with a component and a table of contents262 ms
Passedsite content › compiles /docs/testing/strategy with a component and a table of contents209 ms
Passedsite content › compiles /docs/contributing/writing-style with a component and a table of contents45 ms
Passedsite content › compiles /docs/contributing/development with a component and a table of contents111 ms
Passedsite content › compiles /research with a component and a table of contents38 ms
Passedsite content › compiles /research/browser-support with a component and a table of contents174 ms
Passedsite content › compiles /research/clocks-and-timers with a component and a table of contents98 ms
Passedsite content › compiles /research/local-experiments with a component and a table of contents222 ms
Passedsite content › compiles /research/web-vitals-algorithms with a component and a table of contents90 ms
Passedsite content › compiles /research/rum-landscape with a component and a table of contents39 ms
Passedsite content › compiles /research/otel-browser-metrics with a component and a table of contents105 ms
Passedsite content › compiles /research/writing-standard with a component and a table of contents40 ms
Passedsite content › compiles /research/sources with a component and a table of contents73 ms
Passedsite content › compiles /thesis with a component and a table of contents73 ms
packages/site/src/content/frontmatter.test.ts4 passed
StatusTestDuration
PassedparsePageMeta › accepts valid frontmatter1.4 ms
PassedparsePageMeta › keeps the status optional0.22 ms
PassedparsePageMeta › uses safe values and marks the page as a draft for invalid fields0.73 ms
PassedparsePageMeta › reports a missing frontmatter0.28 ms
packages/site/src/content/registry.test.ts12 passed
StatusTestDuration
PassedparseContentKey › splits a glob key into the section and the file1.4 ms
PassedparseContentKey › rejects a file that is not in a section folder0.37 ms
PassedslugOf and folderLabel › removes index from the path0.3 ms
PassedslugOf and folderLabel › makes a label from a folder name0.15 ms
PassedcreateContentRegistry › finds pages by section and slug0.33 ms
PassedcreateContentRegistry › lists the sections0.15 ms
PassedcreateContentRegistry › orders the sidebar by order, with each folder as one group0.15 ms
PassedcreateContentRegistry › reads the pages in sidebar order0.18 ms
PassedcreateContentRegistry › gives the previous and the next page0.27 ms
PassedcreateContentRegistry › has no problems for valid entries7.2 ms
PassedcreateContentRegistry › loads a page module only once1 ms
PassedcreateContentRegistry › reports invalid frontmatter and duplicate paths5.2 ms
packages/site/src/fixtures/sample-results.test.ts4 passed
StatusTestDuration
Passedsample results › has two valid runs2.4 ms
Passedsample results › covers Node and the three browser engines, with some failures0.82 ms
Passedsample results › is the same each time0.16 ms
Passedmulberry32 of @mark1russell7/rigor-generators and the copy of the site › gives the same sequence for each seed784 ms
packages/site/src/home/code.test.ts5 passed
StatusTestDuration
Passedthe usage example › is the quick start of the README of the package3.2 ms
Passedthe usage example › uses only exports of the package177 ms
Passedthe usage example › gives undefined for a text without a quick start0.4 ms
Passedhighlight › gives the same text, in tokens1.4 ms
Passedhighlight › does not find a comment or a keyword in a string0.22 ms
packages/site/src/home/proof.test.ts3 passed
StatusTestDuration
PassedproofNumbers › takes the test counts, the browsers, the mutation score and the coverage of the library from a run9 ms
PassedproofNumbers › gives the counts of the summary while the full run loads0.31 ms
PassedproofNumbers › names the iOS simulator, and keeps an unknown setup by its name0.27 ms
packages/site/src/lib/format.test.ts4 passed
StatusTestDuration
PassedformatBytes on the scale of @mark1russell7/quantity and the copy of the site › gives the text of the copy with KiB for KB, except for the two listed differences43 ms
PassedformatBytes on the scale of @mark1russell7/quantity and the copy of the site › gives the listed text changes4 ms
PassedformatMs on the scale of @mark1russell7/quantity and the copy of the site › gives the text of the copy below one minute, except for the two listed differences426 ms
PassedformatMs on the scale of @mark1russell7/quantity and the copy of the site › gives the listed text changes1.1 ms
packages/site/src/lib/lib.test.ts14 passed
StatusTestDuration
Passedformat › formats durations9.3 ms
Passedformat › rounds a duration of minutes to whole seconds before it divides them, and shows no 0 s2.2 ms
Passedformat › shows 100% and 0% only for exactly 100 and 00.33 ms
Passedformat › formats percentages, bytes, units and counts1.2 ms
Passedformat › formats dates in UTC1.6 ms
Passedstats › uses the nearest-rank percentile2.4 ms
Passedstats › summarizes values0.4 ms
Passedstats › makes an ECDF and limits its points5.5 ms
Passedstats › bins values on a log(1 + x) scale0.61 ms
Passedstats › gives one bin when the values differ but have the same log(1 + x)3.4 ms
Passedstats › puts each value into a bin, also the maximum, and gives at least one bin0.31 ms
Passedstats › keeps spikes when it reduces a series0.42 ms
PassedmemoizePromise › returns the same promise and tries again after a rejection1.9 ms
PassedmemoizePromise › keeps one entry for each key0.36 ms
packages/site/src/lib/stats.test.ts3 passed
StatusTestDuration
Passedpercentile on quantileSorted of rigor-statistics and the copy of the site › gives the value of the copy for each list and each p from 0 to 100599 ms
Passedpercentile on quantileSorted of rigor-statistics and the copy of the site › gives undefined for no values, as the copy did, where the home throws0.53 ms
Passedpercentile on quantileSorted of rigor-statistics and the copy of the site › throws for a p outside 0 to 100, where the copy gave the lowest or the highest value0.25 ms
packages/site/src/playground/demos.test.ts7 passed
StatusTestDuration
PassedDEMOS › has one demo for each page, with metrics of the catalog and loads of the playground4.3 ms
PassedDEMOS › names a feature of the browser support page for each demo that needs an API0.47 ms
PasseddemoFocusOf › gives the monitor of a demo session, and nothing for the other kinds0.21 ms
PasseddemoMetricNames › gives each instrument of the demo one time0.62 ms
PassedsupportSummary › gives the browsers of a feature from the browser support page0.2 ms
PasseddemoSupported › needs the entry type of an observer demo0.23 ms
PasseddemoSupported › needs the API of each other demo, and nothing for the timer demos0.29 ms
packages/site/src/playground/live-meter.test.ts5 passed
StatusTestDuration
PassedLiveMeter › keeps histogram values with their time and attributes3 ms
PassedLiveMeter › sums counter values0.34 ms
PassedLiveMeter › sums the values of each attribute value since the start, also after the oldest samples go0.98 ms
PassedLiveMeter › keeps only the newest samples, but counts all of them0.38 ms
PassedLiveMeter › shares one instrument for the same name0.25 ms
packages/site/src/playground/ring-buffer.test.ts4 passed
StatusTestDuration
PassedRingBuffer › keeps the newest items when it is full5.2 ms
PassedRingBuffer › returns the newest items that pass a test0.33 ms
PassedRingBuffer › can be cleared0.28 ms
PassedRingBuffer › refuses a capacity that is not a positive integer0.56 ms
packages/site/src/playground/session.test.ts11 passed
StatusTestDuration
PassedPlaygroundSession › starts idle3.4 ms
PassedPlaygroundSession › publishes snapshots two times each second while it runs6.9 ms
PassedPlaygroundSession › drops values that are older than the window0.8 ms
PassedPlaygroundSession › stops the handles, terminates the worker and leaves no timers0.62 ms
PassedPlaygroundSession › starts again with a new meter1.7 ms
PassedPlaygroundSession › reports a runtime that fails to start0.62 ms
PassedPlaygroundSession › runs one load at a time and keeps a history1.1 ms
PassedPlaygroundSession › has no timeline before the start, or without the names of the timeline0.33 ms
PassedPlaygroundSession › makes the timeline from the meter, the recorder and the vitals1.6 ms
PassedPlaygroundSession › shows each load on the timeline, and keeps the timeline after the stop1.8 ms
PassedPlaygroundSession › stops a profile when the session stops1.6 ms
packages/site/src/results/charts.test.ts7 passed
StatusTestDuration
PassedbarInset › keeps a bar at most 24 px thick10 ms
PassedbarInset › adds no inset when a band is already thin0.85 ms
PassedsymlogTicks › gives a 1-2-5 series up to the maximum2.8 ms
Passedmeasurement charts › build the histogram and the ECDF of almost equal values12 ms
Passedmeasurement charts › give the ticks short labels, not the precision of a very small domain3.1 ms
Passedlabels › formats a run date in UTC0.29 ms
Passedlabels › keeps the last two parts of a path0.61 ms
packages/site/src/results/report-source.test.ts13 passed
StatusTestDuration
PassedHttpReportSource › reads index.json below the base URL4.2 ms
PassedHttpReportSource › adds the slash after a base URL without one0.23 ms
PassedHttpReportSource › gives an empty index if there is no file0.24 ms
PassedHttpReportSource › gives an empty index for the HTML page of a single-page app fallback0.21 ms
PassedHttpReportSource › fails for a server error and for bad JSON0.98 ms
PassedHttpReportSource › accepts a run without budget counts, and refuses budget counts that are not numbers1.3 ms
PassedHttpReportSource › fails for an old schema version0.24 ms
PassedHttpReportSource › reads a run file and checks it1.1 ms
PassedHttpReportSource › refuses a run file outside the results folder0.33 ms
PassedisSafeRelativePath › accepts a path in the folder and rejects other paths0.93 ms
PassedMemoryReportSource › makes the index from the runs0.72 ms
PassedMemoryReportSource › can be empty0.18 ms
PassedcachedReportSource › loads each file once and tries again after a failure1.2 ms
packages/site/src/results/run-pages.test.ts2 passed
StatusTestDuration
Passedrun pages › finds the view of a URL path, and the overview for the path of the run2.3 ms
Passedrun pages › gives each view a different title0.37 ms
packages/site/src/theme/theme.test.ts11 passed
StatusTestDuration
Passedtheme preference › reads only light and dark; anything else is system1.3 ms
Passedtheme preference › cycles system, light, dark0.2 ms
Passedtheme preference › resolves the system preference0.28 ms
Passedpreference stores › keeps values in memory0.2 ms
Passedpreference stores › works with a storage that throws0.72 ms
Passedpreference stores › works when the storage itself cannot be read0.18 ms
Passedpreference stores › works without a storage0.15 ms
PassedmixColor › puts a color with an opacity on a background, as an opaque color0.36 ms
PassedmixColor › gives a color that is not a hex color without a change0.47 ms
Passedcontrast › calculates the relative luminance and the contrast ratio of WCAG 20.39 ms
Passedcontrast › selects the text color with the higher contrast on a fill0.32 ms
packages/site/src/components/FourLags/four-lags.test.ts17 passed
StatusTestDuration
PassedstartOf › gives the time itself when the main thread is free1.4 ms
PassedstartOf › waits for the task that runs, and for each task that entered the queue first0.24 ms
Passedframes › rounds up to the next rendering opportunity0.22 ms
Passedframes › drops the frames of a busy period and presents the first frame after it1.2 ms
Passedframes › counts a gap of n frame intervals as n − 1 dropped frames0.32 ms
Passedframes › gives one frame interval without a busy period0.16 ms
PasseddriftWindows › gives windows of 100 ms without lag on an idle main thread1.1 ms
PasseddriftWindows › gives the lag of a block to the window that contains it, less up to one step4.5 ms
Passedheartbeats › makes the heartbeats wait until the end of the busy period0.37 ms
Passedheartbeats › gives the mean wait of a message at a random time4.3 ms
PassedfourLags › calculates the example of the event loop page: a block of 300 ms and a click 100 ms after its start2.2 ms
PassedfourLags › gives no input latency when nobody clicks, but the same blocked time and frame gap0.43 ms
PassedfourLags › changes the other three values by less than 20 ms when the click moves (the claim of the event loop page)84 ms
PassedfourLags › gives a short click latency for a click after the task0.25 ms
PassedfourLags › makes the long task wait for the handlers of a click that comes just before it0.25 ms
PassedfourLags › rates the click with the INP thresholds0.14 ms
PassedfourLags › gives a task of 0 ms no busy period0.11 ms
packages/site/src/explainers/drift/drift-model.test.ts10 passed
StatusTestDuration
PassedsimulateDrift › gives no lag on an idle thread with a calibrated baseline3.6 ms
PassedsimulateDrift › gives false lag without calibration when the steps are longer than the request0.47 ms
PassedsimulateDrift › uses fewer and longer steps with a calibrated baseline of 15.6 ms, and gives no lag0.29 ms
PassedsimulateDrift › delays the step whose timer comes during the block until the end of the block2.2 ms
PassedsimulateDrift › gives a lag between the block minus one step and the block, for each start of the block8.3 ms
PassedsimulateDrift › puts the lag into the window in which the delayed step ends0.27 ms
PassedsimulateDrift › ignores a block of 0 ms and a block that starts after the windows0.24 ms
PassedbaselineOf › is the mean of the idle steps, near the granularity0.46 ms
PassedbaselineOf › is the requested delay without calibration0.85 ms
PassedjitterOf › gives the same value for the same step, from −1 to 121 ms
packages/site/src/explainers/histogram/histogram-model.test.ts10 passed
StatusTestDuration
PassednormalQuantile › gives the known values of the standard normal distribution1.7 ms
PassednormalQuantile of rigor-statistics and the copy of the site › differ by less than the error of the copy, 1.2e-9 relative21 ms
PassednormalQuantile of rigor-statistics and the copy of the site › give the same text of the explainer for each load of a sweep539 ms
PassedsamplesOf › gives the number of samples, with the median in the middle0.82 ms
PassedsamplesOf › gives the same samples for the same load0.36 ms
PassedbucketCounts › puts a value at a boundary into the bucket of that boundary, as OpenTelemetry does0.25 ms
PassedhistogramQuantile › interpolates in the bucket of the rank, from 0 in the lowest bucket0.19 ms
PassedhistogramQuantile › gives the last boundary for a rank in the last bucket, and nothing without samples0.12 ms
PassedaggregateSamples › gives the example of the metrics-model page: a mean of 255 ms, but 500 ms for all samples0.28 ms
Passedaggregate › keeps the histogram estimate in the bucket of the correct value, while the mean of the percentiles is far from it6.2 ms
packages/site/src/explainers/lifecycle/lifecycle-model.test.ts6 passed
StatusTestDuration
PassedsegmentsOf › gives one period for each state between the transitions2.5 ms
PassedsegmentsOf › cuts the periods at the start of the window and at the current time0.26 ms
PassedsegmentsOf › gives one period without transitions0.22 ms
PassedsegmentsOf › starts a new period for a restore with the same state0.28 ms
PassedsegmentsOf › moves a transition before the observed start to the observed start0.29 ms
PassedtimeInStates › adds the time of each state0.22 ms
packages/site/src/explainers/probes/probe-model.test.ts7 passed
StatusTestDuration
PassedclosedLoopSamples › gives one window with the whole block, and windows of 0 ms in the idle time6.5 ms
PassedclosedLoopSamples › gives the statistics of the table of the statistics page0.57 ms
PassedclosedLoopSamples › gives only idle windows without a block0.53 ms
PassedopenLoopSamples › gives the delays 30 s, 29 s and so on to 1 s for the heartbeats in the block0.47 ms
PassedopenLoopSamples › gives the statistics of the table of the statistics page0.25 ms
PassedopenLoopSamples › cuts the block at the end of the period0.2 ms
PassedrandomEventDelay › is L² / 2 / T: 7.5 s for the example0.15 ms
packages/site/src/home/hero/block-readings.test.ts11 passed
StatusTestDuration
PassedblockReadings › gives the value of each of the five monitors for one block9.9 ms
PassedblockReadings › adds the lag of all windows that the block made late, not the lag of the windows before it0.41 ms
PassedblockReadings › waits for the values that come after the block, then gives up0.95 ms
PassedblockReadings › gives no worker value when the heartbeats after the block did not wait0.42 ms
PassedblockReadings › marks the monitors that this browser does not support0.93 ms
PassedblockReadings › takes the click that started the load, not a later interaction0.76 ms
PassedkeepMeasured › keeps a value that left the time window of the series0.78 ms
PassedkeepMeasured › keeps the larger value when the time window cuts the samples of the load0.83 ms
PassedkeepMeasured › does not keep the values of another load1.4 ms
PassedframeInterval › gives the median frame time before the load2 ms
PassedframeInterval › gives 60 Hz without enough frames0.24 ms
packages/site/src/home/hero/strip.test.ts3 passed
StatusTestDuration
PassedstripLanes › draws each sample as the time that it lost before its end, in five lanes6.5 ms
PassedstripLanes › gives a tick for each sample in the range, also without lag0.24 ms
PassedstripLanes › keeps a mark that ends in the range, also when it starts before the range0.26 ms
packages/site/src/playground/timeline/docs-example.test.ts1 passed
StatusTestDuration
Passedthe simulated session of the documentation › agrees with the text of the statistics page1.6 ms
packages/site/src/playground/timeline/epochs.test.ts13 passed
StatusTestDuration
PassedblockEpisodes › joins a frame, a hang and a stall of the same block into one episode4.2 ms
PassedblockEpisodes › ignores a frame that blocks less than the threshold, and a stall of a suspend0.69 ms
PassedblockEpisodes › joins blocks that are less than the gap apart0.2 ms
PassedtCritical95 › gives the critical values of the t distribution0.51 ms
PassedbinStat › gives the mean, and the interval only for 3 or more values0.51 ms
PassedepochAverages › averages each signal in its bin3.1 ms
PassedepochAverages › aligns at the end of each block0.92 ms
PassedepochAverages › gives no value for the bins outside the recorded time0.46 ms
PassedepochAverages › gives no blocking value in a browser without long animation frames0.95 ms
PassedepochAverages › counts no epoch whose window is completely outside the recorded time0.41 ms
PassedreportedLagIn › sums the lag of the windows that end in the bin0.23 ms
PassedreportedLagIn › gives 0 ms in a long window, where the monitor reports nothing yet0.1 ms
PassedreportedLagIn › gives no value where no window covers the bin0.09 ms
packages/site/src/playground/timeline/inp-scatter.test.ts4 passed
StatusTestDuration
PassedoverlappingFrames › finds the frames whose time ranges overlap the interaction6.1 ms
PassedoverlappingFrames › does not count a frame that only touches the interaction0.27 ms
PassedinteractionScatter › gives each interaction the blocking time of the frames that overlap it0.59 ms
PassedsummarizeScatter › counts the slow interactions and the interactions with frames0.95 ms
packages/site/src/playground/timeline/items.test.ts16 passed
StatusTestDuration
PassedtimelineItems › gives the items of the visible tracks, sorted by start4.9 ms
PassedtimelineItems › finds the items that overlap the visible range1.8 ms
PassedadjacentItem › goes from the current item to the next and to the previous item2.7 ms
PassedadjacentItem › starts from a time without a current item0.22 ms
PassedhitTest › finds a long animation frame under the pointer0.75 ms
PassedhitTest › finds the hang in the upper row and the stall in the lower row0.58 ms
PassedhitTest › finds the interactions in the lower row, and the marks in the upper row of the vitals0.43 ms
PassedhitTest › finds the nearest drift window, and the lifecycle period0.59 ms
PassedhitTest › finds nothing outside the tracks0.18 ms
PasseddescribeItem › describes a frame with its blocking time2.8 ms
PasseddescribeItem › describes a span with its attributes, and an open span to now1.2 ms
PasseddescribeItem › describes an interaction with its parts and its rating0.4 ms
PasseddescribeItem › gives one sentence for the live region0.28 ms
PasseddescribeItem › gives a key that stays the same for the same item0.22 ms
Passedhelpers › formats a score with more decimals when it is very small0.13 ms
Passedhelpers › finds the first item at or above a value0.12 ms
packages/site/src/playground/timeline/model.test.ts13 passed
StatusTestDuration
PassedbuildTimelineModel › gives all times in seconds since the start of the session3.1 ms
PassedbuildTimelineModel › sorts the spans by name, and an open span ends at the present time0.51 ms
PassedbuildTimelineModel › shows a load that is active until the present time0.25 ms
PassedbuildTimelineModel › shows nothing that is more than 10 minutes before the session0.23 ms
PassedbuildTimelineModel › uses the time of the stop as the present time0.48 ms
PassedplaceLateWindows › moves a long window that the conditions recorded late to the gap that it fills0.89 ms
PassedplaceLateWindows › keeps a long window that follows its gap0.22 ms
PassedplaceLateWindows › keeps a long window without a gap of its length, and gives each gap to one window only0.34 ms
PassedlifecycleSegments › starts with the state before the first transition, and merges a transition to the same state0.39 ms
PassedlifecycleSegments › uses the current state without transitions, and gives nothing without a state0.24 ms
PassedpressureSegments › makes the periods of each source from its changes0.26 ms
PassedgroupInteractions › joins the entries of one interaction, as INP does0.5 ms
PassedrateDuration › uses the INP thresholds: at or below good is good, above poor is poor0.13 ms
packages/site/src/playground/timeline/recorder.test.ts6 passed
StatusTestDuration
PassedSessionRecorder › records events at the time of the occurrence, on the session clock1.8 ms
PassedSessionRecorder › gives an event without a time (or with a time that is not finite) the time of the call0.3 ms
PassedSessionRecorder › gives each span an identity, and keeps the trace of the parent1.3 ms
PassedSessionRecorder › changes the attributes and the end of an open span only until it ends0.38 ms
PassedSessionRecorder › keeps the entries of the probes3.1 ms
PassedSessionRecorder › keeps only the newest items of each kind0.3 ms
packages/site/src/playground/timeline/tracks.test.ts3 passed
StatusTestDuration
PassedlayoutTracks › places the visible tracks from top to bottom without gaps4.7 ms
PassedlayoutTracks › has each track once, in a fixed order0.48 ms
PassedlayoutTracks › finds the track at a height0.29 ms
packages/site/src/playground/timeline/viewport.test.ts13 passed
StatusTestDuration
PassedclampViewport › keeps a range in the bounds, with a small space after the present time2 ms
PassedclampViewport › limits the length to the minimum and to all the data0.25 ms
PassedclampViewport › starts a range that is longer than a short session at the start of the data0.19 ms
PassedzoomViewport › keeps the anchor at the same place on the screen0.23 ms
PassedzoomViewport › zooms out to all the data at most0.15 ms
PassedpanViewport › moves the range and stops at the bounds0.2 ms
PassedfollowViewport › shows the present time near the right edge0.18 ms
PassedfollowViewport › starts at the earliest data while the session is shorter than the range0.12 ms
PassedfitViewport › shows all data0.16 ms
Passedtime and pixels › converts in both directions0.27 ms
Passedticks › uses steps of 1, 2 or 5 multiplied by a power of 100.23 ms
Passedticks › formats the ticks with the decimals of the step and a minus sign0.21 ms
Passedticks › puts a tick at each multiple of the step in the range0.27 ms
packages/site/src/results/model/model.test.ts25 passed
StatusTestDuration
Passedtests model › flattens every test with its suite and file2.8 ms
Passedtests model › finds the failed and the slowest tests2 ms
Passedtests model › filters by text, status and environment6.3 ms
Passedtests model › groups the matching tests by suite and file6.6 ms
Passedgroup status › shows a group with only skipped tests as skipped, and a group without tests as none, not as passed2 ms
Passedgroup status › gives the counts as text0.99 ms
Passedrun summary status › fails a run with a failed budget, also when all tests passed1.7 ms
Passedrun summary status › passes a run whose tests and budgets passed, also from an index without budget counts0.91 ms
Passedenvironment matrix › puts node first, then the engines0.24 ms
Passedenvironment matrix › has one cell for each package and environment1.2 ms
PasseddurationBins › counts in 1-2-5 bins and trims the empty ends0.92 ms
Passedcoverage model › calculates percentages, and undefined for nothing to cover0.56 ms
Passedcoverage model › gives rows for packages and files7.8 ms
Passedmutation model › sorts the files by score and sums the packages0.6 ms
Passedmutation model › puts the files without a score last, and gives them no bar0.29 ms
Passedmutation model › gives the commit and the time of each Stryker run, and its age in days0.26 ms
Passedbudgets model › puts the failed budgets first0.31 ms
Passedmeasurements model › groups measurements by metric5.6 ms
Passedmeasurements model › offers the measurement, the suite and each label as grouping keys0.76 ms
Passedmeasurements model › groups each family by a label that the family has, with browser as the fallback4.2 ms
Passedmeasurements model › joins the values of each group and summarizes them0.97 ms
Passedmeasurements model › folds the smallest groups into Other past the limit0.5 ms
PassedsortRows › sorts numbers and keeps missing values last in both directions0.5 ms
PassedsortRows › changes the direction for the same column0.17 ms
Passedrun trend › orders the runs and makes one row per status6.9 ms

lag: Main-thread responsiveness monitoring for browser apps, exported as OpenTelemetry metrics.

To change a page, edit its file in packages/site/content/. The writing style guide tells you how.

An AI model (Claude, from Anthropic) wrote most of the text and the code of this site and of the library, under the direction of the author. The tests and the STE linter examine them. The writing standard gives the reason for this note.