当前位置:网站首页>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
边栏推荐
- 没有对象的程序员如何过七夕
- 【PyQT5 绑定函数的传参】
- "Configuration" is a double-edged sword, it will take you to understand various configuration methods
- LPQ(局部相位量化)学习笔记
- 【OpenCV 图像处理2】:OpenCV 基础知识
- 程序员失眠时的数羊列表 | 每日趣闻
- 回顾51单片机
- 后期学习计划
- Unleashing the engine of technological innovation, Intel joins hands with ecological partners to promote the vigorous development of smart retail
- 学习笔记-----左偏树
猜你喜欢
随机推荐
PHP技能评测
如何模拟后台API调用场景,很细!
力扣-二叉树的前序遍历、中序遍历、后序遍历
01 【前言 基础使用 核心概念】
How to simply implement the quantization and compression of the model based on the OpenVINO POT tool
Using OpenVINO to implement the flying paddle version of the PGNet inference program
DAY22:sqli-labs 靶场通关wp(Less01~~Less20)
PHP Skills Assessment
MySQL学习
02 【开发服务器 资源模块】
1349. Maximum number of students taking the exam Status Compression
【存储】曙光存储DS800-G35 ISCSI各映射LUN给服务器
短域名绕过及xss相关知识
01 [Foreword Basic Use Core Concepts]
leetcode 15
The 2022 EdgeX China Challenge will be grandly opened on August 3
Pisanix v0.2.0 发布|新增动态读写分离支持
进程在用户态和内核态的区别[独家解析]
oracle将restful接口封装到视图中
浅谈数据安全治理与隐私计算









