Przejdź do treści
HZBench
Wszystkie artykuły

Analizy sprzętu

What a browser reaction-time test really measures: you plus your hardware

Every reaction test measures a chain: the screen showing the signal, your response, and the input reaching the page. Only part of that is you.

Autor Redakcja HZBenchOpublikowano:

Ten artykuł jest dostępny tylko po angielsku.

A reaction test notes the time when it triggers a signal and the time when your click or key press reaches the page, and subtracts. Both come from the browser's high-resolution clock; input events, for example, carry a timestamp for when they were created [1]. The difference is your result, but several things besides your reflexes sit inside it.

The chain inside one result

LinkWhat it addsExample (arithmetic, not a measurement)
Waiting for the next frameA flash can only appear when the screen refreshesUp to 16.7 ms at 60 Hz, up to 6.9 ms at 144 Hz
Display processingThe monitor's own processing before light changesVaries by model and mode
YouSeeing or hearing, deciding, movingThe part you want to measure
Input reportingThe device sends its state at its polling intervalUp to 8 ms at 125 Hz, up to 1 ms at 1000 Hz
Browser and systemProcessing the input eventUsually small, larger under heavy load

Because several of these links are "up to" delays, two identical attempts can differ by several milliseconds without any change in you. That is why a single attempt is not a meaningful result; averages over several rounds are.

Sight versus sound

HZBench mixes rounds with a flash and rounds with a sound and reports both averages and the difference between them. The sound path has its own delays in the audio output. With wireless headphones the added delay depends on the device, the codec and the conditions, so it can differ a lot from one setup to another. The comparison is therefore most useful on the same setup, for example the same headphones used wired and wireless, measured the same way.

False starts and practice

Clicking before the signal appears is not a fast reaction; HZBench marks it as too soon instead of recording it. Waiting times are random so you cannot learn the rhythm. Your first few attempts are often slower while you get used to the test, and tiredness slows responses later, so compare sessions done at a similar time and after a short warm-up. Sit the same way each time, with the same hand on the same mouse button or key.

How to compare fairly

  1. Use the same device, screen, browser and input every time.
  2. Check that the screen is running at its full refresh rate before testing.
  3. Do several rounds and compare averages, not best single attempts.
  4. Change one thing at a time: the monitor mode, the mouse, wired versus Bluetooth audio.

The result includes your display, audio, input and browser, as the test itself states. HZBench does not compare you with population averages it has not measured.

Źródła

  1. [1] Event: timeStamp property, MDN Web Docs (dostęp )

Korekty

Jak piszemy i poprawiamy artykułyZgłoś błąd