Mouse Input Lag Test: Measure Latency in Your Browser

Measure mouse input lag from button press to browser event. Check click latency, polling rate, and dropout markers live. No software required.

ZERO UPLOAD · ALL LOCAL
  1. Connect your mouse to a direct motherboard USB port — avoid hubs for accurate readings.
  2. Click "Start Session" and move your mouse continuously inside the tracking zone.
  3. Leaving the tracking zone pauses the measurement; re-entering resumes it automatically.
  4. Read the live metrics: Current Hz, Avg Hz, Max Hz, and Longest Gap.
  5. Click "Stop" to end the session and view the final results card.
  6. Red vertical lines indicate polling dropouts (below 125 Hz) — frequent red lines suggest USB contention or power management issues.

What to look for

  • 0.5 to 2 ms
  • 3 to 8 ms
  • above 10 ms

Move your mouse continuously inside the tracking zone to measure your mouse's polling rate. The tool calculates Hz from the time between each PointerEvent, then displays a live rolling chart of stability over time.

Works with any USB or wireless mouse. For best results, use a direct USB port — no hubs. A 1000 Hz mouse should read 900–1050 Hz; a 4000 Hz mouse should read 3600–4200 Hz.

Move your mouse continuously inside this area
Leaving this area will pause the measurement

Current Hz
Avg Hz
Max Hz
Longest Gap

Session Results

Avg Hz
Max Hz
Longest Gap
Samples

Red lines = polling dropout (<125 Hz). Move mouse continuously for an accurate reading.

Mouse Input Lag Test: Measure Latency in Your Browser

In a browser measurement, mouse input lag is the time between a physical action, whether moving or clicking, and the operating system registering that action. It includes USB controller scheduling, OS input stack processing, and PointerEvent delivery time. This tool measures all of these combined by recording PointerEvent timestamps and comparing consecutive event intervals.1

The test captures both movement polling rate (Hz) and click latency (ms from press to event). Move your mouse inside the tracking zone to see the Hz chart. Click within the zone to log individual click-to-event latency values for each button press.2

What input lag includes in a browser measurement

Input lag in this context is not a single number from one source. It is a stack. At the hardware level, the mouse firmware queues reports at the configured polling rate. The USB controller schedules those reports across its polling window, with the polling interval determined by endpoint configuration and USB speed.3 The OS input stack processes the reports, applies any acceleration or smoothing filters, and queues them for application delivery; Windows pointer acceleration is also called ballistics and is applied to standard mouse movement data.4 Finally, the browser receives PointerEvents and calls your event listener. Each stage adds a fixed or variable delay. The total you see in this test is the sum of all stages, not the raw hardware response time.

Where latency spikes usually come from

At the application level, this tool records a timestamp with each PointerEvent and computes the interval since the previous one. Because all upstream stages complete before the event arrives, the measurement captures the full pipeline end to end rather than any single component in isolation. Dedicated hardware latency testers measure only switch actuation and produce lower absolute numbers; the gap between hardware testers and this tool represents the USB, OS, and browser overhead that exists in every real usage scenario.

Why browser results include more than the mouse

A browser test cannot bypass the OS input stack, so it measures what your setup actually delivers to the page. That makes the number more relevant for browser-based use, even though it will be higher than a bench tester reading. Use it to compare configurations on the same machine rather than to compare absolute numbers across different tools. The extra milliseconds captured in this test are not measurement error; they represent the real USB scheduling, OS input processing, and browser event delivery overhead that every click and movement actually passes through before reaching your game or application.

Running the same measurement before and after a single change is the disciplined way to use this tool. If disabling mouse acceleration drops your click log by 1 ms, you have proved the cause rather than assumed it. Stacking several changes at once hides which one mattered and makes the result hard to repeat. Treat each run as one variable so the next person can follow your exact steps.

Polling rate vs click latency: two measurements, two purposes

This tool shows two types of measurements. The Hz chart measures movement polling rate: how frequently the mouse reports position changes per second.3 The click latency log measures button response: the time from a physical button press to the browser receiving a mousedown event. These are related but distinct. A high polling rate reduces movement latency. Fast switch registration reduces click latency. A mouse can have excellent movement polling and slow click response, or low polling rate and fast click response. Checking both gives a complete picture of input responsiveness.

Reading both measurements at the same time

The two views run simultaneously. Move your mouse continuously while clicking at intervals inside the tracking zone: the Hz chart updates from movement events and the click log updates from button events. Running both together shows whether high polling rate coexists with low click latency, or whether USB contention hurting Hz also elevates click latency.5 A mouse with excellent polling rate but consistently elevated click latency usually has a debounce setting that can be reduced in companion software.

Reducing input lag in practice

Four changes produce the largest reductions in measured input lag. Connect your mouse to a direct rear motherboard USB-A port to reduce hub scheduling contention. Disable USB selective suspend in Windows Device Manager, since USB power management can pause an idle device and delay reports until it resumes.6 Increase your mouse's polling rate setting to its maximum in companion software. Finally, disable mouse acceleration ("enhanced pointer precision" on Windows) if you want pointer movement to avoid Windows ballistics.4

Because each of the four steps targets a different pipeline stage, applying them in sequence rather than all at once helps identify which stage was responsible for the improvement. If moving to a rear USB-A port resolves your latency, hub scheduling was the cause. If disabling USB selective suspend fixes the polling rate but click latency stays elevated, the debounce setting needs attention. Working through the steps in order gives you a clear baseline and avoids attributing an improvement to the wrong source.

When to use this

Use this test when diagnosing sluggish or inconsistent mouse response, when comparing two mice side by side, or when checking how mouse input lag is measured after a hardware change like a new cable, port, or firmware update.

Examples

Comparing wired vs wireless latency on the same mouse

Run the test via USB cable, note the click latency average and Hz reading. Reconnect wirelessly via `2.4 GHz` and repeat. Differences within 1–2 ms and 1–2 Hz are within normal measurement variation.

Checking latency before and after a firmware update

Record your click latency average and Hz reading before updating. Apply the firmware, then run the test again. A well-designed update should not increase latency.

Sources
  1. 1.

    WHATWG, "DOM Standard," dom.spec.whatwg.org, May 2026. https://dom.spec.whatwg.org/#dom-event-timestamp

  2. 2.

    Mozilla Developer Network, "Element: mousedown event," developer.mozilla.org, September 2025. https://developer.mozilla.org/en-US/docs/Web/API/Element/mousedown_event

  3. 3.

    Microsoft Learn, "_USB_ENDPOINT_DESCRIPTOR (usbspec.h)," learn.microsoft.com, January 2021. https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/usbspec/ns-usbspec-_usb_endpoint_descriptor

  4. 4.

    Microsoft Learn, "Taking Advantage of High-Definition Mouse Movement," learn.microsoft.com, May 2023. https://learn.microsoft.com/en-us/windows/win32/dxtecharts/taking-advantage-of-high-dpi-mouse-movement

  5. 5.

    Davis Ranney, Yufei Wang, A. Adam Ding, and Yunsi Fei, "USBSnoop - Revealing Device Activities via USB Congestions," arXiv, 2025. https://arxiv.org/html/2503.03980v2

  6. 6.

    Alan Stern, "Power Management for USB," kernel.org, February 2014. https://www.kernel.org/doc/html/latest/driver-api/usb/power-management.html

FAQ