阅读更多

16顶
0踩

编程语言

原创新闻 ErlyWeb Rails2.0 性能对比

2007-12-10 14:16 by 见习记者 fredzhang 评论(12) 有6801人浏览
Yarivhttp://yarivsblog.com/最近利用Amazon EC2进行了一次ErlyWeb和Rails2.0的性能对比测试

软件版本部署如下:
- Erlang/OTP R12B.
- Yaws 1.73 .
- ErlyWeb from trunk
- Rails 2.0.1
- Mongrel 1.1.1
- MySQL 4.1
- Tsung 1.2.1.

Peak Performance
Rails: 15.1 requests/sec
ErlyWeb: 699.8 requests/sec



Peak Send Rate
Rails: 181.11 Kb/sec
ErlyWeb: 5997.50 Kb/sec



结论:
在相同硬件条件下,ErlyWeb是Rails2.0响应速度的47倍
具体测试结果在这里
http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/
16
0
评论 共 12 条 请登录后发表评论
12 楼 qsky 2007-12-14 17:01
Erlang 语法没有ruby好
11 楼 guotie 2007-12-13 11:11
这个好像比不太合适。
拿py与ruby比还差不多
10 楼 t0uch 2007-12-12 16:01
erlang 貌似是线程高手,ruby单进程出不了彩
9 楼 gm8pleasure 2007-12-11 16:41
更正以后,还有大约5倍的差距?
8 楼 Arden 2007-12-11 09:12
ruby 1.9性能将来不是提高了很多倍嘛
7 楼 leondu 2007-12-11 01:17
内容已经update了,blog作者开始是用-d启动mongrel的,换成-e之后结果已经发生巨大变化了
Peak Performance
Rails: 112.8 requests/sec
ErlyWeb: 699.8 requests/sec
6 楼 yangzx554 2007-12-10 20:39
这个数据是不准,不是production环境,还有是单进程跑的,在后来的测试不是提高到112.8
5 楼 simohayha 2007-12-10 18:21
呵呵,看这段评论:
引用
When I read the headline I thought to myself "wow I knew erlyweb would be faster then rails but I didn't know it was THAT much faster".

After reading the article I thought to myself "Wow erlyweb isn't really THAT much faster then rails".

He ran a very simple test, no models, no database interaction, no tricky routing, no REST, no URL mapping, no testing to see if the framework should server http, XML, RSS or whatnot.

He ran mongel in production mode (eventually) but with only one server (nobody does this in production).

Despite all that erlyweb was only five or six times faster then rails.

That's astonishing.

I hope he runs a few mongrels and load balances like you are supposed to and tells us what the difference is. I bet rails performance will at least double, in fact it would not surprise me if it came pretty damned close.

Add a database and a couple finders, ruby 1.9 into the mixture and rails might even be faster.
4 楼 Sam1860 2007-12-10 17:57
@yehs220
>>两者的开发效率估计得反过来~

那可不一定,erlyweb抄rails的开发模式可能已经抄得差不多了吧
3 楼 yehs220 2007-12-10 17:03
两者的开发效率估计得反过来~
2 楼 mccxj 2007-12-10 16:50
差距的确超出想象
1 楼 weiqingfei 2007-12-10 14:40
这也太离谱了。

发表评论

您还没有登录,请您登录后再发表评论

相关推荐

Global site tag (gtag.js) - Google Analytics