[转载]Latency Numbers Every Programmer Should Know
2013-01-18 13:58
351 查看
http://yaronspace.cn/blog/archives/1528
LatencyComparisonNumbers -------------------------- L1cachereference0.5ns Branchmispredict5ns L2cachereference7ns14xL1cache Mutexlock/unlock25ns Mainmemoryreference100ns20xL2cache,200xL1cache Compress1KbyteswithZippy3,000ns Send1Kbytesover1Gbpsnetwork10,000ns0.01ms Read4KrandomlyfromSSD*150,000ns0.15ms Read1MBsequentiallyfrommemory250,000ns0.25ms Roundtripwithinsamedatacenter500,000ns0.5ms Read1MBsequentiallyfromSSD*1,000,000ns1ms4Xmemory Diskseek10,000,000ns10ms20xdatacenterroundtrip Read1MBsequentiallyfromdisk20,000,000ns20ms80xmemory,20XSSD SendpacketCA->Netherlands->CA150,000,000ns150ms Notes ----- 1ns=10-9seconds 1ms=10-3seconds *Assuming~1GB/secSSD Credit ------ ByJeffDean:http://research.google.com/people/jeff/OriginallybyPeterNorvig: http://norvig.com/21-days.html#answers Contributions ------------- Someupdatesfrom: https://gist.github.com/2843375Great'humanized'comparisonversion: https://gist.github.com/2843375Visualcomparisonchart: http://i.imgur.com/k0t1e.pngNiceanimatedpresentationofthedata: http://prezi.com/pdkvgys-r0y6/latency-numbers-for-programmers-web-development/
这里有一篇更详细,描述了各个年代相关模块的latency:
相关文章推荐
- [转载]Latency Numbers Every Programmer Should Know
- Every Programmer Should Know These Latency Numbers
- Latency numbers every programmer should know
- Latency Numbers Every Programmer Should Know
- Every Programmer Should Know These Latency Numbers
- What Every Programmer Should Know About Memory
- 97 Things Every Programmer Should Know
- [Windows编程] 推荐一篇内存优化文章:What Every Programmer Should Know About Memory
- 10 Things Every Java Programmer Should Know about String
- What every programmer should know about memory, Part 1
- 15 Great and FREE Online Resources That Every Programmer Should Know About
- 【翻译】what every programmer should know about time
- What Every Computer Programmer Should Know About Windows API, CRT, and the Standard C++ Library
- 翻译完了<what every programmer should know about memory>的part 7!
- 《What Every Programmer Should Know About Memory》学习笔记(第三章)
- 14 numbers every developer should know
- 12 Things Every Programmer Should Know
- 100 Vim commands every programmer should know
- The absolute bare minimum every programmer should know about regular expressions
- 10 Things Every Programmer Should Know For Their First Job(每个人工作必须知道的10件事)