根據The Computer Language Benchmarks Game的性能測試結果:
PHP : JRuby : Python : Java 大約是 1:2:4:100,以上結果僅供參考。另外,JRuby、Java比較占用內存。由此可以看出,Ruby應用于Web開發在性能上不會有太大的的問題,至少和PHP/Python是同一數量級的。
注:
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實現的性能評測修正版本
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/設計高性能網站架構-LLMP
http://www.javaeye.com/topic/174335?page=1關注Rails性能的可以看看這個:
Railsサーバ性能比較
http://www.j-kanban.com/bbs/thread-2010-1-3.html對于這兩天ruby開發網站性能測試總結
http://www.jiangmiao.org/blog/227.html