码迷,mamicode.com
首页 > 移动开发 > 详细

Approximate timing for various operations on a typical PC

时间:2019-02-11 21:29:02      阅读:174      评论:0      收藏:0      [点我收藏+]

标签:mutex   dict   ict   bytes   mis   network   branch   order   ons   

execute typical instruction 1/1,000,000,000 sec = 1 nanosec
fetch from L1 cache memory 0.5 nanosec
branch misprediction 5 nanosec
fetch from L2 cache memory 7 nanosec
Mutex lock/unlock 25 nanosec
fetch from main memory 100 nanosec
send 2K bytes over 1Gbps network 20,000 nanosec
read 1MB sequentially from memory 250,000 nanosec
fetch from new disk location (seek) 8,000,000 nanosec
read 1MB sequentially from disk 20,000,000 nanosec
send packet US to Europe and back 150 milliseconds = 150,000,000 nanosec

Approximate timing for various operations on a typical PC

标签:mutex   dict   ict   bytes   mis   network   branch   order   ons   

原文地址:https://www.cnblogs.com/yaoyaohust/p/10363184.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!