http://blog.xole.net/article.php?id=288 のphpで動的クラス生成見て。一度ディスクに書き出してそれ読み込んでなんて冗長過ぎる処理するとevalがいくら遅いつってもDisk I/O処理のほうがだいぶ時間かかるんじゃないかと。 なんでベンチマークとってないのか疑問なんだけど、つーことで簡単なプログラム書いてベンチマーク。環境はLinuxのApache 2.0.53 + PHP 5.0.4。 まずはinclude版。 <?php require_once "Benchmark/Timer.php"; $timer = new Benchmark_Timer; $timer->start(); $source = file_get_contents('./foo.php',false); $source = str_replace('__SKELTON_CL