RailsCasts #411 Performance Testing pro
#411 Performance Testing (pro) - RailsCasts
- rails-perftest - rails4でperformance testはgemに分けられた
- rails3
- ActionDispatch::PerformanceTest
- rake test:benchmark
- gem 'ruby-prof'
- gem 'test-unit'
- csvでトラックできる
- googleで読み込んでグラフ化できる
- rake test:profile
- tmp/performance
- processtime stack html
- graph html
- number_to_currency, link_to, translateとか遅くなる
- string interpolationだけで速くなる(urlとかハードコード)
- performantce test help
- ActiveSupport::Dependencies.mechanizsm = :require
- gcpatched ruby gcdata (garbage collection data patch)
- MRI, Rubinius, jRuby
ピンポイントでパフォーマンスはかるのも良いけど、
日々の変化を調べたいと思うこと多い
csvも使える、
パフォーマンスじゃなくてもアクセス統計とかcsvという選択肢もあるな
まあクラウドならNew Relicがある