Benchmark
データベースや外部読み取り、ループの仕方などにより処理速度が遅く感じらた、まずはベンチマークでどこが遅いのかを把握します。
Benchmarkのインストール
pear install Benchmark
Benchmarkの使い方
require_once("Benchmark/Timer.php");
$timer = new Benchmark_Timer;
$timer->setMarker(開始日);
$timer->stop();
$timer->display();