RunTheTests
/

Spacebar Counter

Count spacebar presses over a timed window, with auto-repeat filtered out.

Press Start, then use the spacebar

How this test works

You strike the spacebar as many times as you can inside a fixed window. The one thing that makes this honest is that holding the key down does not work. Keeping a key pressed produces a continuous stream of keydown events at the operating system's repeat rate — typically around thirty a second — and a counter that accepts them measures how long you leaned on the bar rather than how often you struck it. KeyboardEvent carries a repeat flag for exactly this purpose, so those events are separated out, discarded from the score, and reported alongside it so the difference is visible rather than silent.

What the results mean

Presses
Distinct key strikes. Auto-repeat events are excluded before this is counted.
Presses per second
The counted presses divided by the window length.
Auto-repeat discarded
Events generated by holding the key rather than striking it. A large number here means the key was held.
Window
Longer windows give lower rates. Compare like with like.

Common problems and fixes

I held the spacebar down and scored nothing
That is the design. Held keys produce auto-repeat events, which are identified and discarded — only distinct strikes count.
The page scrolls while I test
The spacebar scrolls a page by default; this tool suppresses that while a run is active. If it still scrolls, the run has ended.
My count is lower than I expected
Very fast alternating strikes can outpace the keyboard's own scan rate, particularly on membrane boards. The keyboard is the limit there rather than the counter.

Frequently asked questions

Why does holding the spacebar not count?

Because those are auto-repeat events, not presses. The operating system generates them at a fixed rate to make held keys repeat in text fields, and counting them would measure how long you held rather than how fast you struck.

What is a good spacebar count?

Most people manage six to nine strikes a second with one thumb. Alternating thumbs or using several fingers goes higher, which is why the technique matters more than the keyboard.

Does this wear out the spacebar?

Key switches are rated for a finite number of actuations, usually in the tens of millions. A few timed runs is negligible; the spacebar is generally the most-used key on the board anyway.

More in Device