# The Computer Latency Calendar ⏳self.__wrap_b=(e,t,r)=>{let _=(r=r||document.querySelector([data-br="\${e}"])).parentElement,a=e=>r.style.maxWidth=e+"px";r.style.maxWidth="";let l,i=_.clientWidth,s=_.clientHeight,b=i/2-.25,n=i+.5;if(i){for(;b+1<n;)l=Math.round((b+n)/2),a(l),_.clientHeight===s?n=l:b=l;a(n*t+i*(1-t))}r.__wrap_o||(r.__wrap_o=new ResizeObserver((()=>{self.__wrap_b(0,+r.dataset.brr,r)}))).observe(_)},self.__wrap_b(":Rmjbas:",1)

Counting...

I recently saw this Gist and Interactive Page, so I thought it would be cool to update it for the 2020s. This can serve as a visualization of how fast a modern computer is.

## How to read this calendar​

Imagine 1 CPU cycle took 1 second. Compared to that, A modern 4.0 GHz CPU has a CPU cycle of 0.25 ns approx. That's 4,000,000,000 times difference. Now, imagine how that CPU would feel one second in real life.

ActionPhysical TimeCPU Time
1 CPU Cycle0.25ns1 second
L1 cache reference1ns4 seconds
Branch mispredict3ns12 seconds
L2 cache reference4ns16 seconds
Mutex lock17ns68 seconds
Send 2KB44ns2.93 minutes
Main memory reference100ns6.67 minutes
Compress 1KB2μs2.22 hours