2008年1月アーカイブ

rails流行ってるなぁーって思って、色々railsを見てたら、

lighttpdが実環境だと、いい!!みたいな記事が多いので

railsで作った簡単なアプリで、WEBrickと速度比較してみた

サーバがあるマシンはこんな感じ

 

OS:FedoraCore 6
CPU:Pentium4 2.8Ghz
Memory:1024M

 

他マシンからabコマンドで実施

 

WEBrick
/httpd/bin/ab -c 10 -n 100 'http://192.168.1.51:3000/store'

 

lightTPD
/httpd/bin/ab -c 10 -n 100 'http://192.168.1.51:8080/store'

 

コントローラとモジュールはこんな感じ

 

class StoreController < ApplicationController
  def index
    @products = Product.find_products_for_sale
  end
end

class Product < ActiveRecord::Base def self.find_products_for_sale find(:all, :order => "title") end end

 

こんな感じで10回測定してみると・・・

 

Perl 勉強本

Oracle 勉強本

J2EE 勉強するなら、これしかなくね?

ブログ管理人

SE perler@29

最近のブログ記事

アドパートナー

tooland

Pingo!

boox