Mouse & pointer diagnostics

Input lag test

Measure how long a pointer event takes to reach this page’s handler and its next animation-frame callback. Compare repeat trials under different conditions.

Browser timing only. These readings do not measure physical switch, USB, wireless, display, or click-to-photon latency. A callback happens before a paint opportunity; it cannot confirm when pixels become visible.

Access & privacy: Start uses ordinary Pointer Events, the performance clock, and animation-frame scheduling. The pad reads pointer type, buttons, coordinates, and timestamps. No permission prompt or device connection is requested. This tool processes data in page memory and makes no network requests. Stop ends collection; Clear all erases trials. Downloads stay on your device.

5–120 whole seconds. Up to 5,000 samples per trial and six trials per session. Mouse mode includes trackpads; the browser cannot distinguish them.

JavaScript is required to run this test.0 samples · not running
Start, then press inside this areaUse the main mouse button at a comfortable, varied pace. Aim for at least 20 presses. Keyboard actions control the tool but never count as pointer measurements.

Presses are timed at button-down, not release. Escape stops a trial. Changing tabs or leaving the window also stops collection.

Trial results

No trial yet
Event → callback
Median · milliseconds
N/A
Event → callback
P95 · milliseconds
N/A
Accepted
Completed samples
0

Collect five valid samples for summary statistics and 20 for P95 and comparison.

All values in ms. Each row is calculated separately from paired raw samples.
Measured segmentLatestMedianMeanP95Min–maxIQR

No samples have been collected.

Event → callback distribution

Completed samples in fixed millisecond ranges. Bar length is the share of this trial.

Compare with a baseline

Finish a trial with at least 20 samples, set it as the baseline, then start another trial.

Keep mode, pointer source, browser, display, and input pace consistent. Change one condition, then repeat A/B/A. A difference is descriptive evidence, not a hardware ranking or a significance test.

Keep the evidence

Exports include all retained trials. CSV contains every accepted sample; JSON also includes exclusion counts and trial metadata. Values in exports retain the browser’s supplied precision, which is not a guarantee of accuracy.

Recent raw samples

Latest ten from the viewed trial. Download CSV for every sample. Timestamps are milliseconds since this page’s performance time origin.

SampleEvent timeHandler timeCallback timeEvent → callback

Read the timing correctly

  1. Main-thread dispatch delay (event-age proxy): handler-entry clock minus the browser’s event timestamp. It includes delivery and scheduling between those endpoints; it does not isolate main-thread work or measure a physical switch.
  2. Frame-callback wait: callback-entry clock minus handler-entry clock. This includes time until the next requested callback can run, including other page work.
  3. Event → callback: the sum for each sample. Rendering, compositing, scanout, and pixel response after the callback remain unmeasured.

Compare the median for typical behavior and P95 for the slower end. Larger dispatch delays suggest investigating page or system workload; larger callback waits suggest checking frame scheduling, browser load, and power settings. Repeat with background work closed. A browser cannot identify the faulty component from these numbers.

Calculation, exclusions & precision

Let E = event timestamp, H = performance.now() at handler entry, and F = performance.now() at callback entry. Dispatch = H − E; wait = F − H; total = F − E. The animation callback’s supplied frame timestamp is deliberately not used as its execution time.

Median averages the middle pair when needed. Mean is sum ÷ count. P95 is sorted sample number ceil(0.95 × count). IQR is Q3 − Q1, using linear interpolation at positions (count − 1) × 0.75 and (count − 1) × 0.25. Summary statistics require five samples; P95 and comparisons require 20. Those are display thresholds, not guarantees of statistical confidence.

Displayed durations round to 0.1 ms; a positive value below 0.1 ms reads “<0.1”. A displayed zero can reflect timer rounding. Browser privacy settings can reduce clock resolution. Equal timestamps are allowed; negative durations are rejected, never clamped to zero. Raw exports keep the values actually available to the page.

Only trusted primary pointer events of the selected source count. Press mode accepts only button 0 with the main button down. Movement uses delivered pointermove events, without predicted or coalesced-event expansion. Multiple events may share one callback. Movement samples are correlated and browser batching affects the distribution; neither sample count nor event rate establishes hardware polling rate.

Invalid, nonnumeric, zero, epoch-based, future, backwards, or pre-trial event timestamps are excluded. A sample must remain visible and focused through its callback. Pending samples are discarded on stop, timeout, or loss of focus. At most 512 events can await one callback and 5,000 samples can complete per trial. Exclusions are counted and disclosed; valid slow samples are retained.

Visual comparison & external measurement

In movement mode, move in smooth circles and compare the native mouse cursor with the outlined page marker. The marker uses the latest delivered pointer position at an animation callback. There is no added delay. The gap depends on speed, event batching, browser scheduling, and drawing; it cannot be converted to hardware latency. Touch and pen may have no native cursor to compare.

The marker is hidden when reduced motion is requested. Numerical collection is unchanged. For a physical input-to-photon measurement, use a validated input trigger and light sensor, or high-speed recording of a clearly defined input action and screen response. Record the camera frame rate and endpoint uncertainty; finger motion alone does not identify electrical switch closure.

Browser support, access & troubleshooting

This tool requires Pointer Events, performance.now(), and requestAnimationFrame(). It checks those capabilities before enabling Start. These APIs do not need a secure context or permission grant. Start is an explicit action; no capture begins on load. No HID, USB, camera, microphone, pointer lock, device enumeration, or clipboard API is used.

If no events arrive, check the selected pointer source, press or move inside the pad, and try a current browser. A disconnected mouse and a mouse that is simply idle look the same here: ordinary pointer events expose no device-connection or permission status. There is no grant to revoke. Stop, Clear all, leaving the tab, or closing the page stops measurement. Clear all or reloading erases results.

Export uses locally created files only. If a download is blocked, use the selectable text report or print. This fragment sends no measurements or device information anywhere; site-wide page analytics, if present, are managed separately by the host page.