<?xml version="1.0" encoding="UTF-8"?>
<article>
  <body>&#20197;&#21069;&#32057;&#20171;&#12375;&#12383;
[BenchmarkForRails](http://blog.s21g.com/articles/256)
&#12399;&#12289;Rails&#12450;&#12503;&#12522;&#12465;&#12540;&#12471;&#12519;&#12531;&#12398;&#35443;&#32048;&#12394;&#12505;&#12531;&#12481;&#12510;&#12540;&#12463;&#12434;
&#34892;&#12358;&#12371;&#12392;&#12364;&#20986;&#26469;&#12427;&#20415;&#21033;&#12394;&#12503;&#12521;&#12464;&#12452;&#12531;&#12391;&#12377;&#12364;&#12289;
`rake test:units`&#12398;&#23455;&#34892;&#12391;&#12456;&#12521;&#12540;&#12364;&#30330;&#29983;&#12377;&#12427;&#21839;&#38988;&#12364;
&#36215;&#12371;&#12387;&#12390;&#12356;&#12414;&#12375;&#12383;&#12290;

&#35519;&#12409;&#12390;&#12415;&#12383;&#12392;&#12371;&#12429;&#12289;`init.rb`&#12501;&#12449;&#12452;&#12523;&#12395;`require`&#25991;&#12364;
&#36275;&#12426;&#12390;&#12356;&#12394;&#12356;&#12398;&#12364;&#21407;&#22240;&#12398;&#12424;&#12358;&#12384;&#12387;&#12383;&#12398;&#12391;&#12289;&#23550;&#20966;&#27861;&#12434;&#32057;&#20171;&#12375;&#12414;&#12377;&#12290;

**vendor/plugins/benchmarkforrails/init.rb**

rails&gt;&gt;
require 'dispatcher'
require 'benchmark_for_rails'
# The special :request benchmark. This tries to encompass everything that runs
# to handle a request.
BenchmarkForRails.watch(:request, ::Dispatcher, :dispatch)
&lt;&lt;--

&#19978;&#35352;&#12398;2&#34892;&#30446;&#12434;&#21152;&#12360;&#12427;&#12371;&#12392;&#12391;&#12289;&#12456;&#12521;&#12540;&#12364;&#20986;&#12394;&#12367;&#12394;&#12426;&#12414;&#12377;&#12290;</body>
  <cached-tag-list>rails plugin &#12456;&#12521;&#12540; &#23550;&#20966;&#27861;</cached-tag-list>
  <comments-count type="integer">0</comments-count>
  <created-at type="datetime">2007-12-22T22:27:52+00:00</created-at>
  <daily-archive-id type="integer">295</daily-archive-id>
  <filter-type>blue_stole</filter-type>
  <id type="integer">283</id>
  <monthly-archive-id type="integer">30</monthly-archive-id>
  <pdf-digest nil="true"></pdf-digest>
  <permalink nil="true"></permalink>
  <published-at type="datetime">2007-12-22T22:21:00+00:00</published-at>
  <secret>81704e2e-438a-46d3-ad35-9ddcb6365751</secret>
  <title>BenchmarkForRails&#12391;test:units&#12364;&#12456;&#12521;&#12540;&#12395;&#12394;&#12427;&#21839;&#38988;</title>
  <updated-at type="datetime">2008-10-22T13:41:38+00:00</updated-at>
  <user-id type="integer">1</user-id>
</article>
