当前位置:网站首页>常见的硬件延迟
常见的硬件延迟
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
边栏推荐
- 网络安全与元宇宙:找出薄弱环节
- "Configuration" is a double-edged sword, it will take you to understand various configuration methods
- Domain Driven Design - MDD
- 如何看待自己的羞愧感
- Method Overriding and Object Class
- Fragment visibility judgment
- 使用SuperMap iDesktopX数据迁移工具迁移地图文档和符号
- SuperMap iDesktop.Net之布尔运算求交——修复含拓扑错误复杂模型
- JZ搜索引擎solr研究-从数据库创建索引
- PHP技能评测
猜你喜欢
2022了你还不会『低代码』?数据科学也能玩转Low-Code啦!
HOG feature study notes
[How to smash wool according to the music the couple listens to during the Qixi Festival] Does the background music affect the couple's choice of wine?
[Machine Learning] 21-day Challenge Study Notes (2)
iNFTnews | 对体育行业和球迷来说,NFT可以带来什么?
迁移学习——Distant Domain Transfer Learning
.Net C# 控制台 使用 Win32 API 创建一个窗口
使用OpenVINO实现飞桨版PGNet推理程序
关于#sql shell#的问题,如何解决?
".NET IoT from scratch" series
随机推荐
Jincang database KingbaseES V8 GIS data migration solution (3. Data migration based on ArcGIS platform to KES)
迅睿cms网站搬迁换了服务器后网站不能正常显示
ExcelPatternTool: Excel表格-数据库互导工具
【C语言】详解栈和队列(定义、销毁、数据的操作)
超越YOLO5-Face | YOLO-FaceV2正式开源Trick+学术点拉满
Transfer Learning - Joint Geometrical and Statistical Alignment for Visual Domain Adaptation
使用OpenVINO实现飞桨版PGNet推理程序
C学生管理系统 据学号查找学生节点
2022了你还不会『低代码』?数据科学也能玩转Low-Code啦!
为什么他们选择和AI恋爱?
【genius_platform软件平台开发】第七十六讲:vs预处理器定义的牛逼写法!!!!(其他组牛逼conding人员告知这么配置来取消宏定义)
Greenplum Database Fault Analysis - Why Does gpstart -a Return Failure After Version Upgrade?
Advanced Numbers_Review_Chapter 1: Functions, Limits, Continuity
如何看待自己的羞愧感
".NET IoT from scratch" series
"Dilili, wait for the lights, wait for the lights", the prompt sound for safe production in the factory
1349. Maximum number of students taking the exam Status Compression
Simple implementation of YOLOv7 pre-training model deployment based on OpenVINO toolkit
source program in assembly language
金仓数据库 KingbaseES V8 GIS数据迁移方案(3. 基于ArcGIS平台的数据迁移到KES)