本文共 874 字,大约阅读时间需要 2 分钟。
1秒=1000毫秒(ms) 1秒=1,000,000 微秒(μs) 1秒=1,000,000,000 纳秒(ns) 1秒=1,000,000,000,000 皮秒(ps)
L1 cache reference ......................... 0.5 nsBranch mispredict ............................ 5 nsL2 cache reference ........................... 7 nsMutex lock/unlock ........................... 25 nsMain memory reference ...................... 100 nsCompress 1K bytes with Zippy ............. 3,000 ns = 3 μsSend 2K bytes over 1 Gbps network ....... 20,000 ns = 20 μsSSD random read ........................ 150,000 ns = 150 μsRead 1 MB sequentially from memory ..... 250,000 ns = 250 μsRound trip within same datacenter ...... 500,000 ns = 0.5 msRead 1 MB sequentially from SSD* ..... 1,000,000 ns = 1 msDisk seek ........................... 10,000,000 ns = 10 msRead 1 MB sequentially from disk .... 20,000,000 ns = 20 msSend packet CA->Netherlands->CA .... 150,000,000 ns = 150 ms
转载地址:http://hyvul.baihongyu.com/