最近話題の ActiveScaffold の開発メンバーでもあるLance Ivy氏のレポート。

How Rails' Benchmarks Lie

I’ve been on a benchmarking blogging spree lately. Creating BenchmarkForRails (B4R) with its non-invasive benchmarking technique has made it very easy to play around with timing of key Rails methods and develop a better picture of the true costs. The results have been amazing.

Railsのベンチマークでは測定しきれない部分の ベンチマークを可能にする BenchmarkForRails というプラグインを作ったとの事。

具体的には、こんな感じで違いが出るようです(以下に抜粋)

Rails

Completed in 0.85246 (1 reqs/sec)
Rendering: 0.48872 (57%)
DB: 0.02561 (3%)

BenchmarkForRails

- [0.9532] GET /plans ----------------------------
   0.8528 processing action
   0.5015 rendering
   0.2533 activerecord find
   0.0461 development mode
   0.0073 before filters
   0.0046 session management
   0.0000 after filters
------------------------------ BenchmarkForRails -

かなり細かいところまで計測できていますね。ちょっと面白いです。

posted by Png genki on Mon 10 Dec 2007 at 00:36

Comments:

or Preview
Social Bookmarks
  • Delicious
  • B_entry256
  • Clip_16_12_w
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ