当前位置:网站首页>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
边栏推荐
- sql语句多字段多个值如何进行排序
- Transfer Learning - Distant Domain Transfer Learning
- dotnet 6 为什么网络请求不跟随系统网络代理变化而动态切换代理
- 第09章 性能分析工具的使用【2.索引及调优篇】【MySQL高级】
- 汇编语言之源程序
- DAY23:命令执行&代码执行漏洞
- LeetCode uses the minimum cost to climb the stairs----dp problem
- nodeJs--封装路由
- KingbaseES V8 GIS data migration solution (2. Introduction to the capabilities of Kingbase GIS)
- PHP技能评测
猜你喜欢

source program in assembly language

SuperMap iDesktop.Net之布尔运算求交——修复含拓扑错误复杂模型

【Unity入门计划】2D游戏中遮挡问题的处理方法&伪透视
![Chapter 09 Use of Performance Analysis Tools [2. Index and Tuning] [MySQL Advanced]](/img/e7/61863c356e4c7bb03ba27865ee7be0.png)
Chapter 09 Use of Performance Analysis Tools [2. Index and Tuning] [MySQL Advanced]

C语言实现简单猜数字游戏

DAY22:sqli-labs 靶场通关wp(Less01~~Less20)

Exploding the circle of friends, Alibaba produced billion-level concurrent design quick notes are too fragrant

Utilities 
leetcode 15

多线程(2)
随机推荐
【OpenCV 图像处理2】:OpenCV 基础知识
【MySQL series】- Does LIKE query start with % will make the index invalid?
02 【开发服务器 资源模块】
力扣-相同的树
leetcode-对称二叉树
使用OpenVINO实现飞桨版PGNet推理程序
js中try...catch和finally的用法
英特尔 XDC 2022 精彩回顾:共建开放生态,释放“基建”潜能
迁移学习——Distant Domain Transfer Learning
.Net C# Console Create a window using Win32 API
Greenplum数据库故障分析——版本升级后gpstart -a为何返回失败
如何看待自己的羞愧感
Greenplum数据库故障分析——能对数据库base文件夹进行软连接嘛?
Understand the recommendation system in one article: Recall 06: Two-tower model - model structure, training method, the recall model is a late fusion feature, and the sorting model is an early fusion
【解密】OpenSea免费创造的NFT都没上链竟能出现在我的钱包里?
一文看懂推荐系统:召回06:双塔模型——模型结构、训练方法,召回模型是后期融合特征,排序模型是前期融合特征
leetcode 15
力扣-二叉树的前序遍历、中序遍历、后序遍历
iNFTnews | What can NFTs bring to the sports industry and fans?
1349. 参加考试的最大学生数 状态压缩