📜 ⬆️ ⬇️

Numbers Every Programmer Should Know

To make it clear what to focus on when optimizing, a slide from the report “Creating software systems in Google and its lessons”:

Accessing L1 Cache0.5 ns
Error in predicting conditional transition5 ns
Accessing L2 Cache7 ns
Opening / closing mutex25 ns
Appeal to the main memory100 ns
Compress 1 Kb fast algorithm3,000 ns
Transfer 2Kb over the network at a speed of 1 Gb20,000 ns
Reading 1 MB sequentially from main memory250,000 ns
Transfer messages to / from the same data center500,000 ns
Random access to the hard disk10,000,000 ns
Reading 1 MB sequentially from a hard disk20,000,000 ns
Transfer package from California to the Netherlands and back150,000,000 ns

')

Source: https://habr.com/ru/post/108537/


All Articles