There are a couple of infographics out there for “Latency Numbers Every Programmer Should Know”: 1, 2, 3.

These are great, but I wondered: how up to date are they?

Sure, they are meant to be general ballpark numbers, but there can be a huge difference between my five year old overheating laptop and a cutting edge server.

What are the latency numbers for my computer in front of me?

Latency Numbers - LIVE!

I wrote a terminal program that attempts to actually benchmark the computer in front of you, to give you the LIVE latency numbers that you should know:

latency-numbers Screenshot

Benchmarks are hard to get right, but at least with this tool we can run it on any computer at any point in time to get the LIVE numbers, instead of looking at an infographic from 2015.

CPUs change, memory technology changes, disks change. The speed of light is pretty constant.

Run It Yourself

Run it for yourself on your own local machine to try to get empirical validation for your intuition.

Check out the code on Codeberg:

git clone https://codeberg.org/solarkennedy/latency-numbers-live.git
make
....

Comment via email