当前位置:网站首页>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
边栏推荐
- 【genius_platform软件平台开发】第七十六讲:vs预处理器定义的牛逼写法!!!!(其他组牛逼conding人员告知这么配置来取消宏定义)
- 一文看懂推荐系统:召回06:双塔模型——模型结构、训练方法,召回模型是后期融合特征,排序模型是前期融合特征
- 《.NET物联网从零开始》系列
- EBS利用虚拟列及hint 提示优化sql案例一则
- 第09章 性能分析工具的使用【2.索引及调优篇】【MySQL高级】
- 如何基于OpenVINO POT工具简单实现对模型的量化压缩
- LeetCode使用最小花费爬楼梯----dp问题
- STM32使用stm32cubemx LL库系列教程
- LPQ (local phase quantization) study notes
- 亚马逊云科技携手中科创达为行业客户构建AIoT平台
猜你喜欢
随机推荐
后期学习计划
从零到一快速学会三子棋
LeetCode uses the minimum cost to climb the stairs----dp problem
亚马逊云科技携手中科创达为行业客户构建AIoT平台
matlab绘制用颜色表示模值大小的箭头图
领域驱动设计——MDD
How to deal with your own shame
dotnet 6 为什么网络请求不跟随系统网络代理变化而动态切换代理
意识形态的机制
优化Feed流遭遇拦路虎,是谁帮百度打破了“内存墙”?
C语言实现简单猜数字游戏
Fragment visibility judgment
刷爆朋友圈,Alibaba出品亿级并发设计速成笔记太香了
C语言基础知识 -- 指针
Flink 1.15.1 集群搭建(StandaloneSession)
Jincang database KingbaseES V8 GIS data migration solution (3. Data migration based on ArcGIS platform to KES)
MySQL学习
英特尔 XDC 2022 精彩回顾:共建开放生态,释放“基建”潜能
Simple implementation of YOLOv7 pre-training model deployment based on OpenVINO toolkit
Dotnet 6 Why does the network request not follow the change of the system network proxy and dynamically switch the proxy?