根據(jù)The Computer Language Benchmarks Game的性能測試結(jié)果:
PHP : JRuby : Python : Java 大約是 1:2:4:100,以上結(jié)果僅供參考。另外,JRuby、Java比較占用內(nèi)存。由此可以看出,Ruby應(yīng)用于Web開發(fā)在性能上不會有太大的的問題,至少和PHP/Python是同一數(shù)量級的。
注:
PHP 5.2.6
Python 2.6
JRuby 1.1.6
Java 1.6 server
附:
Performance Comparison - C++ / Java / Python / Ruby/ Jython / JRuby / Groovy
http://blog.dhananjaynene.com/2008/07/performance-comparison-c-java-python-ruby-jython-jruby-groovy/各種Ruby實現(xiàn)的性能評測修正版本
http://www.javaeye.com/news/4465-ruby-achieve-a-variety-of-performance-evaluation-version-of-the-amendmentThe Great Ruby Shootout (December 2008)
http://antoniocangiano.com/2008/12/09/the-great-ruby-shootout-december-2008/設(shè)計高性能網(wǎng)站架構(gòu)-LLMP
http://www.javaeye.com/topic/174335?page=1關(guān)注Rails性能的可以看看這個:
Railsサーバ性能比較
http://www.j-kanban.com/bbs/thread-2010-1-3.html對于這兩天ruby開發(fā)網(wǎng)站性能測試總結(jié)
http://www.jiangmiao.org/blog/227.html