4/02/2007

Rails 1.1 跟 1.2 的 Performance 比較

之前有一個報導顯示, Rails 1.2 遠遠的比 Rails 1.1 來的慢,慢到快兩倍左右。
Results of RoR 1.2.1 shocked “a little”: falling of productivity in 2-4 times in comparison with 1.1.6 version
Stefan Kaes 做了一個 Performance Benchmark,打破了這個有點像謠言的 Benchmark。這裡的結果還是 1.2 還是比 1.1 來的慢,不過相差不遠。

裡面發現到幾點
  1. Rails 1.2 的 action cache 跟 1.1 比起來,還是相當程度的需要 performance optimize
  2. pstore 的 session container 效率實在不佳
  3. 當 Rails code base 越來越大的時候,效率似乎還是難免會下降(原因在於 GC 跟 Intpreter 的問題),一個良好的 vm 還是解決的最佳解

沒有留言: