当前位置:网站首页>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
边栏推荐
Utilities - 【OpenCV 图像处理2】:OpenCV 基础知识
- Programmer's list of sheep counting when insomnia | Daily anecdote
- sql语句多字段多个值如何进行排序
- Residential water problems
- Greenplum数据库故障分析——版本升级后gpstart -a为何返回失败
- Dotnet 6 Why does the network request not follow the change of the system network proxy and dynamically switch the proxy?
- <开发>实用工具
- 《.NET物联网从零开始》系列
- MySQL3
猜你喜欢

【解密】OpenSea免费创造的NFT都没上链竟能出现在我的钱包里?

常见的硬件延迟

KingbaseES V8 GIS data migration solution (2. Introduction to the capabilities of Kingbase GIS)

没有对象的程序员如何过七夕

LPQ (local phase quantization) study notes

01 【前言 基础使用 核心概念】

sql语句多字段多个值如何进行排序

高数_复习_第1章:函数、极限、连续

优化Feed流遭遇拦路虎,是谁帮百度打破了“内存墙”?

Simple implementation of YOLOv7 pre-training model deployment based on OpenVINO toolkit
随机推荐
使用OpenVINO实现飞桨版PGNet推理程序
1349. 参加考试的最大学生数 状态压缩
LPQ(局部相位量化)学习笔记
Optimizing the feed flow encountered obstacles, who helped Baidu break the "memory wall"?
ExcelPatternTool: Excel table-database mutual import tool
进程在用户态和内核态的区别[独家解析]
KingbaseES V8 GIS data migration solution (2. Introduction to the capabilities of Kingbase GIS)
std::string::find 返回值的坑
select 标签自定义样式
"Dilili, wait for the lights, wait for the lights", the prompt sound for safe production in the factory
【解密】OpenSea免费创造的NFT都没上链竟能出现在我的钱包里?
How to create an rpm package
高数_复习_第1章:函数、极限、连续
Dotnet 6 Why does the network request not follow the change of the system network proxy and dynamically switch the proxy?
ARM Mailbox
STM32使用stm32cubemx LL库系列教程
亚马逊云科技 + 英特尔 + 中科创达为行业客户构建 AIoT 平台
如何逐步执行数据风险评估
C语言日记 9 if的3种语句
nodeJs--封装路由