最近話題の 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

Search Words:

  • rails30 ベンチマーク20 benchmark7 hello3 rendering3 completed3 benchmarkforrails2 mod_rails2 render2 db2 find1 apt1 x`}[n1 tiles1 sqlite1 mysql1 MH1 radrails1 as31 エラー1 world1 2.01 できない1 spree1

Comments:

or Preview
Tags
rails plugin 紹介 benchmark 測定 utils
Social Bookmarks
  • Delicious
  • B_entry256
  • Clip_16_12_w256