当前位置:网站首页>常见的硬件延迟
常见的硬件延迟
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
边栏推荐
- Flink 1.15.1 集群搭建(StandaloneSession)
- .Net C# Console Create a window using Win32 API
- AI+小核酸药物|Eleven完成2200万美元种子轮融资
- C language basics -- pointers
- 【存储】曙光存储DS800-G35 ISCSI各映射LUN给服务器
- Methods commonly used interface automation test framework postman tests
- Are testing jobs so hard to find?I am 32 this year and I have been unemployed for 2 months. What should an older test engineer do next to support his family?
- 如何逐步执行数据风险评估
- Transfer Learning - Distant Domain Transfer Learning
- HOG特征学习笔记
猜你喜欢

刷爆朋友圈,Alibaba出品亿级并发设计速成笔记太香了

.Net C# Console Create a window using Win32 API

为什么他们选择和AI恋爱?

【MySQL系列】- LIKE查询 以%开头一定会让索引失效吗

J9数字货币论:web3的创作者经济是什么?

【Unity入门计划】2D游戏中遮挡问题的处理方法&伪透视
![[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?](/img/eb/535ffaff9b535fbc73a4d56aab0b3a.png)
[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?

Utilities 
第09章 性能分析工具的使用【2.索引及调优篇】【MySQL高级】

KingbaseES V8 GIS数据迁移方案(2. Kingbase GIS能力介绍)
随机推荐
Residential water problems
oracle将restful接口封装到视图中
Fragment visibility judgment
J9数字货币论:web3的创作者经济是什么?
CMS建站流程
【存储】曙光存储DS800-G35 ISCSI各映射LUN给服务器
Amazon Cloud Technology joins hands with Thundersoft to build an AIoT platform for industry customers
网络安全与元宇宙:找出薄弱环节
【MySQL系列】- LIKE查询 以%开头一定会让索引失效吗
迁移学习——Joint Geometrical and Statistical Alignment for Visual Domain Adaptation
(17) 51 MCU - AD/DA conversion
KingbaseES V8 GIS data migration solution (2. Introduction to the capabilities of Kingbase GIS)
Pisanix v0.2.0 发布|新增动态读写分离支持
Opening - Open a new .NET modern application development experience
使用SuperMap iDesktopX数据迁移工具迁移地图文档和符号
.Net C# 控制台 使用 Win32 API 创建一个窗口
Flink 1.15.1 集群搭建(StandaloneSession)
进程在用户态和内核态的区别[独家解析]
Simple implementation of YOLOv7 pre-training model deployment based on OpenVINO toolkit
ExcelPatternTool: Excel table-database mutual import tool