Keyboard & Mouse · Browser timing
Keyboard latency test
Measure how long a keyboard event waits for this page, then for its next animation callback. Compare repeated trials and inspect slow samples.
Access & privacy: Start listens to ordinary keyboard events only inside the focused test area: key identifiers, repeat/modifier flags and timestamps. Performance timing and animation scheduling need no browser permission or secure context. No HID, USB, Bluetooth, keyboard lock or clipboard access is requested. This tool processes data in memory, makes no external requests and sends no key or device information. Stop, Escape or leaving the test area ends capture; Clear all erases results. Downloads contain key codes and timings. The site shell may provide its own analytics.
Ready. Choose Start trial, then tap a key at a relaxed pace.
Release each key between taps. Three warm-up taps come first. Escape stops; Tab leaves this area and stops capture.
No key events measured.0 / 50 measured taps · 3 warm-up taps before measurement
Run at least three trials under the same conditions. Change one thing at a time; these results cannot rank keyboard hardware.
| Measurement | Count | Median | Mean | P95 | Min | Max | SD | IQR |
|---|
Dispatch delay distribution
Counts by event → handler delay. Bins are descriptive, not performance grades.
Sample checks
Exclusions will appear here with a reason. No synthetic test data is used.
Compare trials
Each stopped or completed trial with samples is kept here. Up to six trials stay in this tab; the oldest is replaced. Select a baseline for comparison.
No baseline selected.
| Trial | Taps | Dispatch median (ms) | P95 (ms) | Frame median (ms) | Baseline |
|---|---|---|---|---|---|
| No trials recorded. | |||||
Inspect samples and per-key results
Latest 12 accepted taps, newest first. CSV and JSON include every retained sample. “Pending” and “Unavailable” are not zero.
| Tap | Code | Event time (ms) | Dispatch (ms) | To callback (ms) | Key interval (ms) |
|---|
| Code | Taps | Median (ms) | Min (ms) | Max (ms) |
|---|
Keep your results
Exports contain all retained trials and the current trial, with method and exclusion counts. Select summary, then use your browser’s Copy command. No clipboard permission is requested.
Method, calculations and limits
- Dispatch delay: the first
performance.now()reading in the keydown handler minusevent.timeStamp. This begins at the browser’s event timestamp, not physical switch closure. - Event → frame callback: the clock read at entry to the first requested animation callback minus the event timestamp. Handler → callback subtracts the handler reading instead. Callbacks precede possible rendering; neither measures pixels, GPU completion or monitor latency. This page’s own processing contributes to the result.
- Key interval: consecutive accepted keydown timestamps, after warm-up, in the same focused trial. This mainly reflects tapping pace. Auto-repeat and key intervals are never converted to polling or scan rates.
- Statistics: median averages the two middle values for even counts; mean is sum ÷ count; P95 is sorted value at rank ceil(0.95 × count), shown at 20+ samples. SD uses n − 1 (at least two samples). IQR uses linearly interpolated P75 − P25. Valid slow samples are retained.
- Clock validation: only finite positive page-relative timestamps within this capture segment are accepted. Future, backward, epoch-based or over-60-second-old events are rejected, never clamped. A frame wait over two seconds is unavailable. Equal timestamps and zero delays may result from privacy rounding; decimal formatting is not an accuracy guarantee. The smallest observed positive clock step is only an observation, not calibrated resolution.
- Exclusions: three valid warm-ups; auto-repeat or duplicate downs; modifiers/shortcuts; composition; keys outside the chosen set; synthetic events; invalid timestamps. If a release is lost, the same key is ignored until its next release. All exclusion counts are visible.
Get a repeatable result / troubleshoot missing keys
Use the same browser, computer, power mode and tapping pace for at least three trials. Close busy tabs, keep this tab visible and try again. A high dispatch tail suggests scheduling delays during this run; it does not isolate their cause. Large frame waits can reflect browser scheduling and refresh cadence.
Use an attached physical keyboard. Phone and tablet on-screen keyboards may not send usable keydown events; this page does not open a text keyboard for the test. If no events arrive, reconnect the keyboard, press Start and ensure the test area is focused. The browser cannot identify which keyboard sent an event or reliably detect disconnection through ordinary keyboard events.
Use letters, digits, Space or arrows without modifiers. Browser/OS shortcuts and assistive technology may intercept keys. Screen-reader users may need their pass-through/forms mode for the capture area. Tab always leaves; Escape stops. No permission grant needs revocation because this tool requests none. If timing APIs are unavailable, try an updated browser. Missing animation scheduling disables only frame timing.