当前位置:网站首页>Common hardware delays
Common hardware delays
2022-08-05 02:18:00 【FatherOfCodingMan】
Latency Numbers Every Programmer Should Know · GitHub
Latency Comparison Numbers (~2012)
----------------------------------
Level 1 Cache Reference 0.5 NS
Branch prediction error Branch Mispredict 5 NS
Tier Class Cache Reference 7 NS 14X L1 Cache
Mutex Lokk/UNLOCK 25 NS
Main Memory Reference 100NS 20X L2 Cache, 200x L1 Cache
Compression Compress 1K Bytes with Zipp 3,000 NS 3 us
Send 1K Bytes Over 1 GBPS Network 10,000 NS 10 US
Read 4K Randomly FROMLY SSD* 150,000 NS 150 US ~ 1G MSD* 150 US ~ 1G MSD* 150 US ~ 1G MSD/sec SSD
Read 1 MB sequentially from memory 250,000 ns 250 us
Round trip within same datacenter 500,000 ns 500 us
Read 1 MB sequentially from SSD* 1,000,000 ns 1 ms ~1GB/sec SSD, 4X memory
Disk seek 10,000,000 ns 10,000 us 10 ms 20x datacenter roundtrip
Read 1 MB sequentially from disk 20,000,000 ns 20,000 us 20 ms 80x memory, 20X SSD
Send packet CA->Netherlands->CA 150,000,000 ns 150,000 us 150 ms
Notes
-----
1 ns = 10^-9 seconds
1 us = 10^-6 seconds = 1,000 ns
1 ms = 10^-3 seconds = 1,000us = 1,000,000 ns
Yearly data are shown below
Numbers Every Programmer Should Know By YearNumbers Every Programmer Should Know By YearNumbers Every Programmer Should Know By Year

Level 1 cache 1ns
Branch prediction failed 3ns
Second level cache 4ns
Mutex lock/unlock 17ns
Main memory 100ns
Zipp Compression 1k 2,000 ns
Public network sending 2k 44ns (the network has improved a lot, I don't know if there is any problem with the data, if the sending and receiving are added up)
Memory reads 1m data continuously for 3,000ns
SSD random read 16,000ns
边栏推荐
- 如何模拟后台API调用场景,很细!
- 散列表的查找(哈希表)
- CMS website construction process
- 2022 EdgeX中国挑战赛8月3日即将盛大开幕
- matlab绘制用颜色表示模值大小的箭头图
- Understand the recommendation system in one article: Recall 06: Two-tower model - model structure, training method, the recall model is a late fusion feature, and the sorting model is an early fusion
- Leetcode brushing questions - 22. Bracket generation
- CPDA|运营人如何从负基础学会数据分析(SQL)
- 回顾51单片机
- the mechanism of ideology
猜你喜欢

CPDA|运营人如何从负基础学会数据分析(SQL)

英特尔 XDC 2022 精彩回顾:共建开放生态,释放“基建”潜能

使用SuperMap iDesktopX数据迁移工具迁移地图文档和符号

DAY23:命令执行&代码执行漏洞

关于#sql shell#的问题,如何解决?

【OpenCV 图像处理2】:OpenCV 基础知识

Tree search (bintree)

Apache DolphinScheduler新一代分布式工作流任务调度平台实战-中

Intel XDC 2022 Wonderful Review: Build an Open Ecosystem and Unleash the Potential of "Infrastructure"

HOG特征学习笔记
随机推荐
How do programmers without objects spend the Chinese Valentine's Day
编译预处理等细节
使用OpenVINO实现飞桨版PGNet推理程序
刷爆朋友圈,Alibaba出品亿级并发设计速成笔记太香了
蚁剑高级模块开发
[parameters of PyQT5 binding functions]
Opening - Open a new .NET modern application development experience
继承关系下构造方法的访问特点
【genius_platform软件平台开发】第七十六讲:vs预处理器定义的牛逼写法!!!!(其他组牛逼conding人员告知这么配置来取消宏定义)
LPQ (local phase quantization) study notes
记录谷歌gn编译时碰到的一个错误“I could not find a “.gn“ file ...”
开篇-开启全新的.NET现代应用开发体验
Short domain name bypass and xss related knowledge
DAY23:命令执行&代码执行漏洞
Greenplum Database Fault Analysis - Can a Soft Connection Be Made to the Database Base Folder?
Utilities Understand the recommendation system in one article: Recall 06: Two-tower model - model structure, training method, the recall model is a late fusion feature, and the sorting model is an early fusion
C学生管理系统 头添加学生节点
MySQL学习
2022 EdgeX中国挑战赛8月3日即将盛大开幕