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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

"Ruby isn't slow. If anyone tells you PHP is faster than Ruby, tell them: 'Benchmark it.'"

19 点作者 pius超过 16 年前

9 条评论

charlesju超过 16 年前
Maybe I'm slow but it seems to me that the language is never the bottleneck for web applications. It seems to me that the bottleneck is in the db which is language agnostic for all general purposes.<p>And anything that is slow with just Ruby can be solved by throwing money at it.
评论 #331050 未加载
评论 #330953 未加载
jacobbijani超过 16 年前
Oh, god. How many times does this point need to be made? Yeah, cool. The compiler is fast.<p>Probably 1% of all websites on the internet ever manage to get enough traffic to make the language matter, right?
评论 #330930 未加载
sfamiliar超过 16 年前
quite a few newcomers come to rails and think it's slow, because they're 'doin it wrong'. every framework's speed is really about your deployment setup. running mongrel can be slow, especially if you're load-testing a single mongrel instance. multiple instances can be slow if they're connecting to a slow database and serving static files.<p>put nginx in front of thin, start caching frequently used objects, and slice up your database and suddenly speed isn't a problem. php has the (perceived) advantage of running compiled in an apache module, typically. but it's a perception -- you have to do a little more tuning with your rails deployment to make it scream, but make no mistake, it can scream, even under heavy load, and without a huge server farm, at least up to 500K pages/day. i know that number because i've served it. quickly.<p>in radiant. (gasp! yes, with some caching.)<p>with one database.<p>it's a lesson i learned working with tomcat back in the day: defaults suck. learn your framework, learn your app server, pick the Right Thing. it's all about application tuning and app-server choice, and that goes for every language and platform in existence.
pius超过 16 年前
The headline is a quotation from Yehuda Katz's MerbCamp closing keynote. See the summary of the keynote here at the bottom of this link:<p><a href="http://rubypond.com/articles/2008/10/12/merbcamp---day-2/" rel="nofollow">http://rubypond.com/articles/2008/10/12/merbcamp---day-2/</a>
rlachenal超过 16 年前
Translate please -<p><a href="http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&#38;lang=ruby&#38;lang2=php" rel="nofollow">http://shootout.alioth.debian.org/gp4/benchmark.php?test=all...</a>
评论 #330949 未加载
评论 #350836 未加载
评论 #331576 未加载
zinxq超过 16 年前
If you're comparing something to PHP's speed, you've already lost.
drawkbox超过 16 年前
...and Python is still 3x faster than PHP and Ruby without psyco..
omouse超过 16 年前
You can also say "Smalltalk isn't slow" or "Lisp isn't slow", but you won't see anyone run towards either of them...
评论 #330724 未加载
评论 #331600 未加载
markbao超过 16 年前
Stats for Rails?
评论 #330854 未加载