当前位置:网站首页>常见的硬件延迟
常见的硬件延迟
2022-08-05 02:09:00 【FatherOfCodingMan】
Latency Numbers Every Programmer Should Know · GitHub
Latency Comparison Numbers (~2012)
----------------------------------
一级缓存 L1 cache reference 0.5 ns
分支预测失误 Branch mispredict 5 ns
二级缓存L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
主内存Main memory reference 100 ns 20x L2 cache, 200x L1 cache
压缩 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 from SSD* 150,000 ns 150 us ~1GB/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,000 us = 1,000,000 ns
下面的有每年的数据
Numbers Every Programmer Should Know By YearNumbers Every Programmer Should Know By YearNumbers Every Programmer Should Know By Year
一级缓存 1ns
分支预测失败 3ns
二级缓存 4ns
Mutex lock/unlock 17ns
主内存 100ns
Zipp 压缩1k 2,000 ns
公共网络发2k 44ns (网络提升很大,不知数据有没问题,发收加起来的话呢)
内存连续读1m 数据 3,000ns
SSD 随机读 16,000ns
边栏推荐
- The difference between a process in user mode and kernel mode [exclusive analysis]
- 高数_复习_第1章:函数、极限、连续
- 如何模拟后台API调用场景,很细!
- nodeJs--封装路由
- 迁移学习——Joint Geometrical and Statistical Alignment for Visual Domain Adaptation
- ".NET IoT from scratch" series
- source program in assembly language
- Greenplum Database Fault Analysis - Can a Soft Connection Be Made to the Database Base Folder?
- 编译预处理等细节
- 如何创建rpm包
猜你喜欢
为什么他们选择和AI恋爱?
sql语句多字段多个值如何进行排序
没有对象的程序员如何过七夕
【Endnote】Word插入自定义形式的Endnote文献格式
基于OpenVINO工具套件简单实现YOLOv7预训练模型的部署
Apache DolphinScheduler新一代分布式工作流任务调度平台实战-中
(17) 51 MCU - AD/DA conversion
How do programmers without objects spend the Chinese Valentine's Day
1349. Maximum number of students taking the exam Status Compression
【MySQL series】- Does LIKE query start with % will make the index invalid?
随机推荐
Live playback including PPT download | Build Online Deep Learning based on Flink & DeepRec
迅睿cms网站搬迁换了服务器后网站不能正常显示
【日常训练】1403. 非递增顺序的最小子序列
Leetcode刷题——22. 括号生成
A new technical director, who calls DDD a senior, is convinced
力扣-二叉树的最大的深度
【PyQT5 绑定函数的传参】
【MySQL series】- Does LIKE query start with % will make the index invalid?
leetcode-对称二叉树
iNFTnews | 对体育行业和球迷来说,NFT可以带来什么?
Object.defineProperty实时监听数据变化并更新页面
使用SuperMap iDesktopX数据迁移工具迁移ArcGIS数据
HOG feature study notes
ExcelPatternTool: Excel表格-数据库互导工具
JZ搜索引擎solr研究-从数据库创建索引
MySQL3
Greenplum数据库故障分析——能对数据库base文件夹进行软连接嘛?
IJCAI2022 | DictBert:采用对比学习的字典描述知识增强的预训练语言模型
.Net C# 控制台 使用 Win32 API 创建一个窗口
[parameters of PyQT5 binding functions]