According to
http://www.cs.cornell.edu/projects/ladis2009/talks/dean-keynote-ladis2009.pdf• L1 cache reference: 0.5 ns
• Branch mispredict: 5 ns
• L2 cache reference: 7 ns
• Mutex lock/unlock: 100 ns
• Main memory reference: 100 ns
• Compress 1K bytes with Zippy: 10,000 ns
• Send 2K bytes over 1 Gbps network: 20,000 ns
• Read 1 MB sequentially from memory: 250,000 ns
• Round trip within same datacenter: 500,000 ns
• Disk seek: 10,000,000 ns
• Read 1 MB sequentially from network: 10,000,000 ns
• Read 1 MB sequentially from disk: 30,000,000 ns
• Send packet CA->Netherlands->CA: 150,000,000 ns
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/10956
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.