Updated

How browser tests measure time

Published by Juhan Lee

A web page cannot see your eyes or your finger. It knows two moments: when the browser finished preparing the frame that shows the signal, and when it received your press. Your reaction sits between those two moments, together with part of the delay your screen and your input device add. This guide explains how the reaction time test picks those two moments, which delays get mixed in and why the same person can get different numbers on different devices.

Input and display lag

Two pieces of hardware sit between the signal and your press. The display has to turn the frame the browser drew into light, and the input device has to tell the computer that you pressed.

On the display side, a new image can only appear when the screen refreshes. At 60 Hz that happens every 16.7 ms, so a signal drawn just after a refresh waits up to that long before it can be shown. The panel then needs its own time to change. Woods et al. (2015) put a light sensor called a photodiode on their lab monitor and measured 11.0 ms from the moment the computer drew a stimulus until the monitor lit it up. That delay pushes back the moment you can see the signal, so it ends up inside every reaction the computer times.

On the input side, the device has to sense the press and report it. The same lab took a mouse apart and closed its button with an electronic relay, and found that the press reached the computer 6.8 ms later on average. Touchscreens add more. Ng et al. (2014), citing earlier measurements, say commercial touch and stylus devices take 65–120 ms from contact to an updated screen, although only part of that trip falls between a signal and a press.

The browser’s part depends on which event a test listens to. A pointerdown event fires when a mouse button goes down or when a finger or stylus first touches the screen (MDN, pointerdown). A click event fires only after the mousedown and the mouseup have both happened (MDN, click), so a test that waits for click also counts the time your finger takes to let go. Woods et al. (2015), citing earlier work, note that hardware delays like these can add up to 100 ms to measured reaction times, which is one reason results from different setups are hard to compare.

How BlinkGauge times a round

When a round starts, the test sets a timer for a random wait of 2.0–5.0 s. When the timer fires, the test asks the browser for the next frame with requestAnimationFrame. In that callback it switches the area to its signal state and asks for one more frame. The second callback receives a timestamp that, according to MDN, marks the end time of the previous frame’s rendering. The test takes that previous frame to be the one that contained the signal. That timestamp is the start of your reaction, called t0 here, and the first callback’s timestamp is tA.

Your press is read from a pointerdown event (mouse, touch or pen) or a keydown event for Space or Enter, ignoring the automatic repeats of a held key. Each event carries an event.timeStamp, the time in milliseconds since the page’s time origin at which the event was created (MDN, timeStamp). The frame timestamp counts from the same origin, so subtracting t0 from the press time gives the reaction in milliseconds, rounded to a whole number.

A few checks protect each round. If the gap between tA and t0 is longer than 40 ms, something kept the browser from drawing the signal on time, and the round is quietly run again. A press before the signal or less than 100 ms after t0 counts as a false start, and a round with no press within 2,000 ms is repeated as too slow.

If you switch tabs during a round, it is cancelled. Browsers pause frame callbacks in background tabs (MDN, requestAnimationFrame), so the timing would be wrong.

The measured time therefore includes the display’s delay in showing that frame and the input device’s delay in reporting the press, on top of your own reaction.

Checking the timing with a camera

One way to check a browser test is to film it. A phone camera recording at 240 fps captures a frame every 4.17 ms. With the screen and the finger in one shot, you count the video frames from the moment the signal appears to the moment the finger lands. That count is your reaction as the camera sees it, from the light changing to the finger landing, with no device delay in it. The time the site reports minus the time on video is the offset for that round: the delay the screen, the input and the browser added together.

A check of this kind would use about 20 rounds on each of three kinds of device: a 60 Hz Android phone, an iPhone with Safari and a 144 Hz monitor with a wired mouse. A device passes if no offset is below -8.3 ms (two camera frames) and if the spread of offsets is no larger than one display frame plus two camera frames plus one input report interval. For a mouse that reports 125 times a second, that interval is 8 ms, so the limit works out to about 23 ms on the 144 Hz setup. For a touchscreen the report interval is taken as one display frame, about 42 ms in total on a 60 Hz phone. An offset outside those limits would point to a mistake in how the code reads its timestamps, and the fix would go in the code.

BlinkGauge has not published its own camera measurement yet. Until it does, this page gives only the published figures cited above: 11.0 ms of display delay and 6.8 ms of mouse delay in one lab setup, and 65–120 ms for the full touch-to-screen trip on commercial devices. The camera results will be added here, with the date, devices, browsers and inputs, once they exist.

Refresh rate, Safari and coarse timers

Frame callbacks generally run at the display’s refresh rate (MDN, requestAnimationFrame). A frame lasts 16.7 ms at 60 Hz, 8.3 ms at 120 Hz and 6.9 ms at 144 Hz, so a faster screen shows the signal sooner and makes the start of each round more precise.

A fast screen does not always mean a fast browser. As of early 2026, Safari on iPhones with 120 Hz screens normally redraws web pages at about 60 fps (Cross, 2026). The setting behind this is a feature flag that prefers page updates near 60 fps. On an iPhone it sits in the Settings app under Apps, Safari, Advanced and Feature Flags, and reports in WebKit’s bug tracker describe Safari reaching 120 Hz when the flag is turned off (WebKit Bugzilla, 2025). On those phones, expect timing closer to a 60 Hz screen unless you have turned the flag off. Low Power Mode can slow things further: in 2020 a WebKit engineer confirmed that iOS 14 limits frame callbacks to 30 fps in Low Power Mode on purpose (WebKit Bugzilla, 2020). This guide has not checked whether newer iOS versions still do this. On a laptop, Chrome’s Energy Saver limits visual effects on pages with animations once the battery reaches 20 percent (Chang, 2022).

Timers can be coarse as well. Browsers round event timestamps to make timing attacks and fingerprinting harder. According to MDN, Chrome rounds to 0.1 ms and Safari and Firefox to 1 ms by default, which changes a whole-millisecond result by about 1 ms at most. With Firefox’s privacy.resistFingerprinting preference turned on, the rounding grows to 16.667 ms or more (MDN, timeStamp). When the page loads, the test reads the clock repeatedly for a moment and looks for the smallest step. If that step is 16 ms or more, the test shows a notice that your times are approximate.

Reading your result with the delay in mind

A delay that stays the same from round to round shifts every round by the same amount. It makes your median slower, but it does not change the order of your rounds or the gap between two runs on the same device. That is why a comparison with yourself on one setup is fair even though the absolute number contains hardware time.

Between devices, the delays differ, by tens of milliseconds going by the figures above. When you compare medians, compare like with like: the same kind of screen, the same input and, on an iPhone, the same Safari setting. If you want your number as close to your own reaction as a browser allows, use a high refresh rate screen, a wired mouse or a keyboard, and switch off battery saver. How to improve your reaction time covers what you can change about yourself once the setup is fixed.

The guides below cover what counts as a good time and how to get faster, and below them are links to the other six tests.

Sources