TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

PaaS Under The Hood, Episode 6: How to Optimize the Memory Usage of Your Apps

11 点作者 jpetazzo超过 12 年前

1 comment

hoop超过 12 年前
For those interested or surprised by the quote "There is a huge performance difference between memory and disk. RAM is typically 100x to 1000x faster than disk" you may also enjoy Jeff Dean's (of Google) "Numbers Everyone Should Know."<p>L1 cache reference..............................0.5ns<p>Branch mispredict.................................5ns<p>L2 cache reference................................7ns<p>Mutex lock/unlock................................25ns<p>Memory reference................................100ns<p>Compress 1K bytes with Zippy..................3,000ns<p>Send 2k bytes over 1Gbps network.............20,000ns<p>Read 1MB sequentially from memory...........250,000ns<p>Round trip within datacenter................500,000ns<p>Disk seek................................10,000,000ns<p>Read 1MB sequentially from disk..........20,000,000ns<p>Send packet CA-&#62;Netherlands-&#62;CA.........150,000,000ns<p><a href="http://www.regexprn.com/2009/12/numbers-everyone-should-know.html" rel="nofollow">http://www.regexprn.com/2009/12/numbers-everyone-should-know...</a>