Hacker News new | past | comments | ask | show | jobs | submit login

> Anyway, at the time I did these measurements, my 4.2 GHz kaby lake had the fastest single-threaded performance of any machine you could buy but had worse latency than a quick machine from the 70s (roughly 6x worse than an Apple 2), which seems a bit curious. To figure out where the latency comes from, I started measuring keyboard latency because that’s the first part of the pipeline. My plan was to look at the end-to-end pipeline and start at the beginning, ruling out keyboard latency as a real source of latency.

> But it turns out keyboard latency is significant! I was surprised to find that the median keyboard I tested has more latency than the entire end-to-end pipeline of the Apple 2. If this doesn’t immedately strike you as absurd, consider that an Apple 2 has 3500 transistors running at 1MHz and an Atmel employee estimates that the core used in a number of high-end keyboards today has 80k transistors running at 16MHz. That's 20x the transistors running at 16x the clock speed -- keyboards are often more powerful than entire computers from the 70s and 80s! And yet, the median keyboard today adds as much latency as the entire end-to-end pipeline as a fast machine from the 70s.

https://danluu.com/keyboard-latency/




> https://danluu.com/keyboard-latency/

This might be a bit off topic, but it was surprising to see a Logitech K120 have the same latency as a Unicomp Model M or other keyboards that are 5-10x more expensive than it.

No wonder I liked using it for work years ago: as far as membrane keyboards go, it's pretty dependable and decently nice to use, definitely so for it's price.


An USB-C charger has much more computing power than an Apollo Moonlander.

https://www.theverge.com/tldr/2020/2/11/21133119/usb-c-anker...


We'll have computronium soon if we carry on like this!


But it is seriously i/o deficient!


The measurement methodology seems a bit odd for the purposes of measuring the difference between old and new computers: if a large fraction of the latency measured is due to the key travel, that's latency which is also present in the older computers (AFAICT buckling spring has a lot more key travel before activation than the scissor-switch keys of the apple and most laptop keyboards) Surely for the purposes of the comparison you would want to look at switch activation-to-bus-activity latency.


Why have that kind of resource in a keyboard?

Some keyboards were made with 4 bit processors. I have yet to look one up and perhaps I should.

Pretty much any 8 bit CPU would be luxurious. And low latency due to the single task, respectful code density, and rapid state changes for interrupts.


That write up is fantastic but it's undated and probably from 2016/2017.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: