当前位置:网站首页>常见的硬件延迟
常见的硬件延迟
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
边栏推荐
- JZ搜索引擎solr研究-从数据库创建索引
- "Configuration" is a double-edged sword, it will take you to understand various configuration methods
- [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?
- LPQ(局部相位量化)学习笔记
- 第09章 性能分析工具的使用【2.索引及调优篇】【MySQL高级】
- Greenplum Database Fault Analysis - Why Does gpstart -a Return Failure After Version Upgrade?
Utilities - 高数_复习_第1章:函数、极限、连续
- hypervisor相关的知识点
- [Word] #() error occurs after Word formula is exported to PDF
猜你喜欢
浅谈数据安全治理与隐私计算
Tree search (bintree)
多线程(2)
Jincang database KingbaseES V8 GIS data migration solution (3. Data migration based on ArcGIS platform to KES)
“嘀哩哩,等灯等灯”,工厂安全生产的提示音
迅睿cms网站搬迁换了服务器后网站不能正常显示
迁移学习——Distant Domain Transfer Learning
[Unity Entry Plan] Handling of Occlusion Problems in 2D Games & Pseudo Perspective
2022 EdgeX中国挑战赛8月3日即将盛大开幕
汇编语言之源程序
随机推荐
SuperMap支持的国产环境汇总
Programmer's list of sheep counting when insomnia | Daily anecdote
刷爆朋友圈,Alibaba出品亿级并发设计速成笔记太香了
JZ搜索引擎solr研究-从数据库创建索引
How to create an rpm package
LPQ(局部相位量化)学习笔记
Method Overriding and Object Class
MySQL学习
HOG feature study notes
基于OpenVINO工具套件简单实现YOLOv7预训练模型的部署
Apache DolphinScheduler新一代分布式工作流任务调度平台实战-中
【PyQT5 绑定函数的传参】
ExcelPatternTool: Excel table-database mutual import tool
leetcode-另一棵树的子树
编译预处理等细节
力扣-二叉树的最大的深度
.Net C# Console Create a window using Win32 API
Exploding the circle of friends, Alibaba produced billion-level concurrent design quick notes are too fragrant
Flink 1.15.1 集群搭建(StandaloneSession)
sql语句多字段多个值如何进行排序