10th Mon
Railsのベンチマークは信用できない?
最近話題の
[ActiveScaffold](http://activescaffold.com/)
の開発メンバーでもあるLance Ivy氏のレポート。
[**How Rails' Benchmarks Lie**](http://codelevy.com/articles/2007/11/28/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](http://code.google.com/p/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
genki on Mon 10 Dec 2007 at 00:36 with 0 comments