新しいscriptとして、`script/performance/request`というものが 新たに加わったみたいです。 pre>> h% ./script/performance/request --help USAGE: ./script/performance/request [options] [session script path] -n, --times [0000] How many requests to process. Defaults to 100. -b, --benchmark Benchmark instead of profiling --open [CMD] Command to open profile results. Defaults to "open %s &" -h, --help Show this help <<-- ふむふむ。ベンチマーク系のスクリプトのようですね。 紹介してる記事を見つけました。 [**New in Rails: a request profiler for profiling your app**](http://blog.codefront.net/2007/10/26/new-in-rails-a-request-profiler-for-profiling-your-app/) >Jeremy Kemper (aka bitsweat) committed a very useful tool into the Rails trunk not too long ago: a request profiler! It’s a human-friendly wrapper script around the ruby-prof library, a nice ruby code profiler, that lets you run multiple requests against a URI in your application and get a detailed code profile report in text and HTML. おーなるほど。前回のRails勉強会で紹介した ruby-prof を human-friendlyにしてくれるツールですか。これは面白そうですね。 試してみようと思って触ってみたら、上のサイトで紹介されてる ものと、Rails 2.0で入ったものは若干インターフェイスが違う模様。 DHHが書いてる [こっちの情報](http://weblog.rubyonrails.com/2007/12/7/rails-2-0-it-s-done) が最新のようです(以下に抜粋)
**Action Pack: New request profiler** Figuring out where your bottlenecks are with real usage can be tough, but we just made it a whole lot easier with the new request profiler that can follow an entire usage script and report on the aggregate findings. You use it like this: $ cat login_session.rb get_with_redirect '/' say "GET / => #{path}" post_with_redirect '/sessions', :username => 'john', :password => 'doe' say "POST /sessions => #{path}" $ ./script/performance/request -n 10 login_session.rb And you get a thorough breakdown in HTML and text on where time was spent and you’ll have a good idea on where to look for speeding up the application.
なにやらIntegrationTestのコードのようなものを記述したスクリプト を用意して、そのpathを渡せば良いみたいです。
posted by genki genki on Sat 8 Dec 2007 at 21:53 with 0 comments
Contents rssrss
光ファイバーを二次元振動させて走査するAR用ディスプレイ
因果の取り違え
Swift2's defer for CoffeeScript
mongodb-3.0からcreateIndexのdropDupsが無くなったらしい
mongodb-3.0以降のWiredTigerの設定を動的に変更する方法
一般楕円の高速生成アルゴリズムへの道標
farro mantecatoのレシピ
Droonga関連の記事のまとめ
RuntimeErrorの特定のメッセージに限定してrescueする方法
jQueryでscriptタグを実行せずにappendする
Tags
coffeescriptdefergroongajsmemonodenodejs
Comments rssrss
https://xn--mgmrket6-px0d.com https://xn--mgmrket6-px0d.com: Почему новички теряют аккаунты MEGA: простая ошиб... 04/25 10:19
https://whatsyournormal.com/textstat/casinacho-casino-en-belgique-tout-ce-quil-faut-155/ https://whatsyournormal.com/textstat/casinacho-casino-en-belgique-tout-ce-quil-faut-155/: Excellent blog here! Also your website loads up ve... 04/25 09:10
https://dark-webmarket.com https://dark-webmarket.com: Compiled a dark web market links list from various... 04/24 22:44
http://aprileaton.net/rudyhopwood596 http://aprileaton.net/rudyhopwood596: I found a great best sportsbook here with a massiv... 04/24 16:35
https://xn--mgmrket6-px0d.com https://xn--mgmrket6-px0d.com: Как не потерять аккаунт MEGA: защита от утечки да... 04/24 15:25
https://xn--mgmrket6-px0d.com https://xn--mgmrket6-px0d.com: Регулярная проверка настроек MEGA: как обезопаси... 04/24 09:44
https://fromkorea.peoplead.kr/bbs/board.php?bo_table=free&wr_id=72875 https://fromkorea.peoplead.kr/bbs/board.php?bo_table=free&wr_id=72875: Nice blog. I liked reading. Many thanks for the in... 04/24 06:13
https://Xn--Mgmarkt8-9DB.Com/ https://Xn--Mgmarkt8-9DB.Com/: Что выбрать: Tor или VPN для безопасного MEGA? ... 04/24 01:57