オブジェクト空判定の速度
include,include_onceの実行速度
ああ、朝になる・・・小堤です。
1 2 3 4 5 6 7 8 9 10 11 12 13 |
function getmicrotime(){ list($msec, $sec) = explode(" ", microtime()); return ((float)$sec + (float)$msec); } $timeS = getmicrotime();include("./hoge.php"); echo ( (float)( getmicrotime() - $timeS ) ); ?> |
と
1 2 3 4 5 6 7 8 9 10 11 12 13 |
function getmicrotime(){ list($msec, $sec) = explode(" ", microtime()); return ((float)$sec + (float)$msec); } $timeS = getmicrotime();include_once("./hoge.php"); echo ( (float)( getmicrotime() - $timeS ) ); ?> |
では、 include:0.000176191329